\App\IqrfNetModule\ModelsDevicesManager

Tool for showing devices in an IQMESH network

Summary

Methods
Properties
Constants
__construct()
getTable()
getBonded()
getDiscovered()
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

getTable()

getTable(  base) : array|null

Gets table of bonded and discovered devices

Parameters

base

Base

Returns

array|null —

Table of bonded and discovered devices

getBonded()

getBonded() : mixed||string|int

Gets bonded devices

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

getDiscovered()

getDiscovered() : mixed||string|int

Gets discovered devices

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