@mrhutchinsonmn said in Modifying A0 value to Percentage:
@rvendrame That worked! I did need to change "float moisture_percentage" to init "moisture_percentage" to get passed the "Call of overloaded function is ambiguous" error. Not sure if that is the correct approach but I was able to compile and upload. Not sure how I missed the send msg but I did. Thanks again!
I'm glad it worked! And right, the code I provided was to work with integers.
if you want to keep using float (and have decimals places), you have to add the number of decimal places in send function ( I put 2 decimals in this example):
send(msg.set( moisture_percentage , 2 ));
@cloolalang Actually, I'm tempted to try the SX1280. It's a lot more different: https://forum.mysensors.org/topic/11265/second-setup-choosing-a-radio/34?_=1595815545926
It looks as though a "good enough" test drive library may possibly already exist: https://github.com/StuartsProjects/SX12XX-LoRa
The same person range tested it and also did a thoughtful review: https://github.com/StuartsProjects/SX1280_Testing Paraphrasing, he says it lends itself to a more simplified programming style than the highly register centric approach of the SX127x's.
Spoiler: he proves a range of 40 kilometers transmitting at just 4dB. He estimates a range of 200 kilometers should be possible. Impressive for such a modest little module: