devWaves / SwitchBot-MQTT-BLE-ESP32

Allows for multiple SwitchBot bots and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Temperature, Motion, Contact sensors
MIT License
539 stars 66 forks source link

Error when compiling #32

Closed thematrixdev closed 2 years ago

thematrixdev commented 2 years ago

Traceback (most recent call last): File "/home/y2kbug/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 38, in import serial ModuleNotFoundError: No module named 'serial' exit status 1 Error compiling for board NodeMCU-32S.

Jacksonbm1 commented 2 years ago

What exactly solved this? I'm trying to figure it out.

thematrixdev commented 2 years ago

What exactly solved this? I'm trying to figure it out.

I have forgotten. Please try:

pip3 install pyserial
Jacksonbm1 commented 2 years ago

I solved my issue (might have been different than yours): https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/

Basically, it was throwing tons of errors, but the important was that I either needed to hold the boot button down or connect a capacitor between the gnd and en pins to allow it to receive data properly.

ahaverty commented 1 year ago

Holding BOOT solved the upload issue for me on an Az Delivery Dev Kit. Thanks for sharing 🥳