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:
ESP32SPI_requests is removed in favor of using this library
esp32spi_simpletest example uses CircuitPython_Requests, other examples use WiFiManager.
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:
esp32spi_simpletest
example uses CircuitPython_Requests, other examples useWiFiManager
.