Skip to content

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

@voluta-coop

Description

@voluta-coop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions