I have completed my IOT MQTT task in Arduino successfully.But when I tried same task in PIC18F4550,TCP connection is getting closed immediately.
I have attached my code and Image of my problem.
Please help me if you have any Idea about it.
Add.h.docx (13.0 KB)
Configuration_header_file.h.docx (11.5 KB)
LCD.h.docx (11.1 KB)
pic_serial.h.docx (11.8 KB)
SIM900TCPClient.h.docx (11.0 KB)