\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()
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() : 

Get board's vendor, name and version

Returns

Board's vendor, name and version

getId()

getId() : null|string

Get gateway ID

Returns

null|string —

Gateway ID

getIpAddresses()

getIpAddresses() : mixed||string|int

Get IPv4 and IPv6 addresses of the gateway

Returns

mixed||string|int —

IPv4 and IPv6 addresses

getMacAddresses()

getMacAddresses() : mixed||string|int

Get MAC addresses of the gateway

Returns

mixed||string|int —

MAC addresses array

getDaemonVersion()

getDaemonVersion() : 

Get version of the daemon

Returns

IQRF Daemon version

getHostname()

getHostname() : 

Get hostname of the gateway

Returns

Hostname

getCoordinatorInfo()

getCoordinatorInfo() : mixed||string|int

Get 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() : 

Get current version of this wab application

Throws

\App\GatewayModule\Models\JsonException

Returns

Version of this web application

getDiskUsages()

getDiskUsages() : mixed||string|int

Get disk usages

Returns

mixed||string|int —

Disk usages

getMemoryUsage()

getMemoryUsage() : mixed||string|int

Get memory usage

Returns

mixed||string|int —

Memory usage

getSwapUsage()

getSwapUsage() : array|null

Get swap usage

Returns

array|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