I am using DIGI XBEE 3 CAT-1 module for sending data to server.
1)The following steps are followed in my code to send data.
+++ - Enter into Command Mode.
ATAN - Set APN.
ATIP 0 - To select UDP Mode.
ATRO 3 - To set Packetization Timeout.
ATDL 184.108.40.206 - To set destination Server IP.
ATDE C002 - To set destination Server Port.(49154)
ATC0 C002 - To receive data from Server.(49154)
ATAC - Apply the changes immediately.
ATCN - Exit Command Mode.
"hello" (Test data) - Data that transmits in Uart
2)Using above sequence I send data to server.
3)Whenever I am sending data to server the first data is reaching the server after 20-30 sec.
4)After the first data reaches the server if I send any data,it is reaching the server instantly.
Could you please help in solving this initial time delay of data reaching the server and please mention why it is happening.