Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
voluta-coop opened this issue Jan 22, 2021 · 4 comments
Open

Comments

@voluta-coop
Copy link

voluta-coop commented Jan 22, 2021

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
Copy link

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
Copy link

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
Copy link

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

@iwas108
Copy link

iwas108 commented Nov 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants