Tcp
Send:
At+cipstart= "TCP", "122.0.114.244", 1001
Return:
Ok
CONNECT OK
Send:
At+cipsend>hello every one!
0x1a
Disconnect Connection
At+cipshut
Close the move scene (PDP context to activate GPRS to attach)
At+cipshut return: O
(Need to re-connect in the background)
(back after the background is broken
CLOSED
)
ERROR
Already CONNECT
(representing already connected state)
Udp
Send:
At+cipstart= "UDP", "122.0.114.244", 1001
Return:
Ok
CONNECT OK
Send:
At+cipsend>hello every one!
0x1a
Disconnect Connection
At+cipshut
Return:
SHUT OK
(UDP does not need to be re-connected after the background is disconnected)
TCP UDP can communicate with each other on the premise of connection
After the UDP is disconnected in the background, the background is logged in again, the module sends the data back to the background and can be connected, and the two can communicate with each other.
GSM900TCP/UDP Connection