use new MQTT unit with UIFlow?



  • Hello,

    I just received the new MQTT unit.
    I was using MQTT in WIFI with my M5s like this with UIFlow:
    0_1637010663460_666e51af-52f2-4ae1-9367-37d6844298d8-image.png
    avec les fonctions suivantes :
    0_1637010712632_1ce5ee80-a0d6-4be4-99ef-2bca4a429034-image.png

    With the new unit I am a little confused to do the same. I do not find the same functions to carry out "MQTT subscribe"
    0_1637010600771_a597c6d0-7d66-4097-b122-25250570ecb6-image.png
    How to achieve the same?

    Thanks for your help


  • M5Stack

    0_1637296490518_6f94ce47-1dad-4772-9ca7-f23169d4fbd6-image.png

    you could take a variable to connect the block. after the block is executed, it will return a result of subscribing successfully.



  • @m5stack
    Sorry, but I still cannot recover my data from the broker with the MQTT unit. It works perfect with MQTT in Wifi and my CORE2.
    Here is my code with UIFlow, the LAMPES variable is always at TRUE, as the BOOKER MQTT communicates values "On" or "Off"
    How to get the GET TOPIC DATA function?

    0_1637418577227_4289a9a4-29aa-4974-a34c-eb270c0b6bac-image.png