Print float data over UART

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
0 Likes
3 Replies
Praveen
Community Manager
Community Manager
Community Manager
25 solutions authored 10 likes given 5 likes given

Hi,

   

Can you please give us more details to help you better?

   

Thanks

   

praveen 

Cheers
Praveen
0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

To print float over UART convert float to a char string and use the print string UART API.

   

sprintf works with a char buffer, declare one first, the longest length you will need + 1,

   

latter for storing the NULL char, string terminator.

   

 

   

Formatting string creation for sprintf() attached.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks Danaaknight for your help.

   

 

   

Nilesh.

0 Likes