cancel
Showing results for 
Search instead for 
Did you mean: 

Passing float value to UART buffer ?

antonius
Senior

Dear Members,

How can I pass float value from RPM to UART buffer

float ==> (uint8_t*)&aTxBuffer8 ?

(uint8_t*)&aTxBuffer8 = snprintf(str_rpm,sizeof(str_rpm),"%f",rpm);

?

Thanks

10 REPLIES 10

Is it working, or do you ask these things rhetorically?

Pointer and length, check those.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..