BX310x +KTCPSND data termination?

Greetings,

BX310x provides the AT+KTCPSND command for direct sending of TCP data. How does one terminate the data string in order for the module to initiate the actual send?

If I use:
“AT+KTCPSND=1,\r\n\r\n\r\nTitleText\r\n\r\n\r\nBody text\r\n\r\n\r\n”

I never get a response from the module.

You can refer to here for sending binary data

Greetings,

thank you for the quick reply!

Looking at the case you referred, it seems that there is no termination sequence for the data string. The string ends with a carriage return and a line feed. But there are other carriage return and line feed combinations in the string as well, so how does the module know when the data ends?

If you need to send \r ( 0xd), you should use \0d

Greetings,

thank you again for the quick reply!

My mistake! Yes, one needs to replace \r with \0d within the data string and in addition in order to terminate the command \r as such is needed.

Note to self: there are some other characters that need to be escaped comma (‘,’) for example needs to be replaced with \2c.