\App\GatewayModule\ModelsInfoManager

Tool for getting information about this gateway

Summary

Methods
Properties
Constants
__construct()
getBoard()
getId()
getIpAddresses()
getMacAddresses()
getDaemonVersion()
getHostname()
getCoordinatorInfo()
getWebAppVersion()
getDiskUsages()
getMemoryUsage()
getSwapUsage()
convertSizes()
getPixlaToken()
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\GatewayModule\Models\CommandManager  commandManager, \App\GatewayModule\Models\EnumerationManager  enumerationManager, \App\GatewayModule\Models\VersionManager  versionManager) : 

Constructor

Parameters

\App\GatewayModule\Models\CommandManager commandManager

Command manager

\App\GatewayModule\Models\EnumerationManager enumerationManager

IQMESH Enumeration manager

\App\GatewayModule\Models\VersionManager versionManager

Version manager

Returns

getBoard()

getBoard() : 

Gets board's vendor, name and version

Returns

Board's vendor, name and version

getId()

getId() : string|null

Gets gateway ID

Returns

string|null —

Gateway ID

getIpAddresses()

getIpAddresses() : string[]||string|int

Gets IPv4 and IPv6 addresses of the gateway

Returns

string[]||string|int —

IPv4 and IPv6 addresses

getMacAddresses()

getMacAddresses() : string||string|int

Gets MAC addresses of the gateway

Returns

string||string|int —

MAC addresses array

getDaemonVersion()

getDaemonVersion() : 

Gets version of IQRF Gateway Daemon

Returns

IQRF Gateway Daemon version

getHostname()

getHostname() : 

Gets a hostname of the gateway

Returns

Hostname

getCoordinatorInfo()

getCoordinatorInfo() : mixed||string|int

Gets information about the Coordinator

Throws

\App\GatewayModule\Models\DpaErrorException
\App\GatewayModule\Models\EmptyResponseException
\App\GatewayModule\Models\JsonException
\App\GatewayModule\Models\UserErrorException

Returns

mixed||string|int —

Information about the Coordinator

getWebAppVersion()

getWebAppVersion() : 

Gets a current version of this wab application

Throws

\App\GatewayModule\Models\JsonException

Returns

Version of this web application

getDiskUsages()

getDiskUsages() : string[]||string|int

Gets disk usages

Returns

string[]||string|int —

Disk usages

getMemoryUsage()

getMemoryUsage() : string||string|int

Gets a memory usage

Returns

string||string|int —

Memory usage

getSwapUsage()

getSwapUsage() : string[]|null

Gets a swap usage

Returns

string[]|null —

Swap usage

convertSizes()

convertSizes(  bytes,   precision = 2) : 

Converts bytes to human readable sizes

Parameters

bytes

Bytes to convert

precision

Conversion precision

Returns

Human readable size

getPixlaToken()

getPixlaToken() : string|null

Gets PIXLA token

Returns

string|null —

PIXLA token