mqtt simple2 robust2 callback I need an example

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
alien1983
Posts: 15
Joined: Fri Sep 07, 2018 4:52 pm

mqtt simple2 robust2 callback I need an example

Post by alien1983 » Tue Feb 23, 2021 12:58 pm

Hi,
I need example code to use method: set_callback_status & set_callback ?.

I need an example code (calback) to check if sending the message / topic subscription was successful or not.



How to do it I have in this library mqtt simple2, robust2 ?

https://github.com/fizista/micropython- ... simple2.py
https://github.com/fizista/micropython- ... robust2.py

How do I set the maximum time in seconds for this operation?

I am doing a soil moisture sensor working on a battery, connected to a homeassistant via wifi. It has to be active for a short time, then goes to sleep.

Post Reply