\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
No private properties found
N/A

Methods

__construct()

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

Constructor

Parameters

\App\IqrfNetModule\Models\ApiRequest request

JSON API request

\App\IqrfNetModule\Models\WebSocketClient wsClient

WebSocket client

Returns

enumerate()

enumerate(  address) : mixed||string|int

Enumerates a IQRF Standard binary output device

Parameters

address

Network device address

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\UserErrorException
\App\IqrfNetModule\Models\JsonException

Returns

mixed||string|int —

API request and response

getOutputs()

getOutputs(  address) : mixed||string|int

Gets states of IQRF Standard binary outputs

Parameters

address

Network device address

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

API request and response

setOutputs()

setOutputs(  address, \App\IqrfNetModule\Models\StandardBinaryOutput||string|int  outputs) : mixed||string|int

Sets states of IQRF Standard binary outputs

Parameters

address

Network device address

\App\IqrfNetModule\Models\StandardBinaryOutput||string|int outputs

Standard binary output

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

API request and response