\App\IqrfNetModule\ParsersOsParser

Parsers for DPA OS responses

Summary

Methods
Properties
Constants
parse()
parseReadInfo()
parseHwpConfiguration()
parseTrConfiguration()
getRfBand()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

parse()

parse(string  $packet) : array|null

Parses a DPA OS response

Parameters

string $packet

DPA packet

Returns

array|null —

Parsed data

parseReadInfo()

parseReadInfo(string  $packet) : array

Parses a response to DPA OS - "Read info" request

Parameters

string $packet

DPA packet response

Returns

array —

Information about DCTR module

parseHwpConfiguration()

parseHwpConfiguration(string  $packet) : array

Parses a response to DPA OS - "Read HWP configuration" request

Parameters

string $packet

DPA packet response

Returns

array —

HWP configuration

parseTrConfiguration()

parseTrConfiguration(array  $config) : array

Parses a TR configuration

Parameters

array $config

HWP configuration

Returns

array —

TR configuration

getRfBand()

getRfBand(string  $byte) : string

Gets a RF band from HWP configuration

Parameters

string $byte

Undocumented byte from HWP configuration

Returns

string —

RF band