Set Up Frame Time: At+Uartpacktimeout; Serial To Wifi Server(Dynamic Ip Address) - Hi-Link HLK-RM58S User Manual

Table of Contents

Advertisement

4.3 Serial to wifi server(dynamic ip address)

Code:
char *commands_wifi_ap="\
at+netmode=2\r\n\
at+wifi_conf=Hi-Link_,wpa2_aes,0000000000\r\n\
at+dhcpc=1\r\n\
at+remoteport=8080\r\n\
at+remotepro=tcp\r\n\
at+mode=server\r\n\
at+uart=115200,8,n,1\r\n\
at+uartpacklen=64\r\n\
at+uartpacktimeout=10\r\n\
at+net_commit=1\r\n\
at+reconn=1\r\n\";
Com_send(commands_wifi_ap);
Run back:
at+netmode=2 ok
at+wifi_conf=HI-LINK,wpa2_aes,12345678 ok
at+dhcpc=1
at+remoteip=192.168.11.245 ok
at+remoteport=8080 ok
at+remotepro=tcp
at+mode=server
at+uart=115200,8,n,1 ok
at+uartpacklen=64 ok
at+uartpacktimeout=10 ok
at+net_commit=1
// Set to wireless network card mode
// Set the hotspot name and password for the wifi connection
// Use dynamic way to get ip
// Set the local monitor port
// Set socket's connection methods
// Socket as a server to connect
// Set serial port parameters
// Set the frame length
// Set the frame time
// Submit parameters
// Restart the module
18

Advertisement

Table of Contents
loading

Table of Contents