I am using a SIM868 module with an Arduino Mega, where the SIM868 is connected to Serial1.
After establishing a TCP connection, I need to send the following byte stream:
{0x60, 0x1A, 0x9D, 0x01, 0x00, 0x00, 0x07}
I am attempting to send this data using:
byte message[] = {0x60, 0x1A, 0x9D, 0x01, 0x00, 0x00, 0x07};
Serial1.write(message, sizeof(message));
However, only the first byte (0x60) is transmitted. The transmission stops at 0x1A, because 0x1A (Ctrl-Z) is interpreted by SIM868 as the end-of-data signal.
How can I send the entire byte array without SIM868 treating 0x1A as a termination character?