Skip to content

Commit 7b356ba

Browse files
committed
tested with MicroPython v1.10
- updated readme and comments inside programs
1 parent ff8f959 commit 7b356ba

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

pubAndSub.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The MIT License (MIT)
2-
# Copyright (c) 2018 Mike Teachman
2+
# Copyright (c) 2019 Mike Teachman
33
# https://opensource.org/licenses/MIT
44
#
55
# Example MicroPython and CircuitPython code showing how to use the MQTT protocol with Adafruit IO, to
@@ -9,10 +9,12 @@
99
# ESP8266
1010
# MicroPython 1.9.3
1111
# MicroPython 1.9.4
12+
# MicroPython 1.10
1213
# CircuitPython 2.3.1 (needs addition of CircuitPython specific umqtt module)
1314
# CircuitPython 3.0.0 (needs addition of CircuitPython specific umqtt module)
1415
# ESP32
1516
# MicroPython 1.9.4 (needs addition of MicroPython umqtt module)
17+
# MicroPython 1.10
1618
#
1719
# Tested using the following boards:
1820
# Adafruit Feather HUZZAH ESP8266

publishAdafruit.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The MIT License (MIT)
2-
# Copyright (c) 2018 Mike Teachman
2+
# Copyright (c) 2019 Mike Teachman
33
# https://opensource.org/licenses/MIT
44
#
55
# Example MicroPython and CircuitPython code showing how to use the MQTT protocol to
@@ -9,10 +9,12 @@
99
# ESP8266
1010
# MicroPython 1.9.3
1111
# MicroPython 1.9.4
12+
# MicroPython 1.10
1213
# CircuitPython 2.3.1 (needs addition of CircuitPython specific umqtt module)
1314
# CircuitPython 3.0.0 (needs addition of CircuitPython specific umqtt module)
1415
# ESP32
1516
# MicroPython 1.9.4 (needs addition of MicroPython umqtt module)
17+
# MicroPython 1.10
1618
#
1719
# Tested using the following boards:
1820
# Adafruit Feather HUZZAH ESP8266

readme.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ client.wait_msg(). The debug print output shows the subscription receiving the
7979
### Tested with these MicroPython Releases
8080
* MicroPython 1.9.3
8181
* MicroPython 1.9.4
82+
* MicroPython 1.10
8283

8384
### Tested with these CircuitPython Releases
8485
* CircuitPython 2.3.1
8586
* CircuitPython 3.0.0
8687

8788
### Recommended Tools for Windows
8889
* Adafruit Ampy to copy files to the filesystem
89-
* install version 1.0.3 which has the -d option (use **-d1** to avoid USB connection issues in Windows)
90+
* install version 1.0.3 or newer which has the -d option (use **-d1** to avoid USB connection issues in Windows)
9091
* Putty to interact with the REPL
9192
* set Serial speed to 115200 and Flow control to None
9293

@@ -97,7 +98,9 @@ The example code requires the MicroPython MQTT (UMQTT) Package. Some firmware r
9798
| ------------- |:-------------:| :-----:|
9899
| MicroPython 1.9.3 for ESP8266 | Yes | n/a |
99100
| MicroPython 1.9.4 for ESP8266 | Yes | n/a |
101+
| MicroPython 1.10 for ESP8266 | Yes | n/a |
100102
| MicroPython 1.9.4 for ESP32 | **No** | [Micropython lib](https://github.com/micropython/micropython-lib) |
103+
| MicroPython 1.10 for ESP32 | Yes | n/a |
101104
| CircuitPython 2.3.1 for ESP8266 | **No** |[CircuitPython lib](https://github.com/MikeTeachman/micropython-lib) |
102105
| CircuitPython 3.0.0 for ESP8266 | **No** | [CircuitPython lib](https://github.com/MikeTeachman/micropython-lib) |
103106

subscribeAdafruit.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The MIT License (MIT)
2-
# Copyright (c) 2018 Mike Teachman
2+
# Copyright (c) 2019 Mike Teachman
33
# https://opensource.org/licenses/MIT
44
#
55
# Example MicroPython and CircuitPython code showing how to use the MQTT protocol to
@@ -9,10 +9,12 @@
99
# ESP8266
1010
# MicroPython 1.9.3
1111
# MicroPython 1.9.4
12+
# MicroPython 1.10
1213
# CircuitPython 2.3.1 (needs addition of CircuitPython specific umqtt module)
1314
# CircuitPython 3.0.0 (needs addition of CircuitPython specific umqtt module)
1415
# ESP32
1516
# MicroPython 1.9.4 (needs addition of MicroPython umqtt module)
17+
# MicroPython 1.10
1618
#
1719
# Tested using the following boards:
1820
# Adafruit Feather HUZZAH ESP8266
@@ -68,7 +70,7 @@ def cb(topic, msg):
6870
# set MQTTClient initializer parameter to "ssl=True"
6971
# Caveat: a secure connection uses about 9k bytes of the heap
7072
# (about 1/4 of the micropython heap on the ESP8266 platform)
71-
ADAFRUIT_IO_URL = b'io.adafruit.com'
73+
ADAFRUIT_IO_URL = b'io.adafruit.com'
7274
ADAFRUIT_USERNAME = b'<ENTER_ADAFRUIT_USERNAME>'
7375
ADAFRUIT_IO_KEY = b'<ENTER_ADAFRUIT_IO_KEY>'
7476
ADAFRUIT_IO_FEEDNAME = b'freeHeap'

0 commit comments

Comments
 (0)