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
第 20 页 共 30
HLK-B35
4. AT command control code example
4.1. Query configuration information
code:
char *query="\ //Define string pointer
at+ver=?\r\n\"; //Query the firmware version number
at+uart=?\r\n\ //Query serial port parameters
at+netmode=?\r\n\ //Query distribution method
at+mode=?\r\n\ //Query tcp connection mode
at+dhcpc=?\r\n\ //Query dhcp
Com_send(query); //Send these data out from the serial port
feedback:
at+ver=?
HLK-B35(V1.00Nov 18 2020-23:54:48)
at+uart=?
115200,8,n,1
at+netmode=?
2
at+mode=?
client
at+dhcpc=?
1
4.2. Configure the module as a client (static ip address)
code:
char *commands_wifi_client_static="\
at+uart=115200,8,n,1\r\n\ //Set serial port parameters
at+netmode=2\r\n\ //Set the module to STA mode
at+wifi_conf=HI-LINK,wpa2_aes,12345678\r\n\ //Set the name, encryption method and
password of the connection route
at+dhcpc=0\r\n\ //Use static IP
at+net_ip=192.168.8.35,255.255.255.0,192.168.8.5\r\n\ //Set the IP of the module










