User's Manual

User Manual
22 30
HLK-B35
4.3. Configure the module as a server (dynamic ip address)
code
char *commands_wifi_ap="\
at+netmode=2\r\n\ //Set the module to STA mode
at+wifi_conf=HI-LINK,wpa2_aes,00000000\r\n\ //Set the name, encryption method and password
of the connection route
at+dhcpc=1\r\n\ //Use dynamic IP
at+remoteport=8000\r\n\ //Set local listening port
at+remotepro=tcp\r\n\ //Set the socket connection method
at+mode=server\r\n\ //Socket connects as server
at+uart=115200,8,n,1\r\n\ //Set serial port parameters
at+net_commit=1\r\n\ //Submit parameters
at+reconn=1\r\n\"; //Restart module
Com_send(commands_wifi_ap);
Feedback
at+netmode=2
OK
at+wifi_conf=HI-LINK,wpa2_aes,00000000
OK
at+dhcpc=1
OK
at+remoteport=8000
OK
at+remotepro=tcp
OK
at+mode=server
OK
at+uart=115200,8,n,1
OK
at+net_commit=1
OK
at+reconn=1
OK