What kind of data? If you want to send light levels the Serial Protocol support V_LIGHT_LEVEL for raw values.
Otherwise... well you can send any number you want via a V_LEVEL as long as you know what to do with it on the controller side.
Arduino code on how to send data is part of most examples on this page.
@Joe13, I am new to DzVents too ... but it is a great opportunity to learn
Have a look into the Domoticz installation folder, can't remember now exactly where but there is a sub-folder with interesting examples, when you start reading these examples you may have a better overall understanding of how DzVents works.
Their wiki is also very usefull:
https://www.domoticz.com/wiki/DzVents:_next_generation_LUA_scripting
Have fun @Joe13 ...
@nagelc said in Sending custom value to move DC motor a specific # of degrees:
Yes. This looks good. Dropped it in the parser here: https://www.mysensors.org/build/parser
Looks like V_VAR1 is being sent with value 55.
I think the code I posted above should get it from the incoming message and assign to target. If not, then I am not sure what is the problem. Perhaps someone that has worked more with V_VAR can respond?
Actually I finally got it to work! and yes indeed, it was using your code!!!
I don't know what I was doing before, but I tried your code previously but didn't work, and the only way to read the value was using : target = message.getString(); for some reason..
But I changed quite a few things in the code, and now when I tried your code again, it actually worked!
Dude thank you, you are a hero! I will post the final version once I polish up the code in case anyone else needs to do a similar thing!
I verified a variable named Voltage DOES get created and is set on the Vera arduino node device if I create MyMessage with:
MyMessage voltageMsg(255, V_VOLTAGE);
and send value with:
send(voltageMsg.set(12.1, 1));
@mfalkvidd said in Return value of bool send(MyMessage &msg, const bool ack = false);:
@bilbolodz just to check: are you sure there are no repeaters or other gateways within range?
I've to check more thoroughly but rather not.
I think that @Yveaux refers to my generic threshold library (github). It really makes it easy to add sensors and reporting their values to the gateway.