thingsboard / esp32-ota

ESP32 OTA based on ThingsBoard Open-source IoT Platform
https://thingsboard.io/docs/samples/esp32/ota/
54 stars 45 forks source link

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

Open voluta-coop opened 3 years ago

voluta-coop commented 3 years ago

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!!!!

mr-engin3er commented 3 years ago

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
marianoceneri commented 3 years ago

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?

kmilokeepex commented 2 years ago

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

iwas108 commented 1 year ago

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.