\App\IqrfNetModule\ModelsStandardBinaryOutputManager

Tool for managing standard binary output in the IQMESH network

Summary

Methods
Properties
Constants
__construct()
enumerate()
getOutputs()
setOutputs()
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

enumerate()

enumerate(int  $address) : array

Enumerates a IQRF Standard binary output device

Parameters

int $address

Network device address

Throws

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

Returns

array —

API request and response

getOutputs()

getOutputs(int  $address) : array

Gets states of IQRF Standard binary outputs

Parameters

int $address

Network device address

Throws

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

Returns

array —

API request and response

setOutputs()

setOutputs(int  $address, \App\IqrfNetModule\Entities\StandardBinaryOutput[]  $outputs) : array

Sets states of IQRF Standard binary outputs

Parameters

int $address

Network device address

\App\IqrfNetModule\Entities\StandardBinaryOutput[] $outputs

Standard binary output

Throws

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

Returns

array —

API request and response