mosquito_sub
man file and couldn't see anything, unless I missed it.On 9 Jul 2019, at 11:25, K Smith <kes...@gmail.com> wrote:
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/98467eb5-b432-492e-830f-42a2e288adff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
assuming you want to use mosquito_sub and not write a program to do it, then.-C 1… wait for one message to be received.This only works if there’s definitely a retained topic there… otherwise it will wait until the next message comes along (which might be never ;))If you are happy to write some code, you can add a watchdog timer to make it return “nothing” if the retained message doesn’t come through within a couple of seconds.
Andy
On 9 Jul 2019, at 11:25, K Smith <kes...@gmail.com> wrote:
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mq...@googlegroups.com.
On 8 Nov 2022, at 08:41, KC help <he...@kettlecompanion.com> wrote:Great tips - thank you :)
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/1cddaadd-0ab0-4b50-8dec-e53934baf7a8%40googlegroups.com.