This accessor is used for subscribing secure messages over MQTt protocol, using authorization service provided by a local authorization entity.
This accessor requires the 'iotAuth' and 'mqtt' modules.
- Version:
- $$Id$$
- Source:
Inputs:
Name | Type | Description |
---|---|---|
subscribe |
The topic to subscribe. | |
unsubscribe |
The topic to unsubscribe. |
Outputs:
Name | Type | Description |
---|---|---|
connection |
Output an object when a connection with a MQTT broker is established. | |
subscription |
When subscribed, includes subscription information. | |
received |
The received message. | |
receivedTopic |
The topic of received message |
Parameters:
Name | Type | Description |
---|---|---|
brokerHost |
string | The MQTT broker's IP address or domain name. |
brokerPort |
int | The MQTT broker's port number. |
topic |
string | The topic to publish. |
qosLevel |
int | The minimum QoS level of MQTT to be received by the subscriber. |
subscriberName |
string | The subscriber's unique name in string. |
authHost |
string | Auth's IP address or domain name. |
authPort |
int | Auth's port number. |
authCertPath |
string | The path for the X.509 certificate file (in pem format) of Auth with which the publisher is registered. |
subscriberPrivateKeyPath |
string | The path for the pem format private key of the subscriber. |
publicKeyCryptoSpec |
string | The specification for the public cryptography algorithms to be used for communication with Auth |
distributionCryptoSpec |
string | The specification for the symmetric cryptography algorithms to be used for communication with Auth |
sessionCryptoSpec |
string | The specification for the symmetric cryptography algorithms to be used for publishing messages from the publishers |