The CircuitPython/CPython version of the data API wrapper for a high-school STEM competition
This is implemented for both CPython (it is assumed the computer is already connected to the access point for this use-case) and CircuitPython (for microcontrollers).
from servercom import Connection, Text
print("Connecting to the server...")
connection = Connection()
print("Connected!")
connection.post(Text("Test from CircuitPython!"))
print("Getting status:")
print(connection.get_status())- This library disables concurrent write protection- If your code stores something to a file, be careful when writing to it while the board is plugged in to avoid corruption!
| MCU | Description | 
|---|---|
| ESP32 | Works | 
| ESP8266 | Incompatible | 
| Raspi Pico W | Untested | 
The ESP8266 is currently incompatible with this micropython library due to lack of memory resources for handling the TLS handshake. To use the ESP8266, please use the Arduino C wrapper.