迷你看门狗

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Web Server API)
第23行: 第23行:
 
== Web Server API ==
 
== Web Server API ==
  
 +
=== 恢复出厂设置 ===
  
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param
 +
</source>
 +
 +
<br><br>
 +
 +
=== 系统复位 ===
 +
 +
<source lang=bash>
 +
$ curl  -X POST -H "Content-Type:application/json" -d '{"reset":1}' http://IP/config?command=param
 +
</source>
 +
 +
<br><br>
 +
 +
=== 切换AP 和STA 工作模式 ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" 
 +
</source>
 +
 +
<br><br>
 +
 +
=== 获取模块上电运行时间 ===
 +
 +
<source lang=bash>
 +
$ curl Curl -X GET http://IP/config?command=systime
 +
</source>
 +
 +
<br><br>
 +
 +
=== ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param
 +
</source>
 +
 +
<br><br>
 +
 +
=== ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param
 +
</source>
 +
 +
<br><br>
 +
 +
=== 串口波特率 ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{" uartbaud":baudrate}' http://IP/config?command=param
 +
</source>
 +
 +
其中baudrate 代表要设置的波特率。
 +
{
 +
“response”:{
 +
“systime”:11111
 +
}
 +
}
 +
 +
<br><br>
 +
 +
=== 设置dataserver 端口 ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{" dataport":port}' http://IP/config?command=param
 +
</source>
 +
 +
其中port 代表要设置的端口号
 +
 +
<br><br>
 +
 +
=== ===
 +
 +
<source lang=bash>
 +
$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param
 +
</source>
 +
 +
<br><br>
 
<br><br>
 
<br><br>
 
<br><br>
 
<br><br>

2014年12月11日 (四) 14:35的版本

目录

1 主控SoC

Tensilica Xtensa LX3 32-bit RISC SOC clocked at 80 MHz


Tensilica-xtensalx3.jpg


  • 32-bit ALU
  • 16, 32 or 64 GPR
  • six special purpose registers
  • 80 base instructions

The Xtensa ISA employs 24-bit instructions with 16-bit narrow encodings for the most common instructions.


Toolchain 支持:



2 Web Server API

2.1 恢复出厂设置

$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param



2.2 系统复位

$ curl  -X POST -H "Content-Type:application/json" -d '{"reset":1}' http://IP/config?command=param



2.3 切换AP 和STA 工作模式

$ curl -X POST -H "Content-Type:application/json"  



2.4 获取模块上电运行时间

$ curl Curl -X GET http://IP/config?command=systime



2.5

$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param



2.6

$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param



2.7 串口波特率

$ curl -X POST -H "Content-Type:application/json" -d '{" uartbaud":baudrate}' http://IP/config?command=param

其中baudrate 代表要设置的波特率。 { “response”:{ “systime”:11111 } }



2.8 设置dataserver 端口

$ curl -X POST -H "Content-Type:application/json" -d '{" dataport":port}' http://IP/config?command=param

其中port 代表要设置的端口号



2.9

$ curl -X POST -H "Content-Type:application/json" -d '{"factory":1}' http://IP/config?command=param

























个人工具
名字空间

变换
操作
导航
工具箱