接口地址+配网说明
<ul>
<li>接口地址</li>
</ul>
<table>
<thead>
<tr>
<th>日期</th>
<th>修改人</th>
<th>接口ip地址</th>
<th>修改内容</th>
</tr>
</thead>
<tbody>
<tr>
<td>2025年4月11日</td>
<td>狄东伟</td>
<td><a href="http://mqtt.baanool.com:10002/">http://mqtt.baanool.com:10002/</a></td>
<td>调试地址</td>
</tr>
</tbody>
</table>
<h1>扫地机主题:<code>BNIOT/ROBOT/{sno}</code></h1>
<pre><code>mqtt地址:mqtt.baanool.com 1883</code></pre>
<h1>设备配网</h1>
<h5>按压配网按键,设备会释放“baanool”开头的WIFI热点,APP连接机器热点发送http请求进行配网</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=bcc267dbfa69dd9a4c99a8ff0668cb37&amp;file=file.png" alt="" /></p>
<h5>请求URL</h5>
<ul>
<li><code>http://192.168.88.1:8443/provision/wifisetup</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<pre><code>{
&quot;ssid&quot;:&quot;wifi name&quot;,
&quot;pwd&quot;:&quot;123456&quot;,
&quot;userid&quot;:1,
&quot;model&quot;:1,
&quot;time_offset&quot;:142342
}
</code></pre>
<h5>传入参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">是否必须</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">ssid</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">Y</td>
<td>wifi名</td>
</tr>
<tr>
<td style="text-align: left;">pwd</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">Y</td>
<td>wifi密码</td>
</tr>
<tr>
<td style="text-align: left;">userid</td>
<td style="text-align: left;">Int</td>
<td style="text-align: left;">Y</td>
<td>用户Id</td>
</tr>
<tr>
<td style="text-align: left;">model</td>
<td style="text-align: left;">Int</td>
<td style="text-align: left;">Y</td>
<td>设备型号ID</td>
</tr>
<tr>
<td style="text-align: left;">time_offset</td>
<td style="text-align: left;">Int</td>
<td style="text-align: left;">Y</td>
<td>默认时区相对于UTC(协调世界时)的原始偏移量,单位是 毫秒</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<p>#######扫地机回复内容“69e88ef76be2185c”为扫地机序列号sno</p>
<pre><code>
{
&quot;69e88ef76be2185c &quot;
}
1.成功回复-扫地机回复内容“69e88ef76be2185c”为扫地机序列号sno:
2、扫地机断开wifi热点并连接设定的wifi,app定时调用下述接口查看配网结果,
根据接口返回状态【0:失败,1:成功 ,-1:未收到设备信息】
##配网状态说明:
当收到-1,代表服务器没收到设备状态信息,此时app需启动一个2分钟的定时器,
期间每隔2秒调用一次接口,如果2分钟内接口没有返回0或1就认为是超时,显示配网失败的界面,
为0就是配网失败,为1的话就是配网成功进行下一步设置时区语言等等
##配网结果查询接口
· [app配网结果查询](https://www.showdoc.com.cn/baanooliot/11558629280936797 &quot;app配网结果查询&quot;)
</code></pre>