Hi,
Thank you all for your replies. Since I was closer to my deadline of a milestone of the project, for now ...I used the code where MCU was sending an endline character.
On looking deeper into the API being used on MCU, I got to know that data is being converted into 8 bits integer and transmitted. And thank you for the code, I will try using that.
@Jeff_t, No, the data is being transmitted as 8 bit integer. I am passing a 32 bit integer value in that "printf" statement, however, that 32 bit integer is being broken up into 8 bits and transmitted as 8 bits. Also, as I mentioned above, the code was working fine and those values ranging from in 70s were also expected.
in the 2nd picture, where, I receive data in continuous rows...I believe I was also expecting values like 4095,4094...you can see those are printed, so basically...I was receiving correct values but without any space/endline character to distinguish the values.
Thank you all for your replies. Since I was closer to my deadline of a milestone of the project, for now ...I used the code where MCU was sending an endline character.
(Mar-03-2022, 03:32 PM)deanhystad Wrote: Were you receiving data when the microcontroller was appending \n to the data?Yes, I used the same code posted in the original question and that was working fine.
On looking deeper into the API being used on MCU, I got to know that data is being converted into 8 bits integer and transmitted. And thank you for the code, I will try using that.
@Jeff_t, No, the data is being transmitted as 8 bit integer. I am passing a 32 bit integer value in that "printf" statement, however, that 32 bit integer is being broken up into 8 bits and transmitted as 8 bits. Also, as I mentioned above, the code was working fine and those values ranging from in 70s were also expected.
in the 2nd picture, where, I receive data in continuous rows...I believe I was also expecting values like 4095,4094...you can see those are printed, so basically...I was receiving correct values but without any space/endline character to distinguish the values.