\App\IqrfNetModule\ModelsGwModeManager

Tool for controlling IQRF Gateway Daemon's mode

Summary

Methods
Properties
Constants
__construct()
changeMode()
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

changeMode()

changeMode(  mode) : mixed||string|int

Change IQRF Gateway Daemon's operation mode

Parameters

mode

IQRF Gateway Daemon's operation mode

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\InvalidOperationModeException
\App\IqrfNetModule\Models\JsonException

Returns

mixed||string|int —

JSON API request and response