Generic text variable type
-
I want to be able to send text messages to node which have a display. Or vice versa have the sensor send plain text to the controller.
A text device is a very flexible "sensor" and was suggested on the Domoticz forum.
In my case this would be sms type status reporting and reporting of very complex non standard sensor information (robot actions). I realize that the S_CUSTOM/V_VAR type could be used but this is hard to handle by controllers as there is no standard way of handling the type.. @hek any reason to not include a S_TEXT/V_TEXT type? ;-)
-
Hello,
I'm interesting about sending or receive text through a node for exemple to receive informations to write to a LCD or OLED screen... I've read about V_TEXT type but I don't found any example with text and LCD example or description, or idealy Build example... do you have ideas for How to do this ?
Thanks
(sorry, my engliish's very bad, I know... oups !) -
V_TEXT already exists in version 2.0 : see in the code, or in Doxygen ! :-p
But because of the NRF24L01 limitation, the maximum payload size is 25 bytes!.
This means that V_TEXT messages would be limited to 25 characters, which could be too short in some case.Maybe Mysensors could split longer V_TEXT in multiple messages when sending, then recomposing it when receiving ie:
"Here is a sentence longer than 25 characters that should be splitted."
Could be encoded into messages like this :
1;0;0;47;Here is a sentence lon;1;4 1;0;0;47;ger than 25 characters;2;4 1;0;0;47; that should be splitt;3;4 1;0;0;47;ed.;4;4Then it would be automatically decoded at the arrival.
This way V_TEXT message would be limited to 23*255 characters (more than enought), without writing complicated code from the controllers or in the sketch !
-
Hello,
I'm interesting about sending or receive text through a node for exemple to receive informations to write to a LCD or OLED screen... I've read about V_TEXT type but I don't found any example with text and LCD example or description, or idealy Build example... do you have ideas for How to do this ?
Thanks
(sorry, my engliish's very bad, I know... oups !)@medline2c there are a few examples on the forum scrolling text
-
V_TEXT already exists in version 2.0 : see in the code, or in Doxygen ! :-p
But because of the NRF24L01 limitation, the maximum payload size is 25 bytes!.
This means that V_TEXT messages would be limited to 25 characters, which could be too short in some case.Maybe Mysensors could split longer V_TEXT in multiple messages when sending, then recomposing it when receiving ie:
"Here is a sentence longer than 25 characters that should be splitted."
Could be encoded into messages like this :
1;0;0;47;Here is a sentence lon;1;4 1;0;0;47;ger than 25 characters;2;4 1;0;0;47; that should be splitt;3;4 1;0;0;47;ed.;4;4Then it would be automatically decoded at the arrival.
This way V_TEXT message would be limited to 23*255 characters (more than enought), without writing complicated code from the controllers or in the sketch !
-
-
V_TEXT already exists in version 2.0 : see in the code, or in Doxygen ! :-p
But because of the NRF24L01 limitation, the maximum payload size is 25 bytes!.
This means that V_TEXT messages would be limited to 25 characters, which could be too short in some case.Maybe Mysensors could split longer V_TEXT in multiple messages when sending, then recomposing it when receiving ie:
"Here is a sentence longer than 25 characters that should be splitted."
Could be encoded into messages like this :
1;0;0;47;Here is a sentence lon;1;4 1;0;0;47;ger than 25 characters;2;4 1;0;0;47; that should be splitt;3;4 1;0;0;47;ed.;4;4Then it would be automatically decoded at the arrival.
This way V_TEXT message would be limited to 23*255 characters (more than enought), without writing complicated code from the controllers or in the sketch !