I'm using sim900 modem with raspberry pi, I'm able to connect to server using AT command for TCP, but when I try to send mqtt Publish packet as follow(I used tcpflow to get this packet from mosquitto library):
Serial.print("0");
Serial.print("0x10");
Serial.print("0x0");
Serial.print("0x8");
Serial.print("ABC/XYZ");
Serial.print("HELLO");
Serial.print("0x0");
it doesn't work.