Skip to content

Commit b97ea1d

Browse files
authored
Merge pull request #893 from brentru/patch-aws-iot-example
Patch AWS IoT Planter Code
2 parents 6d5badc + 5c3030b commit b97ea1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PyPortal_AWS_IOT_Planter/code.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858

5959
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
6060
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)
61+
62+
# Verify nina-fw version >= 1.4.0
63+
assert int(bytes(esp.firmware_version).decode("utf-8")[2]) >= 4, "Please update nina-fw to >=1.4.0."
64+
6165
status_light = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.2)
6266
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(
6367
esp, secrets, status_light)

0 commit comments

Comments
 (0)