Virtual Wire sending floats

Alan,

I don't know what you did with that post as its disappear from the forums as I was replying - Please don't change the title once you have submitted otherwise the post will get lost.

Anyway to answer your question.

Member for

15 years 1 month

allanayr

14 years 9 months ago

Brett

Thanks for your reply. I'll check it out and see if works.


Sorry about deleting the post while you were working on it.
I'm afraid that I'm trying to do everything on a mobile phone
at the moment and I double posted and then it would appear
that I double deleted as well! Doh!

Allan.

Member for

15 years 1 month

allanayr

14 years 9 months ago

I've remembered why I didn't just use the float to transmit, it's because I'm a complete novice when it comes to C programming. I have a sketch which will sucessfully transmit and receive string data using virtualwire and whilst I'm very grateful for your suggestion it led me into an hour of head scratching because it doesn't seem to be using the right data types or something.

I think that the vw_get_message call requires uint8_t data types and it is being called with char and int data types which causes the compiler to fail.

Anyway, suffice to say, I can now sucessfully transmit the integer part of the temperature as a string so I should be able to pick it up with the livebox.

Thanks for your input.

 

Allan