$request
$request : \App\IqrfNetModule\Requests\ApiRequest
Tool for setting an access password and an user key
$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 |
setAccessPassword(int $address, string $password = '', string $inputFormat = DataFormat::ASCII) : array
Sets an access password
int | $address | Network device address |
string | $password | An access password |
string | $inputFormat | Input data format (ASCII or HEX) |
API request and response
setUserKey(int $address, string $password = '', string $inputFormat = DataFormat::ASCII) : array
Sets an user key
int | $address | Network device address |
string | $password | An user key |
string | $inputFormat | Input data format (ASCII or HEX) |
API request and response
setSecurity(int $address, string $password, string $inputFormat, int $type) : array
Sets IQMESH security
int | $address | Network device address |
string | $password | An access password or an user key |
string | $inputFormat | Input data format (ASCII or HEX) |
int | $type | Security type (access password, user key) |
API request and response
convertToHex(string $password, string $inputFormat) : int[]
Converts an access password or an user key to HEX format
string | $password | Access password or user key |
string | $inputFormat | Input data format (ASCII or HEX) |
Converted an access password or an user key