Asynchronous work of the wifi manager and mqtt clientАсинхронна робота wifi менеджера і mqtt клієнта
Arduino is going.
I use WiFiManager and mqtt client.
Sometimes, for example, if you turn the router and esp simultaneously, the esp work is blocked and the logic ceases to be performed. I think the blocking takes place at the wifimanager level. Just set delay in setup() doesn’t work.
The task is to ensure that WiFiManager and mqtt work asynchronously and do not block the basic logic. You need either to set up the current library or propose your solution.
Write, please, the orientation option and time of work.
Контроллер esp32.
Arduino ide.
Я використовую WiFiManager і mqtt клієнт.
Інколи, наприклад, якщо увімкнути роутер і esp одночасно, робота esp блокується і логіка перестає виконуватись. Думаю, що блокування відбувається на рівні wifimanager. Просто поставити delay в setup() не працює.
Задача в тому щоб WiFiManager і mqtt працювали асинхронно і не блокували основну логіку. Потрібно або налаштувати поточні біблоіотеки або запропонувати своє рішення.
Пишіть, буль ласка, орієнтовну варітсть і час роботи.
-
356 2 0 • • • • • • • •
I can complete the project to write at the post.
• • • • • • • •
----------------------------------------------------------------------------------------------------
Можу виконати проект напишіть у поаідомленния
----------------------------------------------------------------------------------------------------
-
У вас же rtos на esp крутиться, працюйте з wifi та mqtt в окремих тасках