How to push notification via MQTT

  • You have to subscribe RabbitMQ service.
  1. Create a notification group and copy the GroupID (groupId)

2.Get MQTT connection information from Management Portal

host: {credentials.externalHosts}
port: {credentials.protocols.mqtt.port}
username: {credentials.protocols.mqtt.username}
password: {credentials.protocols.mqtt.password}

  1. Take MQTTBox tool as an example to send MQTT messages
  • Topic: /wisepaas/notify/send
  • Payload: format is same to API
[{
    "groupId": "i6t2LAIwKrRf",
    "useTemplate": false,
    "message": "for demo"
}]

  1. Receive message
    image