adafruit / Adafruit_CircuitPython_Requests

Requests-like interface for web interfacing
MIT License
51 stars 37 forks source link

Initial Commit #1

Closed brentru closed 5 years ago

brentru commented 5 years ago

This library separates the requests module from the esp32spi library, freeing it up for use with other types of sockets and network hardware interfaces.

Setting up a requests object requires the type of socket you're using (socket type varies by connectivity type - such as the adafruit_esp32spi_socket for the ESP32_SPI library).

Then, since the requests is using an esp, the interface should be set to a provided iface/interface object.

requests.set_socket(socket, esp)

This library will require the following changes in ESP32SPI, staged on a pending PR for when this is released and picked up by the bundler: