When transmitting via TCP I've had no problems with a binary payload, however when transmitting via MQTT, I get errors when loading after ">".
Using the command:
Code: Select all
sprintf(m_buffer, "AT+CMQTTPAYLOAD=0,%u\r", length);
if(sendCommand(m_buffer, 23, 500, ">")){
sendCommand(buffer, length, 1000, "\r\nOK\r\n");
}
I've tested with random binary data and had sporadic successes and failures, with no clear cause.