\App\GatewayModule\ModelsInfoManager

Tool for getting information about this gateway

Summary

Methods
Properties
Constants
__construct()
get()
getBoard()
getId()
getCoordinatorInfo()
getDiskUsages()
convertSizes()
getMemoryUsage()
getSwapUsage()
getPixlaToken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
parseRfMode()
$boardManagers
$commandManager
$enumerationManager
$networkManager
$versionManager
N/A

Properties

$boardManagers

$boardManagers : string[]

Type

normal — Board managers

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

$enumerationManager

$enumerationManager : \App\IqrfNetModule\Models\EnumerationManager

Type

normal — IQMESH Enumeration manager

$networkManager

$networkManager : \App\GatewayModule\Models\NetworkManager

Type

normal — Network manager

$versionManager

$versionManager : \App\GatewayModule\Models\VersionManager

Type

normal — Version manager

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager, \App\IqrfNetModule\Models\EnumerationManager  $enumerationManager, \App\GatewayModule\Models\NetworkManager  $networkManager, \App\GatewayModule\Models\VersionManager  $versionManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

\App\IqrfNetModule\Models\EnumerationManager $enumerationManager

IQMESH Enumeration manager

\App\GatewayModule\Models\NetworkManager $networkManager

Network manager

\App\GatewayModule\Models\VersionManager $versionManager

Version manager

Returns

mixed

get()

get(bool  $verbose = false) : array<string,array<int|string,array<string,array<int,string>|string>|string>|string|null>

Returns information about the gateway

Parameters

bool $verbose

Verbose output

Returns

array|string>|string>|string|null> —

Gateway information

getBoard()

getBoard() : string

Gets board's vendor, name and version

Returns

string —

Board's vendor, name and version

getId()

getId() : string|null

Gets gateway ID

Returns

string|null —

Gateway ID

getCoordinatorInfo()

getCoordinatorInfo() : array

Gets information about the Coordinator

Throws

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

Returns

array —

Information about the Coordinator

getDiskUsages()

getDiskUsages() : string[][]

Gets disk usages

Returns

string[][] —

Disk usages

convertSizes()

convertSizes(float  $bytes, int  $precision = 2) : string

Converts bytes to human readable sizes

Parameters

float $bytes

Bytes to convert

int $precision

Conversion precision

Returns

string —

Human readable size

getMemoryUsage()

getMemoryUsage() : string[]

Gets a memory usage

Returns

string[] —

Memory usage

getSwapUsage()

getSwapUsage() : string[]|null

Gets a swap usage

Returns

string[]|null —

Swap usage

getPixlaToken()

getPixlaToken() : string|null

Gets PIXLA token

Returns

string|null —

PIXLA token

parseRfMode()

parseRfMode(array  $dpa) : void

Parses RF mode from information about the Coordinator

Parameters

array $dpa

Information about the Coordinator