Does Serial LTE Modem support will message function?

Hi all,

I am working on nRF-9160 and nRF-9151, and I wanna know does Serial LTE Modem support will message function for MQTT connection or other connection?

I've asked AI about this, and got a replied telling that parameter "retain" of  AT#XMQTTPUB=<topic>[,<msg>[,<qos>[,<retain>]]] might be what I need.

But to what was documented on the page, I'm not sure if this is equivalence to will message function, also I'm not sure about whether I could set/clear the "persistently stored" message with this. Like if I PUB multiple times, will the message stacked up or only modified?

Parents Reply
  • Hello, 
    To what I've read (this article)
    the will message function I was looking for, should be acting like:
    Publishing a message to broker just like normal PUB, but instead of instantly sending the message to all the topic subscriber, the message would only be send if the client was unnormally disconnected.

    I am wishing this function for use case like SOS message / last gasp message for example.

    I have tested the retained parameter, but it doesn't act like what I need, it would store the message to that topic, and every subscriber would get the message as soon as they subscribe the message.

Children
Related