[SOLVED] V_VOLTAGE
-
When I try to send V_VOLTAGE as a 'long' it works. But, I would prefer to send a float and every time I try this it fails with a compilier warning.
Is there a list of data types that can be sent as V_VOLTAGE?
I am using S_MULTIMETER if that helps at all......
-
When I try to send V_VOLTAGE as a 'long' it works. But, I would prefer to send a float and every time I try this it fails with a compilier warning.
Is there a list of data types that can be sent as V_VOLTAGE?
I am using S_MULTIMETER if that helps at all......
@skywatch Perhaps your sketch would have helped see what is going wrong, but here is an abstract from mine, hope this helps:
voltread = analogRead(BatteryIn); float voltage = (7.272 * voltread) / 1024; sleep(5); send(msg3.set(voltage,2));It is declared as V_VOLTAGE and S_MULTIMETER as yours, but the float is sent to 2 decimal places, as in voltage,2
-
@zboblamont Thank you! - I didn't know if it was possible to send as a float or not.
Now it is working as expected - :)
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