Skip to content

Repository files navigation

CubeServer-api-circuitpython

Maintainability

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).

Example code:

fromservercomimportConnection, Textprint("Connecting to the server...")
connection=Connection()
print("Connected!")
connection.post(Text("Test from CircuitPython!"))
print("Getting status:")
print(connection.get_status())

Limitations & Considerations

  • 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!

Testing Status:

MCUDescription
ESP32Works
ESP8266Incompatible
Raspi Pico WUntested

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.

About

The Python/Circuitpython version of the data API wrapper for a high-school STEM competition

Topics

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Contributors

Languages