Message.GetString() Error
-
Hello,
I have a problem with the Message.GetString() function.
I send a RGB value in HEX format to the node and when reading out the message content I get a strange behavior.The serial console tells me the following
read: 0-0-16 s=0,c=1,t=40,pt=0,l=6,sg=0:FF9A00But when I try to read the message value I get:
HEX: FF9A00deIn the code I do the following:
String hexstring = message.getString(); //here goes the hex color code coming from through MySensors (like FF9A00) Serial.print("HEX: "); Serial.println(hexstring);I don't think that this is an issue of the controller or the Arduino sketch.
does somebody have an idea how to solve this?
Thanks.
Stefan -
Hi Stefan!
Which version do you run? We had an issue in early 1.6 which has been solved.
If you run 1.6 this will go away if you download latest 2.0 -
Currently I am using the latest stable version from the website:
Should be version 1.5
Do I need to do any changes in the controller, when I'm using the 2.0 version?
Do I need to update the gateway as well?I'm right that the development tree is the version 2.0 you are talking about?
-
I dont think this was an issue in 1.5.... hmm, sorry - cant help you then. I hope someone else knows.
-
Hello,
I have a problem with the Message.GetString() function.
I send a RGB value in HEX format to the node and when reading out the message content I get a strange behavior.The serial console tells me the following
read: 0-0-16 s=0,c=1,t=40,pt=0,l=6,sg=0:FF9A00But when I try to read the message value I get:
HEX: FF9A00deIn the code I do the following:
String hexstring = message.getString(); //here goes the hex color code coming from through MySensors (like FF9A00) Serial.print("HEX: "); Serial.println(hexstring);I don't think that this is an issue of the controller or the Arduino sketch.
does somebody have an idea how to solve this?
Thanks.
Stefan
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login