Hi!
I have some projects that send float values with Virtualwire.
In one project I use dtostrf and it has never crashed.
My weatherstation is sending all data in a binary format (byte array).
This is some parts of my code:
struct WeatherData {
byte year;
byte month;
byte day;
byte hour;
byte minute;
byte windspeed;
byte winddirection;
unsigned int pressure;
unsigned int humidity;
float rain;
float temperature;
};
WeatherData WeatherDataArray[144];
memcpy(msg,&WeatherDataArray[bSendCounter],iLen);
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx();
dtostrf is easier to use and ok for short messages..
/Olof