Search found 4 matches
- Wed Oct 09, 2019 7:21 pm
- Forum: Programs, Libraries and Tools
- Topic: umqtt get retained message
- Replies: 6
- Views: 4961
Re: umqtt get retained message
No, just once, as I expected that the retained message will be fetched at the first try. Thanks to your suggestion I adapted the get_msg(node,server,topic,False): def get_msg(node, server, topic, blocking=False): c = MQTTClient(node, server) c.set_callback(sub_cb) c.connect() c.subscribe(topic) if b...
- Wed Oct 09, 2019 4:21 pm
- Forum: Programs, Libraries and Tools
- Topic: umqtt get retained message
- Replies: 6
- Views: 4961
Re: umqtt get retained message
I am quite confused by this report as check_msg() never blocks and wait_msg() always blocks; this is the reverse of what you seem to be saying. I am so sorry for the confusion... in my post, I totally mixed up check_msg() and wait_msg(). I edited the post accordingly. Nevertheless, here is a minima...
- Tue Oct 08, 2019 2:10 pm
- Forum: Programs, Libraries and Tools
- Topic: umqtt get retained message
- Replies: 6
- Views: 4961
umqtt get retained message
Hi, On my MQTT server there is a topic with a retained message. When I try to get this message using [s]wait_msg()[/s] check_msg() in the non-blocking way, the message is not received. However, using [s]check_msg()[/s] wait_msg() , I will receive the retained message. I would have expected that [s]w...
- Thu Sep 05, 2019 1:50 pm
- Forum: Programs, Libraries and Tools
- Topic: Full domain name required for getaddrinfo?
- Replies: 1
- Views: 1644
Full domain name required for getaddrinfo?
Hi, I'm currently experimenting with some ESP8266 based boards. The boards connect to my network and receive their addresses via dhcp, pointing the DNS to my local DNS server. When I try to resolve some hostname within my network, e.g., "server.my.site" using getaddrinfo, I need to specify the full ...