How to use V_TEXT in 2.0.0
-
Looks like I'm missing something here on using V_TEXT?
MyMessage TEXTMsg (CHILD_ID,V_TEXT); // 47 send(TEXTMsg.set("Alarm is Active", 0)); // Send to gatewayI get this error...
Using library MySensors at version 2.0.0-beta in folder: /Users/lafleur/Desktop/MySensor-Arduino-development/Arduino-development_1.6b/libraries/MySensors exit status 1 invalid conversion from 'const void*' to 'void*' [-fpermissive]Thanks...
-
Looks like I'm missing something here on using V_TEXT?
MyMessage TEXTMsg (CHILD_ID,V_TEXT); // 47 send(TEXTMsg.set("Alarm is Active", 0)); // Send to gatewayI get this error...
Using library MySensors at version 2.0.0-beta in folder: /Users/lafleur/Desktop/MySensor-Arduino-development/Arduino-development_1.6b/libraries/MySensors exit status 1 invalid conversion from 'const void*' to 'void*' [-fpermissive]Thanks...
Hi!
I think you need to send a character array:
https://www.arduino.cc/en/Reference/StringYou can use the function toCharArray to convert a String to a character array.
-
Sorry, I don't know why you added ,0. :stuck_out_tongue_winking_eye:
For some of the msg setters, the second argument is used to specify length (buffer) or number of decimals (float).
Please read through the API:
http://www.mysensors.org/download/sensor_api_15#the-full-api
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