User's Manual
Table Of Contents
- 1.Product Introduction
- 2.Function description
- 3. AT command instructions
- 3.1.Basic AT commands
- 3.2.WI-FI related AT commands
- 3.3.TCP/IP Related AT commands
- 3.3.8.Set the framing length of the serial port:at+uartp
- 3.3.9.Set the framing time of the serial port:at+uartpac
- 3.4.BLE related AT commands
- 3.5.Custom message prompt instruction
- Note:This type of command does not have a message
- The maximum length supports 30 bytes. Do not inclu
- 4.AT command control code example
- 5.Bluetooth distribution network and data transparen
- 6.Module power consumption measured data
- 7.Appendix A Document Revision History
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










