Sending decimal value to arduino
Posted: Thu Feb 07, 2019 6:02 am
How can I send a float value (ex 5,4) from megunolink and have arduino to understand that?
I have tested this but the value vill only be integer.
void Cmd_SetDmin(CommandParameter &Parameters)
{
Dmin = atof(Parameters.NextParameter());
}
And this is what meguno is sending:
!SetDVmax 4.5
I have tested this but the value vill only be integer.
void Cmd_SetDmin(CommandParameter &Parameters)
{
Dmin = atof(Parameters.NextParameter());
}
And this is what meguno is sending:
!SetDVmax 4.5