Integration Manual

15/16
(System reset, and switch the current mode: provisioning mode transfer to working mode; or working
mode transfer to provisioning mode)
*AT*RESET*2*
(System reset, and erase all the config of the FLASH, include APN, baud rate……)
10.Setting users network function
(1).The parameter of serverSRVURL
Demand the information of the server
Input:*AT*SRVURL*?*
Output:+SRVURL:OK
Hostname:http://demo90.myit-school.net/
SetDataAPI:LiSeng.Body.Scale.Apps/API.setData.php
GetDataAPI:LiSeng.Body.Scale.Apps/API.getData.php
Setting the information of the server
Input format:*AT*SERVURL*<hostname><getdataapipath><setdataapipath>*
For example, the URL=http://demo90.myit-school.net/LiSeng.Body.Scale.Apps/API.SetData.php*
So setting the command: *AT*SRVURL*http://demo90.myit-school.net/
LiSeng.Body.Scale.Apps/API.SetData.php*
Output: +SRVURL:OK
Hostname:http://demo90.myit-school.net/
API:LiSeng.Body.Scale.Apps/API.SetData.php
Note: The setting information of the server will be saved in the flash.
(2).TX dataSETDATA
The command format:*AT*SETDATA*<URL><sourcedata>*
If input URL in the command, then the sourcedata will be sent to the URL as http; if without URL in the
command, then the sourcedata will be sent to the URL of the SRVURL command setting.
For example:
Input:
*AT*SETDATA*http://demo90.myit-school.net/LiSeng.Body.Scale.Apps/API.SetData.phpmacid=00-1A-2B
-3C-4C-5D&uname=David&var=weight&val=100*
Or input:
*AT*SETDATA*macid=00-1A-2B-3C-4C-5D&uname=David&var=weight&val=100*
Output:
+SETDATA:OK
status:[success]
(3).Demand dataGETDATA