GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    mqttClient.publish ESP32

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AndrejK
      last edited by

      Hi!

      I'm trying to 'publish' a Label Update command with an integer variable/value.

      I'm passing an integer variable from main program (.ino), where I measure temeprature with DS18S20, to programm_sta.cpp, where the GUI-O user code shall be integrated.

      Hovewer, I do not know how to use following command:

      mqttClient.publish(parameters.publishTopic, "@lb8 TXT:"\MYTEXT"\r\n");

      where 'MYTEXT' should be an integer value or it's string representation of my measured temperature value.

      Thanks in advance for any help.
      BR
      Andrej

      K 1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @AndrejK
        last edited by

        @AndrejK Hi!

        Please see:

        https://forum.gui-o.com/topic/60/assign-a-number-to-ni-through-a-variable/2?_=1736064840303

        and

        https://forum.gui-o.com/topic/225/how-to-display-a-float-number-via-bluetooth/6?_=1736064823080

        Does this help?

        Best regards,
        Kl3m3n

        A 1 Reply Last reply Reply Quote 0
        • A
          AndrejK @kl3m3n
          last edited by

          Hi!

          Thanks, it works!

          BR
          A

          1 Reply Last reply Reply Quote 0
          • First post
            Last post