• J
    jose francisco

    Hello.

    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++

    Any answer?

    Thank you very much.

    posted in User help read more
  • J
    jose francisco

    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:

    variableXID.value=variable2XID.value

    Being variable and variable2 data points from differents data sources

    What do you think?

    Thank you.

    posted in Wishlist read more
  • J
    jose francisco

    how can I hack an arduino an a max485 to connect Mango as master to a bus like:

    image

    another question... is the third cable connected to ground with a 100/0.5W resistor the shield of the cable?

    posted in User help read more
  • J
    jose francisco

    Today = new Date();
    return Today.getUTCMonth();
    
    

    This code returns 11 instead of 12. My system clock shows December.
    What's happening?

    Thank you

    posted in User help read more
  • J
    jose francisco

    Hello everybody.

    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.

    Thank you.

    posted in Wishlist read more