Search found 12 matches

by goochy
Mon Jul 23, 2018 6:30 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day guyd,

Excellent. Your on your way to having cool fun.

cheers,
by goochy
Mon Jul 23, 2018 1:01 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guyd,

I am confident that if you use the code from uPy via the link I pasted in, you will be pleasantly surprised how seamlessly it works.

Cheers,
by goochy
Sun Jul 22, 2018 11:08 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guyd, Technically, closing a socket connection closes that method of transferring BITS over a network protocol. It would be considered a BAD way of doing it unless there was a specific reason to do so like saving battery power and just have some kind of RF triggers to instruct the socket to be...
by goochy
Sun Jul 22, 2018 10:02 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guyd,

No, the Finally: goes at the end of the Try: and is used to do clean up operations.

Try:
Run some code.

Except:
if there is an error then it will get trapped and hopefully handled here.

Finally:
This will run no matter what happens.

Cheers, Steve
by goochy
Sun Jul 22, 2018 9:16 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guyd (apologies, didn't see the 'd' part). Re "when you close a socket, how would you keep listening for future publishes ?", you cant as the 'finally:' is the NICE way of exiting the program. So, TRY and run code 'blah blah' EXCEPT of there is an error that I have trapped or if I haven't then...
by goochy
Sun Jul 22, 2018 8:51 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guy, I am new to micropython (and python for that matter, and MQTT for that matter as well), I would say that since MQTT uses threads to LISTEN to traffic, when you use threads, you nominate a function to execute code when there is activity, so I would say yes (unless someone can educate us be...
by goochy
Sun Jul 22, 2018 7:54 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 12681

Re: MQTT for MicroPython under ESP32

G'day Guy,

I found using the uPy IDE (https://dfrobot.gitbooks.io/upycraft/) , this example (search for MQTT) works.

https://dfrobot.gitbooks.io/upycraft/ne ... icate.html


cheers, Steve
by goochy
Wed May 02, 2018 10:55 am
Forum: ESP32 boards
Topic: WEMOS LOLIN devices discontinued
Replies: 4
Views: 8677

WEMOS LOLIN devices discontinued

G'day, I noticed that WEMOS, https://wiki.wemos.cc/doku.php have now discontinued the LOLIN range of boards but there is a new one called the D32. It seems odd to me that the LOLIN had a short? run. Does anyone know about the D32 boards in that these new boards have working Bluetooth? Just going by ...
by goochy
Sun Apr 22, 2018 11:29 pm
Forum: ESP32 boards
Topic: Wemos LOLIN ESP32 Lite Revision1 - All 6 analog pins?!?
Replies: 5
Views: 9402

Re: Wemos LOLIN ESP32 Lite Revision1 - All 6 analog pins?!?

G'day ChrisB2,

Yes I have that schematic, I have to admit it doesn't help me much :) as I am very new to all this.

With your earlier helpful post, I have now got all six pins 32,33,34,35,36 and 39 working with LDRs singularly, now need to see if they all work together with WIFI as well.



Cheers,
by goochy
Sun Apr 22, 2018 7:37 pm
Forum: ESP32 boards
Topic: Wemos LOLIN ESP32 Lite Revision1 - All 6 analog pins?!?
Replies: 5
Views: 9402

Re: Wemos LOLIN ESP32 Lite Revision1 - All 6 analog pins?!?

G'day,

Thanks ChrisB, your first posts link doesn't resolve, it appears that Wemos has changed the page.


I will look closely at Boris Lovosevic notes, see if I can fathom what is needed to get an LDR to work on GPIO 36-39.

Many thanks for your reply, much appreciated.


Cheers,