mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 21:17:06 +03:00
Init GPIO handler before MQTT init (#1663)
This commit is contained in:
@@ -90,6 +90,9 @@ void doInit(void)
|
|||||||
ESP_LOGD(TAG, "Finished tfliteflow.InitFlow(config);");
|
ESP_LOGD(TAG, "Finished tfliteflow.InitFlow(config);");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* GPIO handler has to be initialized before MQTT init to ensure proper topic subscription */
|
||||||
|
gpio_handler_init();
|
||||||
|
|
||||||
#ifdef ENABLE_MQTT
|
#ifdef ENABLE_MQTT
|
||||||
tfliteflow.StartMQTTService();
|
tfliteflow.StartMQTTService();
|
||||||
#endif //ENABLE_MQTT
|
#endif //ENABLE_MQTT
|
||||||
@@ -780,7 +783,6 @@ void task_autodoFlow(void *pvParameter)
|
|||||||
|
|
||||||
ESP_LOGD(TAG, "task_autodoFlow: start");
|
ESP_LOGD(TAG, "task_autodoFlow: start");
|
||||||
doInit();
|
doInit();
|
||||||
gpio_handler_init();
|
|
||||||
|
|
||||||
auto_isrunning = tfliteflow.isAutoStart(auto_intervall);
|
auto_isrunning = tfliteflow.isAutoStart(auto_intervall);
|
||||||
if (isSetupModusActive()) {
|
if (isSetupModusActive()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user