Skip to Content

Where does mms store push messages to device for MQTT protocol?

For HTTP it stores push messages (to device)to T_IOT_HTTP_PUSH table, but for MQTT where does it store?

Also for HTTP data service, it has endpoint to access messages like this:

https://iotmms . hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/ >

Does MQTT data service have any endpoint like the above to access messages pushed to device?

If not, is there anyway to store pushed messages into database through endpoint?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 26, 2017 at 12:19 PM

    Hello Hiral,

    for WS and MQTT messages addressed for the device are not stored by the IoT MMS but pushed to the device directly [1]. A device must be connected, otherwise IoT MMS will respond with "Device Not Connected" response.

    If you would like to store the messages sent to the device over MQTT and WS, you would need to do it yourself after device receives them.

    Please also be aware that for HTTP case, MMS keeps those messages in the *PUSH* table for 1 hour (default value). This could be changed in the MMS Configurations > "Clean-Up Interval for HTTP Push Messages" property.

    Hope this helps,

    Anton

    [1] https://help.sap.com/viewer/7436c3125dd5491f939689f18954b1e9/Cloud/en-US/9da1c18f6ab947c58052f4d07498a654.html

    Add comment
    10|10000 characters needed characters exceeded