SpotlightKid / mrequests

An HTTP client library (not only) for MicroPython with an API similar to requests
MIT License
49 stars 10 forks source link

cannot copy the lib to esp32 cam on windows #1

Closed ani-rudh closed 3 years ago

ani-rudh commented 3 years ago

Hi,

I have followed the instructions to copy the files to ESP32 flash (using the install shell script), it seems to fail image

Is there a way to install this library in an alternative way? Dev environment: VS code with pymakr on windows

My use case is to send (POST) a picture from esp32 cam board to telegram bot via api call.

Thank you for any help :)

SpotlightKid commented 3 years ago

The mrequests modules can be copied to your micropython board like any other code. Use you favourite tool to copy mrequests.py to your board's flash filesystem root directory, or mrequests.mpy, if you compiled it with mpy-cross. The other modules are only needed for additional functionality like form-encoding or URL parsing and they can be copied in the normal way as well.

The install script happens to use rshell, but you can use any other supported way to get code to your board as well.