Releases: adafruit/Adafruit_CircuitPython_AdafruitIO
Add network callbacks for Feed Subscribe/Unsubscribe and close responses
- #27 Subscribing and unsubscribing to/from feeds will now correctly execute user-defined callback methods in code
- MQTT Simpletest example updated for
subscribe
andunsubscribe
.
- MQTT Simpletest example updated for
- #21 Properly close HTTP responses and return only the JSON data.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Update for MiniMQTT 1.1.2
Library has been updated to reflect changes made to MiniMQTT release 1.1.2
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
BREAKING RELEASE: Add MQTT API, RESTCLIENT is now IO_HTTP
BREAKING Change
RESTClient
is nowIO_HTTP
to conform withIO_MQTT
naming. Examples have been changed to reflect this change.
Changes:
-
Examples folder has been split into
mqtt
andhttp
to organize examples. -
a MQTT Class,
IO_MQTT
has been added toadafruitio
for accessing the Adafruit IO MQTT API with a CircuitPython Adafruit IO client.- Examples of using this class can be found here: https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO/tree/master/examples/mqtt
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Updated examples
Examples updated to run on boards with built-in AirLift ESP32 Co-Processors (such as the PyPortal or Metro M4 WiFi Lite) without editing the example code.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
New Time API and Updated Examples
This release adds Adafruit IO CircuitPython support for the new Adafruit IO Time API.
-
Calling
receive_time
returns localized time to the CircuitPython RESTClient, based on the device's IP address, as a struct_time](https://circuitpython.readthedocs.io/en/3.x/shared-bindings/time/__init__.html#time.struct_time) #19 -
Note: The previous /time endpoint returned a plaintext response, instead of json. This release removes plaintext-handling from the library.
-
Updated all examples to match the Adafruit IO naming scheme in the PyPortal's
secrets.py
file.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Adding User-Agent and Header Handling
- Append a User-Agent (Adafruit-IO CircuitPython specific) for this library onto existing request headers for the server to identify CircuitPython clients.
- Added a
new _create_headers
method for HTTP requests to reflect correct header encoding in the Adafruit ESP32SPI dependency (https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/releases/tag/1.3.4).
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Support for ESP_ATControl WiFiManager
- This library now supports ESP_ATControl's WiFiManager for using an ESP32 co-processor over UART.
(#15) - Added usage example
- Updated README.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Floating point data helper
- Added
precision
kwarg tosend_data
to truncate floating point values to specifiedprecision
decimal places before the payload is created and sent to Adafruit IO. #13
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
1.1
- BREAKING CHANGE: Updated examples to reflect updated NeoPixel abstraction in ESP32SPI (#14).
- Added an analog input example for sending
analogio
sensor data to Adafruit IO (#11) - Updated examples for PyPortal pin definitions (#10)
- Updated weather example to fix incorrect humidity (#7)
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Adafruit IO for CircuitPython
Initial release of Adafruit IO CircuitPython.
- This library will allow a WiFi-connected CircuitPython microcontroller to communicate with the Adafruit IO REST API.
- Supports WiFi using the ESP32SPI CircuitPython library
- Added examples for interacting with Adafruit IO Groups, sending data to feeds, including metadata (such as timestamps and location) with data sent to IO, interacting with digital outputs, and getting weather data from the Adafruit IO Plus Dark Sky service
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.