Send approved notifications from an MQTT-connected Device
An MQTT-connected Direct Device can request delivery of a pre-approved message code to the producer center or to the Project's main user.
Notification messages are identified by a server-approved code; firmware should not treat arbitrary free-form text as an approved notification template.
Notify the producer/center
Publish to:
projectCode/SendNotificationToCenter
Payload:
{"code":"codeMessage"}
This path is used for center/producer notifications and is SMS-oriented according to the current platform contract.
Notify the Project user
Publish to:
projectCode/SendNotificationToUser
Payload:
{"code":"codeMessage","type":"type"}
The current documentation uses:
type = 20for SMS;type = 30for AirNgin push notification.
These MQTT notification requests require an active Internet/MQTT connection.