\App\IqrfNetModule\ModelsGwModeManager

Tool for controlling IQRF Gateway Daemon's mode

Summary

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

set()

set(string  $mode) : void

Sets IQRF Gateway Daemon's operation mode

Parameters

string $mode

IQRF Gateway Daemon's operation mode

Throws

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

get()

get() : string

Returns the current IQRF Gateway Daemon's operation mode

Throws

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

Returns

string —

Current IQRF Gateway Daemon's operation mode