new NetworkMgr()
The manager for network queues.
- Source:
Fires:
Methods
(async) close()
To close the manager queues.
The underlying connection will be closed when there are no queues use it.
- Source:
Throws:
SdkError
id() → {string}
- Source:
Returns:
The network ID.
- Type
- string
mqStatus() → {DataMqStatus}
- Source:
Returns:
Manager status.
- Type
- DataMqStatus
name() → {string}
- Source:
Returns:
The network code.
- Type
- string
(async) sendDlDataResult(data)
Send downlink result data to the broker.
Parameters:
Name | Type | Description |
---|---|---|
data |
NetDlDataResult |
- Source:
Throws:
-
-
Wrong arguments.
- Type
- Error
-
-
SdkError
(async) sendUlData(data)
Send uplink data to the broker.
Parameters:
Name | Type | Description |
---|---|---|
data |
NetUlData |
- Source:
Throws:
-
-
Wrong arguments.
- Type
- Error
-
-
SdkError
status() → {MgrStatus}
- Source:
Returns:
Manager status.
- Type
- MgrStatus
unitCode() → {string}
- Source:
Returns:
The associated unit code of the network.
- Type
- string
unitId() → {string}
- Source:
Returns:
The associated unit ID of the network.
- Type
- string
Events
status
Connection status event.
Type:
- Status
- Source: