-->
Page 1 of 1

Problem sending character

PostPosted: Wed Mar 13, 2019 7:17 am
by rodrigocirilo
Hello everyone.

I am programming a NodeMcu in arduino ide, to send to a server the string "$99991130000010¶" necessarily has to contain all these characters, the sending function is the Client.print ().

It happens that the data arrives corrupted on the server, it arrives like this ($99991130000010¶) and the last character o (paragraph) arrives from a  that distorts the server's way of interpreting.

I can not handle the data received on the server because it is a commercial software and I do not have access to the source code.

Somebody help me, please.

Re: Problem sending character

PostPosted: Wed Mar 13, 2019 7:59 am
by QuickFix
Just a guess, but I guess the magic word here is "UniCode"; the IDE probably tries to encode the paragraph-character as a 16bit-UniCode character.
Try replacing the literal character with its byte value 0xB6. :idea:

Re: Problem sending character

PostPosted: Wed Mar 13, 2019 10:55 am
by rodrigocirilo
QuickFix wrote:Just a guess, but I guess the magic word here is "UniCode"; the IDE probably tries to encode the paragraph-character as a 16bit-UniCode character.
Try replacing the literal character with its byte value 0xB6. :idea:


If you can give me an example, I thank you. because I could not think of something to try to solve this, even you saying about Unicode I do not know how to do it.

Re: Problem sending character

PostPosted: Thu Mar 14, 2019 8:31 am
by QuickFix
Just a wild guess, so not actually tested:
Code: Select allclient.print("$99991130000010" + 0xB6);