how do I use the requests library to send data to an HTTP endpoint in MicroPython on an ESP8266?
Hello guys, how do I use the requests library to send data to an HTTP endpoint in MicroPython on an ESP8266? My code fails to connect.
Here's the code:
@Middleware & OS
3 Replies
Solution
Shouldn't that be
i.e.
data
instead of json
MicroPython does not include the
requests
library. Instead, use urequests
libraryThanks, it worked 👍