Rather than only use PicoW + Adafruit IO in a "log data to server" scheme, I'd also like to log "commands" to Adafruit IO via another device, and read and execute those commands on the PicoW. I'm looking to do a closed-loop feedback system on the order of a second (up to a few seconds would be OK, too) per iteration, so the process continues as new data gets sent to Adafruit IO via the PicoW. For additional context, see this project I'm working on [hackaday] [GitHub] [adafruit forum post]. The Pico W is sent a command to control a Neopixel LED, the light spectrum is measured, the data is logged to Adafruit IO (or similar, e.g. exposed via PicoW web server), and an algorithm determines the next set of RGB parameters for the Pico W with the goal of matching the desired target spectrum.
I came across PicoTemp, which seems to have the right framework for logging data from the PicoW to Adafruit IO. I also came across Adafruit_IO_Python, but I don't think that will be compatible with MicroPython. There's also Adafruit_CircuitPython_AdafruitIO, which means I'll need to use Adafruit_Blinka and based on some testing it seems like I'll run into many issues with the Pico W (wireless capabilities aren't yet supported in CircuitPython, board not recognized, etc. but maybe I missed something). Alternatively, I think I could use urequests with the Adafruit REST API directly. Or maybe there's something built-in to micropython-mqtt or similar that I'm missing.
What would you suggest using? Are there alternatives I've overlooked in terms of accessing Adafruit IO?
Aside: searching for "Pico W" on the forums returns a message that the "W" was ignored, hence using PicoW throughout and some alternative namings in the title.
Reading data back to PicoW (Pico W, Pico Wireless) from Adafruit IO
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- sgbaird
- Posts: 8
- Joined: Thu Jun 30, 2022 4:51 pm
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.