Problems with RSSI

Visualizzazione 2 filoni di risposte
  • Autore
    Post
    • #22241
      fabiooo
      Partecipante

        Hi renzo,
        I noticed that if I have several nodes that answer me at the same time, the messages are lined up in the HardwareSerial buffer and this is wonderful.
        But there is a problem with every message a strange character is added at the beginning and in my opinion it is derived from the RSSI.
        Is it possible to put a “new line” and read the messages well?

        
        8:D:66:240:100:100:100:14:20:12
        �9:D:68:236:100:100:100:14:20:12
        �10:D:67:249:100:100:100:14:20:12
        �11:D:68:247:100:100:100:14:20:12
        ␀12:D:64:247:100:100:100:14:20:12
        �13:D:68:249:100:100:100:14:20:12
        
      • #22242
        Renzo Mischianti
        Amministratore del forum

          Hi Fabioo,
          check if you have enabled the RSSI in your configuration.
          You can add a termination character in the sendMessage and use receiveMessageUntil to read single message.
          Bye Renzo

          • #22279
            fabiooo
            Partecipante

              But by using the receiveMessageUntil I still have RSSI?

          • #22289
            Renzo Mischianti
            Amministratore del forum

              Hi Fabioo,
              yes, but you must remove the last byte manually.

              
              	if (rssiEnabled){
              		rssi = originalMessage.charAt(tmpData.length()-1);
              		message = originalMessage.substring(0, tmpData.length()-1);
              	}else{
              		message = originalMessage;
              	}
              
              

              Bye Renzo

          Visualizzazione 2 filoni di risposte
          • Devi essere connesso per rispondere a questo topic.
          Exit mobile version