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



  • 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



  • My problem is that I can't find the basic MQTT functionality in wifi on the MQTT unit.
    As indicated in my previous email, my one and only problem is to recover my data (Subscribe) since there is no GET DATA function in UIflow with the MQTT Unit.

    In MQTT wifi there is this:

    0_1639761555424_2c013dca-ee02-48c2-8ea8-4d5e26baf148-image.png

    How do you proceed with MQTT unit to achieve the same thing ????

    There is no example in Uiflow on the use of the MQTT unit!



  • THE new version 1.9.0 brings changes in the MQTT unit.
    All that's left to do is test to take advantage of my MQTT unit.

    Thanks M5STACK!

    0_1640945202682_24728e13-c835-4a17-b150-2aeea9d49fc8-image.png



  • @Arno
    Where did you find this? I am using the current versions of the web UIflow(V 1.9.0), and the Desktop version(V 1.7.5) for Mac, but I only find the old version. I would very much like to have a second Mqtt client running.
    J

    Ohhhh, I see it's for the Ethernet MQTT unit. Does anyone know how I could have a second instance of MQTT on a core2 using UIflow?



  • With the new version UIFLOW 1.9.0 I finally have used my MQTT UNIT. But the limit of 4 subscribe strongly limits my project ... I hope this limit will be delete during a future version.



  • Hello @Arno

    I think the limit is not in UIFlow but in the MQTT unit firmware - probably due so some restricted resources.

    From the specification: Support 4x Topic subscription, not support MQTTS

    Thanks
    Felix