if you try the following code (@ it is D or S or F):
static char command[6] = {1, 0, 0, 0 , 0, 1};Stash::prepare(PSTR($@), command);session = tcpSend();
then this data will be broken.
I suggest entering "$R"
example:
uint8_t command_len = 6static char command[6] = {1, 0, 0, 0 , 0, 1};Stash::prepare(PSTR($R), command_len, command);session = tcpSend();
In this case, the data will be sent successfully.
if you try the following code (@ it is D or S or F):
static char command[6] = {1, 0, 0, 0 , 0, 1};
Stash::prepare(PSTR($@), command);
session = tcpSend();
then this data will be broken. I suggest entering "$R" example:uint8_t command_len = 6
static char command[6] = {1, 0, 0, 0 , 0, 1};
Stash::prepare(PSTR($R), command_len, command);
session = tcpSend();
In this case, the data will be sent successfully.