esp32-ota icon indicating copy to clipboard operation
esp32-ota copied to clipboard

Imosible execute "make flash monitor" following OTA-ESP32 guide

Open voluta-coop opened this issue 4 years ago • 4 comments

Hi! I'm following this guide https://thingsboard.io/docs/samples/esp32/ota/ but when I execute "make flash monitor" I get these errors:

"In file included from /home/admin1/esp/esp32-ota/main/main.c:10: /home/admin1/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp] #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" ^~~~~~~ /home/admin1/esp/esp32-ota/main/main.c: In function 'mqtt_event_handler': /home/admin1/esp/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_ANY' not handled in switch [-Werror=switch] switch (event->event_id) ^~~~~~ /home/admin1/esp/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_DELETED' not handled in switch [-Werror=switch] cc1: some warnings being treated as errors make[1]: *** [/home/admin1/esp/esp-idf/make/component_wrapper.mk:292: main.o] Error 1 make: *** [/home/admin1/esp/esp-idf/make/project.mk:635: component-main-build] Error 2".

I'd like to know how I can solve it.

Thank you very much, I'm learning a lot with thingsboard!!!!

voluta-coop avatar Jan 22 '21 16:01 voluta-coop

Same problem when I execute "make flash monitor". I followed every instruction from https://thingsboard.io/docs/samples/esp32/ota/ ESP-IDF is successfully installed and working as I flashed hello-world project from esp-idf examples successfully.

In file included from /home/dheeraj/Development/thingsboard/esp32-ota/main/main.c:10:
/home/dheeraj/Development/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
 #warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
  ^~~~~~~
/home/dheeraj/Development/thingsboard/esp32-ota/main/main.c: In function 'mqtt_event_handler':
/home/dheeraj/Development/thingsboard/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_ANY' not handled in switch [-Werror=switch]
     switch (event->event_id)
     ^~~~~~
/home/dheeraj/Development/thingsboard/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_DELETED' not handled in switch [-Werror=switch]
cc1: some warnings being treated as errors
make[1]: *** [/home/dheeraj/Development/esp/esp-idf/make/component_wrapper.mk:292: main.o] Error 1
make: *** [/home/dheeraj/Development/esp/esp-idf/make/project.mk:642: component-main-build] Error 2

mr-engin3er avatar May 04 '21 11:05 mr-engin3er

Hi! I'm following this guide https://thingsboard.io/docs/samples/esp32/ota/ but when I execute "make flash monitor" I get these errors:

"In file included from /home/admin1/esp/esp32-ota/main/main.c:10: /home/admin1/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp] #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" ^~~~~~~ /home/admin1/esp/esp32-ota/main/main.c: In function 'mqtt_event_handler': /home/admin1/esp/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_ANY' not handled in switch [-Werror=switch] switch (event->event_id) ^~~~~~ /home/admin1/esp/esp32-ota/main/main.c:76:5: error: enumeration value 'MQTT_EVENT_DELETED' not handled in switch [-Werror=switch] cc1: some warnings being treated as errors make[1]: *** [/home/admin1/esp/esp-idf/make/component_wrapper.mk:292: main.o] Error 1 make: *** [/home/admin1/esp/esp-idf/make/project.mk:635: component-main-build] Error 2".

I'd like to know how I can solve it.

Thank you very much, I'm learning a lot with thingsboard!!!!

Same problem here ... is this platform alive?

marianoceneri avatar Jun 28 '21 01:06 marianoceneri

Same problem here ... some one have a solution?

kmilokeepex avatar Mar 21 '22 19:03 kmilokeepex

Try idf.py build to check if the code has any error. If the build process is ok, continue to idf.py -p /dev/ttyACM0 flash monitor to flash and monitor.

iwas108 avatar Nov 09 '22 01:11 iwas108