At Command Control Code Routine; Query Configuration Information - Hi-Link HLK-RM58S User Manual

Table of Contents

Advertisement

4. AT command control code routine

4.1 Query configuration information

Code:
char *query="\\ // Defining a string pointer
at+netmode=?\r\n\ // Query WiFi connection mode
at+wifi_conf=?\r\n\
// Query the SSID and password of the module
at+dhcpc=?\r\n\
// Query dhcp
at+net_ip=?\r\n\ // Query module ip
at+remoteip=?\r\n\ // Query remote ip
at+remoteport=?\r\n\ // Query the port
at+remotepro=?\r\n\ // Query socket connection protocol
at+mode=?\r\n\ // Query tcp connection mode
at+uart=?\r\n\ // Query the serial port parameter
at+uartpacklen=?\r\n\ // Query serial port frame length
at+uartpacktimeout=?\r\n\ // Query serial port frame time
at+ver=?\r\n\
// Query firmware version number
";
Com_send(query); // Send these data out of the serial port
Run back:
at+netmode=? 0
at+wifi_conf=? Hi-Link,wpa2_aes,12345678 at+dhcpd=? 0
at+dhcpc=? 1
at+net_ip=? 192.168.15.254,255.255.254.0,192.168.11.1
at+remoteip=? 192.168.11.245
at+remoteport=? 8080
at+remotepro=? tcp
at+mode=? server
at+uart=? 115200,8,n,1
at+uartpacklen=? 64
at+uartpacktimeout=? 10
at+ver=? V1.39(Dec 6 2012)
16

Advertisement

Table of Contents
loading

Table of Contents