$request
$request : \App\IqrfNetModule\Requests\ApiRequest
Tool for managing standard lights in the 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 |
enumerate(int $address) : array
Enumerates a IQRF Standard light device
int | $address | Network device address |
API request and response
getPower(int $address, \App\IqrfNetModule\Entities\StandardLight[] $lights) : array
Gets power of the lights
int | $address | Network device address |
\App\IqrfNetModule\Entities\StandardLight[] | $lights | Array of IQRF Standard light entities |
API request and response
setPower(int $address, \App\IqrfNetModule\Entities\StandardLight[] $lights) : array
Sets a power of the lights
int | $address | Network device address |
\App\IqrfNetModule\Entities\StandardLight[] | $lights | Array of IQRF Standard light entities |
API request and response
incrementPower(int $address, \App\IqrfNetModule\Entities\StandardLight[] $lights) : array
Increments power of the lights
int | $address | Network device address |
\App\IqrfNetModule\Entities\StandardLight[] | $lights | Array of IQRF Standard light entities |
API request and response
decrementPower(int $address, \App\IqrfNetModule\Entities\StandardLight[] $lights) : array
Decrements power of the lights
int | $address | Network device address |
\App\IqrfNetModule\Entities\StandardLight[] | $lights | Array of IQRF Standard light entities |
API request and response