\App\IqrfNetModule\ParsersCoordinatorParser

Parsers for DPA Coordinator responses.

Summary

Methods
Properties
Constants
parse()
parseGetNodes()
parseBondNode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
bitmapToStatuses()
No private properties found
N/A

Methods

parse()

parse(string  $packet) : array|null

Parses a DPA Coordinator response

Parameters

string $packet

DPA packet

Returns

array|null —

Parsed data

parseGetNodes()

parseGetNodes(string  $packet) : array

Parses a response to DPA Coordinator - "Get bonded nodes" and "Get discovered nodes" request

Parameters

string $packet

DPA packet response

Returns

array —

Bonded XOR discovered nodes

parseBondNode()

parseBondNode(string  $packet) : array

Parses a response to DPA Coordinator - "Bond node" request

Parameters

string $packet

DPA packet response

Returns

array —

Bonded node

bitmapToStatuses()

bitmapToStatuses(array  $packet) : array[]

Converts a bitmap to statuses

Parameters

array $packet

DPA response

Returns

array[] —

Nodes