I'm using Mango to store a 4 byte float in two registers in my slave device.
Now I want to get that float with another master device but I don't know how to do it.
For example, if I use mango to store 3.141592654 in my slave I get 16457 and 4059 in my master device, but... how can I calculate my float again in my master device?
My master device is a Chipkit Max32 and can be programmed using C++
Thank you very much.
This is my wish for this Christmas:
-In one script
-Get values from multiple data sources
-Make some calculation with these values
-Set the value of various data points with the results.
A way can be get access to all variables in every script. Some thing like:
Being variable and variable2 data points from differents data sources
What do you think?
I'm using jpmzometa modbus library with mango and works like a charm, but it has a little big... issue: it doesn't support floats.
If I make an analog read I will get a 0-1023 value and I can send it with the library but I need to make some operations in mango to convert it to the temperature, pressure,.. value.
But sometimes 4 byte precision is needed to send or receive calculations.
How can I make some trick to send and receive floats? Think in a network with 15 arduinos sending/receiving 10 floats each one.