Search found 11 matches

by RobinMosedale
Wed Jul 31, 2019 6:17 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

Thank you Peter, that's kind. I really don't wish to use this thread as a vehicle for me to learn (u)asyncio and bother you two kind and generous people. Just point me to a module/object/function spec. This really is a diverting branch to facilitating a comms method for what I'm doing elsewhere, and...
by RobinMosedale
Wed Jul 31, 2019 11:51 am
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

Quite right. Asyncio is new to me. Not at all familiar with it and learning

Thanks
by RobinMosedale
Tue Jul 30, 2019 3:44 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

That's excellent, Peter, thank you. All installed nicely now and can instantiate. I did search the module library, but you're absolutely right, I'm completely unfamiliar with the micropython installation environment, and would never have guessed that it was those files or those extractions. I'm prob...
by RobinMosedale
Mon Jul 29, 2019 7:00 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

Peter, thank you. From:- https://github.com/peterhinch/micropython-async/blob/master/TUTORIAL.md Section 3.5 The Queue class is officially supported and the sample program aqtest.py demonstrates its use. A queue is instantiated as follows: from uasyncio.queues import Queue q = Queue() Entering REPL....
by RobinMosedale
Mon Jul 29, 2019 4:17 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

queue=asyncio.Queue()

There is no object

Import Queue
There is no module.

Which contradicts the documentation referred in Peter's tutorial
by RobinMosedale
Mon Jul 29, 2019 2:17 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

Thank you Kevin. I've modified both the baseline MQTT exemplars running on the twoesp32's to only flash 0.1s with awaits accordingly, together with the modified one with test led flash ditto. Pretty good. Unfortunately and having run 12 hour soak test before without issue, the testcase one before al...
by RobinMosedale
Sun Jul 28, 2019 7:38 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Re: Resilient aysnchronous MQTT optimim use

Kevin, I've plenty time, so no rush, and I'm grateful Oh, I'm familiar with Python, I've several thousand lines of code entwined with tkinter. I'm not impressed: it's not a predicative language, but it lent itself to the role that I originally wished, and on a Pi3 The broker on the Pi3 is:- while : ...
by RobinMosedale
Sun Jul 28, 2019 3:43 pm
Forum: ESP32 boards
Topic: Resilient aysnchronous MQTT optimim use
Replies: 14
Views: 570

Resilient aysnchronous MQTT optimim use

I'm delighted that I've managed to at last successfully run Peter's resilient MQTT application, and moreover, adding a separate test asyn co-routine to simply observe the characteristics. I'm still learning, and although having designed systems execs, operating systems, and real time safety critical...
by RobinMosedale
Sat Jul 27, 2019 7:06 pm
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 5131

Re: A "resilient" asynchronous MQTT client

I will indeed Kevin, and then perhaps remove this from an otherwise positive thread. I am more than grateful for you help, Kevin, please take my at first sight sharp comments as from huge frustration. If you've seen from posts elsewhere, this has been a hugely frustrating element, a small tiny littl...
by RobinMosedale
Sat Jul 27, 2019 2:46 pm
Forum: ESP8266 boards
Topic: A "resilient" asynchronous MQTT client
Replies: 18
Views: 5131

Re: A "resilient" asynchronous MQTT client

This query has been removed, and a new thread created:-
viewtopic.php?f=18&t=6738