Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. issue with V_TEXT sensor type

issue with V_TEXT sensor type

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 1.8k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mickaelh51
    wrote on last edited by
    #1

    Hi all,
    I'm playing with LCD screen. I want to display in my LCD a string from my mqtt broker.
    Ex:
    OpenHAB --> MQTT Broker --> MQTT Gateway --> LCD (directly connected on gateway)

    I can send a message Ex: "TEST_LCD_1_MIKA_COOL":
    Result:

    0;0;3;0;9;Message arrived on topic: mygateway1-in/0/3/1/V_TEXT/47
    Incoming msg DATA: TEST_LCD_1_MIKA_COOL
    

    but when I send a shorter message Ex: "TEST_LCD_2_SUPER"

    0;0;3;0;9;Message arrived on topic: mygateway1-in/0/3/1/V_TEXT/47
    Incoming msg DATA: TEST_LCD_2_SUPERCOOL
    

    We can see that message.getString is false. It adds the end of the last string on this new string.

    buffer not empty ?

    My conf:

    void receive(const MyMessage &message) {
      // We only expect one type of message from controller. But we better check anyway.
      if (message.type==V_TEXT && message.sensor == LCD_CHILD) {
        lcd.clear();
        Serial.print("Incoming msg DATA: ");
        lcd.print("Incoming msg DATA: ");
        lcd.setCursor ( 0, 1 );
        Serial.println(message.getString());
        lcd.print(message.getString());
       } 
    }
    

    can you help me please ?

    Thanks in advance

    Controller: OpenVZ :: OpenHab 1.8.0 :: MQTT Broker
    Gateway: Arduino UNO :: W5100 :: MQTTClient
    Software: MySensors 1.6beta

    1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      Hi @mickaelh51
      See my post here: http://forum.mysensors.org/topic/2617/receivetime-and-request-in-1-6 I think it might be same.
      I have seen some activity on github lately (about this I think), have you downloaded the latest lib? It might be working now... dont know 100% though.

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mickaelh51
        wrote on last edited by
        #3

        Thanks @sundberg84
        I'm going to update my library now !

        I will tell you if it works

        Controller: OpenVZ :: OpenHab 1.8.0 :: MQTT Broker
        Gateway: Arduino UNO :: W5100 :: MQTTClient
        Software: MySensors 1.6beta

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #4

          I think it should work: https://github.com/mysensors/Arduino/issues/322
          Lets hope so, good luck.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mickaelh51
            wrote on last edited by
            #5

            I'm sorry for that ;)
            It works perfectly after the library update

            thank you very much @sundberg84

            Controller: OpenVZ :: OpenHab 1.8.0 :: MQTT Broker
            Gateway: Arduino UNO :: W5100 :: MQTTClient
            Software: MySensors 1.6beta

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            10

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular