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

mqttClient.publish ESP32

Scheduled Pinned Locked Moved
General Discussion
2
3
151
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 4 Jan 2025, 18:45

    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 5 Jan 2025, 08:16 Reply Quote 0
    • K
      kl3m3n @AndrejK
      last edited by 5 Jan 2025, 08:16

      @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 5 Jan 2025, 10:51 Reply Quote 0
      • A
        AndrejK @kl3m3n
        last edited by 5 Jan 2025, 10:51

        Hi!

        Thanks, it works!

        BR
        A

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post