$request
$request : \App\IqrfNetModule\Requests\ApiRequest
Tool for managing bonds in an IQMESH network
$request : \App\IqrfNetModule\Requests\ApiRequest
$wsClient : \App\IqrfNetModule\Models\WebSocketClient
__construct(\App\IqrfNetModule\Requests\ApiRequest $request, \App\IqrfNetModule\Models\WebSocketClient $wsClient) : mixed
Constructor
\App\IqrfNetModule\Requests\ApiRequest | $request | JSON API request |
\App\IqrfNetModule\Models\WebSocketClient | $wsClient | WebSocket client |
bondLocal(int $address) : array
Bonds a node locally
int | $address | A requested address for the bonded node. If this parameter equals to 0, then the first free address is assigned to the node. |
API request and response
bondSmartConnect(int $address, string $code, int $testRetries = 1) : array
Bonds a node via IQRF Smart Connect
int | $address | Address to bond the device to |
string | $code | Smart connect code of the device |
int | $testRetries | Maximum number of FRCs used to test whether the Node was successfully bonded. |
API request and response
clearAll(bool $coordinatorOnly = false) : array
Clears all bonds
bool | $coordinatorOnly | Removes a bond only in the coordinator |
API request and response
remove(int $address, bool $coordinatorOnly) : array
Removes a bond
int | $address | Address of the node to be removed |
bool | $coordinatorOnly | Removes a bond only in the coordinator |
API request and response