\App\IqrfNetModule\ModelsStandardDaliManager

Tool for managing standard DALI devices in the IQMESH network

Summary

Methods
Properties
Constants
__construct()
send()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$request
$wsClient
N/A

Properties

$request

$request : \App\IqrfNetModule\Requests\ApiRequest

Type

normal — JSON API request

$wsClient

$wsClient : \App\IqrfNetModule\Models\WebSocketClient

Type

normal — WebSocket client

Methods

__construct()

__construct(\App\IqrfNetModule\Requests\ApiRequest  $request, \App\IqrfNetModule\Models\WebSocketClient  $wsClient) : mixed

Constructor

Parameters

\App\IqrfNetModule\Requests\ApiRequest $request

JSON API request

\App\IqrfNetModule\Models\WebSocketClient $wsClient

WebSocket client

Returns

mixed

send()

send(int  $address, int[]  $commands) : array

Sends DALI commands

Parameters

int $address

Network device address

int[] $commands

DALI commands

Throws

\App\IqrfNetModule\Exceptions\DpaErrorException
\App\IqrfNetModule\Exceptions\EmptyResponseException
\Nette\Utils\JsonException
\App\IqrfNetModule\Exceptions\UserErrorException

Returns

array —

API request and response