new ApplicationMgr()
The manager for application queues.
- Source:
Fires:
Methods
close(callback)
To close the manager queues.
The underlying connection will be closed when there are no queues use it.
Parameters:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
callback |
function |
Properties
|
- Source:
id() → {string}
- Source:
Returns:
The application ID.
- Type
- string
mqStatus() → {DataMqStatus}
- Source:
Returns:
Manager status.
- Type
- DataMqStatus
name() → {string}
- Source:
Returns:
The application code.
- Type
- string
sendDlData(data, callback)
Send downlink data `AppDlData` to the broker.
Parameters:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
data |
AppDlData | |||||||||
callback |
function |
Properties
|
- Source:
Throws:
-
Wrong arguments.
- Type
- Error
status() → {MgrStatus}
- Source:
Returns:
Manager status.
- Type
- MgrStatus
unitCode() → {string}
- Source:
Returns:
The associated unit code of the application.
- Type
- string
unitId() → {string}
- Source:
Returns:
The associated unit ID of the application.
- Type
- string
Events
status
Connection status event.
Type:
- Status
- Source: