Problems trying to use the ESP32 1.28-inch Round Display Tutorial

Hello. I am trying to run the HomeAssistantMQTT demo following the instructions in the ESP32 1.28-inch Round Display Tutorial.

Although I have installed the libraries included in your ZIP, there are still missing components. For example, I installed AsyncTCP library (version 1.1.4), but the errors persist.

/Users/pharizna/Documents/Arduino/HomeassistantMQTTDemo/HomeassistantMQTTDemo.ino: In function 'void WiFiEvent(arduino_event_id_t)':
/Users/pharizna/Documents/Arduino/HomeassistantMQTTDemo/HomeassistantMQTTDemo.ino:214:10: error: 'SYSTEM_EVENT_STA_GOT_IP' was not declared in this scope; did you mean 'IP_EVENT_STA_GOT_IP'?
  214 |     case SYSTEM_EVENT_STA_GOT_IP:
      |          ^~~~~~~~~~~~~~~~~~~~~~~
      |          IP_EVENT_STA_GOT_IP
/Users/pharizna/Documents/Arduino/HomeassistantMQTTDemo/HomeassistantMQTTDemo.ino:220:10: error: 'SYSTEM_EVENT_STA_DISCONNECTED' was not declared in this scope; did you mean 'WIFI_EVENT_STA_DISCONNECTED'?
  220 |     case SYSTEM_EVENT_STA_DISCONNECTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_DISCONNECTED

My installed libraries are:

Using library lvgl at version 8.3.6 in folder: /Users/pharizna/Documents/Arduino/libraries/lvgl
Using library LovyanGFX at version 1.2.0 in folder: /Users/pharizna/Documents/Arduino/libraries/LovyanGFX
Using library Wire at version 3.1.2 in folder: /Users/pharizna/Library/Arduino15/packages/esp32/hardware/esp32/3.1.2/libraries/Wire
Using library WiFi at version 3.1.2 in folder: /Users/pharizna/Library/Arduino15/packages/esp32/hardware/esp32/3.1.2/libraries/WiFi
Using library Networking at version 3.1.2 in folder: /Users/pharizna/Library/Arduino15/packages/esp32/hardware/esp32/3.1.2/libraries/Network
Using library AsyncMqttClient at version 0.9.0 in folder: /Users/pharizna/Documents/Arduino/libraries/async-mqtt-client-develop
Using library AsyncTCP at version 1.1.4 in folder: /Users/pharizna/Documents/Arduino/libraries/AsyncTCP

Help me! Thanks in advance for your help

Comments

  • Dear Pedro,
    Based on your description, we suspect that the issue might be due to an incorrect version of the ESP32. Could you please let us know which version you are currently using? We recommend trying to use version 2.0.15.

  • Thank you very much for your help. I was using the 'second-to-last' version (3.1.2) of ESP32. I am going to install version 2.0.15 and test it. At least with 2.0.15, the Esp32_Watch_Demo has stopped working, which used to work perfectly with 3.1.2. Could you include in the demo packages or on your website the versions required for each of them?
    I also can't manage to run the HomeAssistantMQTT demo properly, as it seems to require LV_DEMO_WIDGETS :(
    I'm afraid that if I want to 'unify' the MQTT demo to receive data from HomeAssistant on the watch, I'll have to start from scratch since both demos use incompatible versions of the ESP32, right?

  • @Pharizna said:
    Thank you very much for your help. I was using the 'second-to-last' version (3.1.2) of ESP32. I am going to install version 2.0.15 and test it. At least with 2.0.15, the Esp32_Watch_Demo has stopped working, which used to work perfectly with 3.1.2. Could you include in the demo packages or on your website the versions required for each of them?
    I also can't manage to run the HomeAssistantMQTT demo properly, as it seems to require LV_DEMO_WIDGETS :(
    I'm afraid that if I want to 'unify' the MQTT demo to receive data from HomeAssistant on the watch, I'll have to start from scratch since both demos use incompatible versions of the ESP32, right?

    Dear Pedro,
    After our email communication, your issue has been resolved.
    If you have any further questions in the future, please feel free to contact us.

Sign In or Register to comment.