$request
$request : \App\IqrfNetModule\Requests\ApiRequest
Tool for running discovery process 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 |
run(int $txPower = 6, int $maxAddress) : array
Runs IQMESH discovery process The time when the response is delivered depends highly on the number of network devices, the network topology, and RF mode, thus, it is not predictable. It can take from a few seconds to many minutes.
int | $txPower | TX Power used for discovery. |
int | $maxAddress | Nonzero value specifies maximum node address to be part of the discovery process. This feature allows splitting all node devices into two parts: [1] devices having an address from 1 to MaxAddr will be part of the discovery process thus they become routers, [2] devices having an address from MaxAddr+1 to 239 will not be routers. See IQRF OS documentation for more information. The value of this parameter is ignored at demo version. A value 5 is always used instead. |
API request and response