\App\GatewayModule\ModelsInfoManager

Tool for getting information about this gateway

Summary

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

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager, \App\IqrfNetModule\Models\EnumerationManager  $enumerationManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

\App\IqrfNetModule\Models\EnumerationManager $enumerationManager

IQMESH Enumeration manager

Returns

mixed

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(mixed  $bytes, int  $precision = 2) : string

Converts bytes to human readable sizes

Parameters

mixed $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