Search found 87 matches

by Mike Teachman
Fri Jun 08, 2018 4:10 am
Forum: ESP8266 boards
Topic: PUBLISH & SUBSCRIBE in the same program
Replies: 2
Views: 750

Re: PUBLISH & SUBSCRIBE in the same program

coincidentally, I just updated my github MQTT examples to support the lastest MicroPython and CircuitPython releases. I included an example on using Publish and Subscribe in the same file. Check out the file pubAndSub.py . It might have what you are looking for. https://github.com/MikeTeachman/micro...
by Mike Teachman
Sat May 19, 2018 2:11 am
Forum: ESP8266 boards
Topic: Differences between CH340 & CP210X Boards
Replies: 9
Views: 10375

Re: Differences between CH340 & CP210X Boards

Is there a chance that flow control settings in minicom are affecting the usb->serial device? I bring this up because in Putty I need to set flow control to None for the Wemos d1 mini. Otherwise, I see the exact same symptoms that you describe (resets to the repl prompt, but no keyboard response). P...
by Mike Teachman
Mon Mar 05, 2018 12:53 am
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 9
Views: 9670

Re: MCP9808 High Precision Temperature Sensor

Thanks for this driver ! I successfully used it for an outdoor solar installation. Having the shutdown mode implementation was great to conserve battery energy. I'd like to mention a possible bug for temperatures <0 degC. During sub-zero nights I started noticing that the temperature always reads ab...
by Mike Teachman
Wed Jan 17, 2018 3:40 am
Forum: ESP32 boards
Topic: ESP32 TLS/SSL & MQTT with MicroPython
Replies: 2
Views: 1730

Re: ESP32 TLS/SSL & MQTT with MicroPython

The github repo below has an example for MQTT publishing. There is a comment in the code describing how to use TLS. Tested with the ESP8266. https://github.com/MikeTeachman/micropython-thingspeak-mqtt-esp8266 Note: the code comments indicate that you need to change the port to 8883, but someone look...
by Mike Teachman
Wed Dec 13, 2017 5:55 am
Forum: ESP8266 boards
Topic: ussl module: N00b help requested.
Replies: 7
Views: 2327

Re: ussl module: N00b help requested.

here are some performance results with MQTT Connect and Publish, with and without TLS security. Thingspeak MQTT broker.

TLS Enabled (secure connection):
MQTT Connect: 1.8s to 2.1s
MQTT Publish: 10ms

no TLS (unsecured connection):
MQTT Connect: 0.4s
MQTT Publish: 3ms
by Mike Teachman
Tue Dec 12, 2017 9:27 pm
Forum: ESP8266 boards
Topic: ussl module: N00b help requested.
Replies: 7
Views: 2327

Re: ussl module: N00b help requested.

I think you'll find that the port arg is unnecessary as the MQTTClient constructor chooses the standard 1883/8883 ports depending on the value of ssl . Thanks for this tip! I'll update the comments in the code example. Did you experience 25 second connection times under TLS? It's hard to say as I w...
by Mike Teachman
Mon Dec 11, 2017 6:31 pm
Forum: ESP8266 boards
Topic: ussl module: N00b help requested.
Replies: 7
Views: 2327

Re: ussl module: N00b help requested.

TLS works with MQTT, tested with v1.9.3. Some example code at this Github repo shows how to enable TLS with MQTT. https://github.com/MikeTeachman/micropython-thingspeak-mqtt-esp8266 I observed that TLS uses about 9k bytes of heap space (!), about 1/4 of the heap for the ESP8266 port. Here's the rele...
by Mike Teachman
Sun Dec 10, 2017 9:37 pm
Forum: ESP8266 boards
Topic: How-to: Using MQTT with Adafruit.IO and Thingspeak
Replies: 8
Views: 8122

Re: How-to: Using MQTT with Adafruit.IO and Thingspeak

I updated the example code for using MQTT with the Thingspeak service: added Subscribe example code. Thinkspeak added support for MQTT Subscribe in Nov 2017 updated Publish example code to become current with the latest Micropython release removed I2C sensor references from example code. This allows...
by Mike Teachman
Mon Jun 19, 2017 4:35 am
Forum: ESP8266 boards
Topic: Status of MicroPython ESP8266 project
Replies: 13
Views: 4918

Re: Status of MicroPython ESP8266 project

I hope you heal up fast ! As a backer, I'm in complete agreement to ditch the video tutorial commitment. I'm convinced that your time is most valuable to develop the core features of micropython. The work you and Damien have done is remarkable. I really think it's a game changer for getting people s...
by Mike Teachman
Sun May 07, 2017 4:10 am
Forum: Drivers for External Components
Topic: SI7021 Driver
Replies: 1
Views: 1572

Re: SI7021 Driver

Thanks a lot for writing and sharing this driver! Excellent interface.