Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

FreeRTOS or Scheduler and 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.
Please be positive and constructive with your questions and comments.

FreeRTOS or Scheduler and Adafruit IO

by dylancw on Thu Jul 30, 2020 1:25 am

Has anyone here had luck using the Adafruit IO library with FreeRTOS, Scheduler, or another task management library? I am trying to debug as usual using the USB serial port and whenever there's a task problem it's very hard to see because the USB serial connection dies first...

I was timing the update time for the io.run() function and it's taking 314 milliseconds on average here, which is far too long to wait for without pre-empting if you want to control or regulate anything. (Network is relatively fast, SAMD21 based arduino with W5500 wired ethernet to a tp-link switch to a Google Nest router to cable wifi, home cable wifi is 290Mbps download, 20Mbps upload. Ping latency to adafruit server is 16ms).

Let me know your thoughts, thanks!
dylancw
 
Posts: 1
Joined: Sun Dec 25, 2011 1:00 pm

Re: FreeRTOS or Scheduler and Adafruit IO

by brubell on Fri Jul 31, 2020 9:51 am

I haven't tried FreeRTOS/Scheduler with Adafruit IO Arduino.

If you're using FreeRTOS, you may want try using the FreeRTOS IoT Library for MQTT: https://www.freertos.org/mqtt/index.html
or the Adafruit MQTT Library https://github.com/adafruit/Adafruit_MQTT_Library

The Adafruit IO MQTT broker documentation can be found on https://io.adafruit.com/api/docs/mqtt.h ... o-mqtt-api

brubell
 
Posts: 988
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.