# 智能温湿度传感器 (型号：GSTMB1) - 开发者指令 
## 产品基本描述 
工业级温湿度采集，DC供电，稳定可靠精度高 
## 产品主要特点 
WiFi/以太网双网络模式，
定时上报数据 
## 产品图 
<https://smart-bird-oss.smart-bird.cn/images/2025/07/11/1822526622440532.png> 
<https://smart-bird-oss.smart-bird.cn/images/2025/07/11/182258417868836.png> 
<https://smart-bird-oss.smart-bird.cn/images/2025/07/11/182307600751817.png> 
<https://smart-bird-oss.smart-bird.cn/images/2026/03/12/172444399293178.png> 
<https://smart-bird-oss.smart-bird.cn/images/2026/09/18/1505335670393156.png> 
## 官网产品资料 
### 品牌信息说明 
品牌LOGO <https://smart-bird-oss.smart-bird.cn/images/2026/02/18/1722133698642421.png> 
智鸟科技GemeOpen专注为软件开发者提供商用智能设备，软件工程师通过简单的测试即可完成项目设备选型，使用标准的MQTT/TCP协议，发送JSON指令控制设备通断电、查询设备用电信息。能够极大节省项目实施时间与自研设备风险，与厂商云解耦，搭建私有化MQTT服务，完全掌控设备且无任何捆绑与隐性成本！ 
### 产品详细信息 
<https://www.smart-bird.cn/temperature&humidity-sensor.html> 
### 淘宝购买网址 
<https://item.taobao.com/item.htm?id=977662261450> 
### 京东购买网址 
<https://item.jd.com/10212734178809.html> 
### 开发者文档 
<https://www.smart-bird.cn/doc/product/GSTMB/device/GSTMB1/command> 
## 产品电气参数 
--- 
| 参数名 | 参数值 | 
|------|------| 
| 品牌 | GemeOpen | 
| 上市日期 | 2025年 | 
| 产品类型 | 温湿度传感器基础版 | 
| 产品型号 | GSTMB1 | 
| 外观尺寸 | 117mm*129mm*42mm | 
| 传感器类型 | 一体式瑞士 Sensirion SHT30 传感器 | 
| 供电电源 | DC 9-30V/1A | 
| 供电方式 | 5.5*2.5DC 电源插座 | 
| 待机功率 | ＜1.5W | 
| 通讯模块 | ESP32 | 
| 通讯方式 | 2.4GHz WiFi/ 以太网 | 
| 屏幕类型 | - | 
| 内存Flash | - | 
| 温度测量范围 | -40～+125℃ | 
| 湿度测量范围 | 0～100%RH | 
| 温度测量精度 | ±0.2℃ | 
| 湿度测量精度 | ±2%RH(25℃) | 
| 适用工作温湿度范围 | -20℃～+70℃、0～100%RH（无凝结） | 
| 安装方式 | 螺丝固定 | 
| 外壳材质 | ABS | 
| 外壳防护等级 | IP66 | 
| 备注说明 | 测量数据由瑞士Sensirion厂商资料提供，数据仅供参考。 | 
--- 
 
## 控制采集 
 
### 设置数据自动上报频率 
*device-timer-interval* 
 
配置设备数据的定时上报参数，包括是否上报与上报频率。启用后，设备按设定频率周期上报温湿度等数据至服务器。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "202201241610366046",
"timerEnable" : 1,
"timerInterval" : 15,
"type" : "setting"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| timerEnable | int | 设备温湿度信息定时上报状态，0：关闭；1：开启 | 1 | 
| timerInterval | int | 温湿度信息上报时间间隔（单位秒），取值范围5-86400 | 15 | 
| type | String | 设备设置固定传"setting" | setting | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"code" : "GSTMB1",
"commandName" : "device-timer-interval",
"dhcpEnable" : 1,
"h_compensate" : 0,
"ip" : "192.168.122.119",
"mac" : "4CEBD60BFD62",
"messageId" : "202201241610366046",
"signal" : -75,
"source" : "command",
"ssid" : "GemeOpen",
"timerEnable" : 1,
"timerInterval" : 10,
"t_compensate" : 0,
"version" : "1.0.5"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| code | String | 设备型号代码 | GSTMB1 | 
| commandName | String | 指令名称 | device-timer-interval | 
| dhcpEnable | int | 自动寻址1：开启， 0：关闭，默认开启 | 1 | 
| h_compensate | float | 湿度补偿(单位:%)[范围-20至+20] | 0 | 
| ip | String | 设备连接WIFI后获取的IP | 192.168.122.119 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| signal | int | 信号强度，显示规则为： signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0～（-100)之间，表示无信号 | -75 | 
| source | String | 指令回复“command" | command | 
| ssid | String | 设备当前连接的WIFI名称 | GemeOpen | 
| timerEnable | int | 设备温湿度信息定时上报状态，0：关闭；1：开启 | 1 | 
| timerInterval | int | 温湿度信息上报时间间隔（单位秒），取值范围5-86400 | 10 | 
| t_compensate | float | 温度补偿(单位:摄氏度)[范围-20至+20] | 0 | 
| version | String | 当前固件版本号 | 1.0.5 | 
---  
 
### 查看数据自动上报格式 
*device-timer-task* 
 
查看设备定时上报数据的 JSON 格式，供服务器端对接解析设备上报的数据。是否上报与上报频率由"设置数据定时上报频率"指令配置，配置后设备按周期将数据发布至约定主题（topic），设备端无订阅行为（仅发布），服务端订阅该发布主题后即可接收上报数据。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
// 无需发送指令，设备按配置的频率自动上报数据至服务器 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "device-timer-interval",
"humidity" : 54.45,
"mac" : "4CEBD60BFD62",
"messageId" : "20260520",
"source" : "command",
"temperature" : 28
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | device-timer-interval | 
| humidity | float | 湿度 (单位:%) | 54.45 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| source | String | 指令回复“command" | command | 
| temperature | float | 温度 (单位:摄氏度) | 28 | 
---  
 
### 获取设备基础信息 
*info-all* 
 
获取设备信息一般会包含：设备通断电状态、MAC/IMEI、固件版本、设备内网IP地址、设备WIFI网络名称等信息，不同的产品返回的信息有所差异 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "202201241610366046",
"type" : "info"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| type | String | 设备设置固定传"info" | info | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"code" : "GSTMB1",
"commandName" : "info-all",
"h_compensate" : 0,
"ip" : "192.168.122.119",
"mac" : "4CEBD60BFD62",
"messageId" : "202201241610366046",
"signal" : -75,
"source" : "command",
"ssid" : "GemeOpen",
"timerEnable" : 1,
"timerInterval" : 15,
"t_compensate" : 0,
"version" : "1.0.5"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| code | String | 设备型号代码 | GSTMB1 | 
| commandName | String | 指令名称 | info-all | 
| h_compensate | float | 湿度补偿(单位:%)[范围-20至+20] | 0 | 
| ip | String | 设备连接WIFI后获取的IP | 192.168.122.119 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| signal | int | 信号强度，显示规则为： signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0～（-100)之间，表示无信号 | -75 | 
| source | String | 指令回复“command" | command | 
| ssid | String | 设备当前连接的WIFI名称 | GemeOpen | 
| timerEnable | int | 设备温湿度信息定时上报状态，0：关闭；1：开启 | 1 | 
| timerInterval | int | 温湿度信息上报时间间隔（单位秒），取值范围5-86400 | 15 | 
| t_compensate | float | 温度补偿(单位:摄氏度)[范围-20至+20] | 0 | 
| version | String | 当前固件版本号 | 1.0.5 | 
---  
 
### 获取设备统计信息 
*info-statistic* 
 
获取设备采集的环境温度与湿度信息，注意不同的设备数值单位有区别，取决于设备设计的精度 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "202201241610366046",
"type" : "statistic"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| type | String | 获取设备温湿度信息固定传"statistic" | statistic | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "info-statistic",
"humidity" : 54.45,
"mac" : "4CEBD60BFD62",
"messageId" : "202201241610366046",
"source" : "command",
"temperature" : 28
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | info-statistic | 
| humidity | float | 湿度 (单位:%) | 54.45 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| source | String | 指令回复“command" | command | 
| temperature | float | 温度 (单位:摄氏度) | 28 | 
---   
 
## 设备维护 
 
### 重置设备 
*controller-reset* 
 
恢复出厂设置后配网信息和自定义信息都会清空，请谨慎操作！ 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "20260520",
"system" : "reset",
"type" : "setting"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| system | String | 重置/恢复出厂设置默认填"reset" | reset | 
| type | String | 设备设置固定传"setting" | setting | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "controller-reset",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"messageId" : "20260520",
"source" : "command",
"success" : true
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | controller-reset | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| message | String | 执行返回结果 | ok | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| source | String | 指令回复“command" | command | 
| success | boolean | 执行结果 | true | 
---  
 
### 重启设备 
*controller-restart* 
 
软重启后，通过指令设置的参数将生效，同时设备将重新连接Wifi/4G网络，注意设备IP地址可能发生变化 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "20260520",
"system" : "restart",
"type" : "setting"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| system | String | 重置/恢复出厂设置默认填"restart" | restart | 
| type | String | 设备设置固定传"setting" | setting | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "controller-restart",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"messageId" : "20260520",
"source" : "command",
"success" : true
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | controller-restart | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| message | String | 执行返回结果 | ok | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| source | String | 指令回复“command" | command | 
| success | boolean | 执行结果 | true | 
---  
 
### 获取设备联网信息 
*info-connect* 
 
获取设备当前联网模式时WiFi还是以太网，IP地址、子网掩码、网关、DNS 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "202201241610366046",
"type" : "connect"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| type | String | 固定传“connect” | connect | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "info-connect",
"connMethod" : "ethernet",
"dhcpEnable" : 0,
"dns" : "192.168.0.1",
"gateway" : "192.168.0.1",
"local_ip" : "192.168.0.118",
"mac" : "4CEBD60BFD62",
"source" : "command",
"subnet" : "255.255.255.0"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | info-connect | 
| connMethod | String | 网络连接方式wifi或者ethernet | ethernet | 
| dhcpEnable | int | 自动寻址1：开启， 0：关闭，默认开启 | 0 | 
| dns | String | DNS服务器地址 | 192.168.0.1 | 
| gateway | String | 默认网关 | 192.168.0.1 | 
| local_ip | String | IP地址 | 192.168.0.118 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| source | String | 指令回复“command" | command | 
| subnet | String | 子网掩码 | 255.255.255.0 | 
---  
 
### 获取设备通讯信息 
*info-protocol* 
 
获取当前设备与服务端交互的通信协议及协议配置参数，目前支持MQTT、TCP Client和HTTP Server（固件版本1.1.1以上支持），设备出厂时默认接入GemeOpen厂家MQTT测试服务器，免费提供客户调试使用，如需接入自己的服务器或使用其他协议，请自行搭建服务器。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "20260520",
"type" : "protocol"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| type | String | 获取设备通讯协议固定传protocol | protocol | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"clientId" : "1C6920F083C4",
"commandName" : "info-protocol",
"mac" : "4CEBD60BFD62",
"messageId" : "202201241610366046",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/KIduUf/mSEiZxMFxOLD/1C6920F083C4/subscribe",
"server" : "mqtt.smart-bird.cn",
"source" : "command",
"subcribe" : "/KIduUf/mSEiZxMFxOLD/1C6920F083C4/publish",
"username" : "mSEiZxMFxOLD"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| clientId | String | 自定义MQTT客户端ID注意：不可重复 | 1C6920F083C4 | 
| commandName | String | 指令名称 | info-protocol | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| port | String | 端口号 | 1883 | 
| protocol | String | 协议类型，MQTT协议固定传"mqtt" | mqtt | 
| publish | String | 自定义MQTT发布主题 注意:不可重复 | /KIduUf/mSEiZxMFxOLD/1C6920F083C4/subscribe | 
| server | String | 自定义MQTT服务器地址 | mqtt.smart-bird.cn | 
| source | String | 指令回复“command" | command | 
| subcribe | String | 自定义MQTT订阅主题注意：不可重复 | /KIduUf/mSEiZxMFxOLD/1C6920F083C4/publish | 
| username | String | 自定义MQTT服务器用户名 | mSEiZxMFxOLD | 
---  
 
### 设置设备网络连接方式 
*setting-connmethod-config* 
 
设置设备当前联网方式，设备默认出库为WiFi模式，使用以太网需要下发指令切换网络连接方式（固件版本1.1.5以上，在配置页里的其他设置中支持设置网络连接方式和静态IP设置），需要将设备断电重启或者向设备发送重启命令才可生效。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"connMethod" : "ethernet",
"dhcpEnable" : 0,
"dns" : "192.168.0.1",
"gateway" : "192.168.0.1",
"local_ip" : "192.168.0.118",
"messageId" : "202201241610366046",
"password" : "123456",
"ssid" : "GemeOpen",
"subnet" : "255.255.255.0",
"type" : "setting"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| connMethod | String | 网络连接方式wifi或者ethernet | ethernet | 
| dhcpEnable | int | 自动寻址1：开启， 0：关闭，默认开启 | 0 | 
| dns | String | DNS服务器地址，dhcp关闭才有该字段 | 192.168.0.1 | 
| gateway | String | 默认网关，dhcp关闭才有该字段 | 192.168.0.1 | 
| local_ip | String | 静态ip，dhcp关闭才有该字段 | 192.168.0.118 | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| password | String | 设置wifi密码，网络连接方式wifi才有该字段 | 123456 | 
| ssid | String | 设置wifi名称，网络连接方式wifi才有该字段 | GemeOpen | 
| subnet | String | 子网掩码，dhcp关闭才有该字段 | 255.255.255.0 | 
| type | String | 设备设置固定传"setting" | setting | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "setting-connMethod-config",
"mac" : "4CEBD60BFD62",
"message" : "ok",
"messageId" : "202201241610366046",
"source" : "command",
"success" : true
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | setting-connMethod-config | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| message | String | 执行返回结果 | ok | 
| messageId | String | 消息ID字段 | 202201241610366046 | 
| source | String | 指令回复“command" | command | 
| success | boolean | 执行结果 | true | 
---  
 
### 自定义HTTP 
*setting-http* 
 
用于配置http回调地址，用来设备事件推送地址，注意不支持https 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"maxRetry" : 3,
"messageId" : "20260520",
"protocol" : "http",
"type" : "custom",
"url" : "http://192.168.0.63:8080"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| maxRetry | int | 重试次数 | 3 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| protocol | String | 协议类型 | http | 
| type | String | 设备自定义固定传"custom" | custom | 
| url | String | 回调地址 | http://192.168.0.63:8080 | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "setting-http",
"mac" : "4CEBD60BFD62",
"messageId" : "20260520",
"protocol" : "http",
"source" : "command",
"url" : "http://192.168.0.168:8080"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | setting-http | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| protocol | String | 协议类型 | http | 
| source | String | 指令回复“command" | command | 
| url | String | 回调地址 | http://192.168.0.168:8080 | 
---  
 
### 设置温湿度参数补偿 
*setting-humidity-compensate* 
 
设置温度和湿度的补偿值，用于校准传感器采集数据的偏差。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"h_compensate" : 0,
"messageId" : "20260520",
"type" : "setting",
"t_compensate" : 0
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| h_compensate | float | 湿度补偿(单位:%)[范围-20至+20] | 0 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| type | String | 设备设置固定值"setting" | setting | 
| t_compensate | float | 温度补偿(单位:摄氏度)[范围-20至+20] | 0 | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"code" : "GSTMB1",
"commandName" : "setting-humidity-compensate",
"dhcpEnable" : 1,
"h_compensate" : 0,
"ip" : "192.168.122.119
",
"mac" : "2026bb16aa14",
"messageId" : "20260520",
"signal" : -75,
"source" : "command",
"ssid" : "gemeopen",
"timerEnable" : 1,
"timerInterval" : 15,
"type" : "setting",
"t_compensate" : 0,
"version" : "1.0.0"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| code | String | 设备型号代码 | GSTMB1 | 
| commandName | String | 指令名称 | setting-humidity-compensate | 
| dhcpEnable | int | 自动寻址1：开启， 0：关闭，默认开启 | 1 | 
| h_compensate | float | 湿度补偿(单位:%)[范围-20至+20] | 0 | 
| ip | String | 设备连接WIFI后获取的IP | 192.168.122.119 | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 2026bb16aa14 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| signal | int | 信号强度，显示规则为： signal<= 0 && signal>= -50 //信号最好 signal< -50 && signal>= -70 //信号较好 signal< -70 && signal>= -80 //信号一般 signal<-80 && signal>= -100 //信号较差 signal没有在0～（-100)之间，表示无信号 | -75 | 
| source | String | 指令回复“command" | command | 
| ssid | String | 设备当前连接的WIFI名称 | gemeopen | 
| timerEnable | int | 设备统计信息定时上报状态，0：关闭；1：开启 | 1 | 
| timerInterval | int | 设备统计信息上报时间间隔（单位秒），取值范围5-86400 | 15 | 
| type | String | 设备设置固定值"setting" | setting | 
| t_compensate | float | 温度补偿(单位:摄氏度)[范围-20至+20] | 0 | 
| version | String | 当前固件版本号 | 1.0.0 | 
---  
 
### 自定义MQTT 
*setting-mqtt* 
 
设备支持自定义MQTT，注意：在通过MQTT自定义MQTT信息后，需要将设备断电重启或者向设备发送重启命令才可生效。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"clientId" : "custom",
"messageId" : "20260520",
"password" : "password",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/topic/qos0",
"server" : "192.168.0.66",
"subcribe" : "/topic/qos1",
"type" : "custom",
"username" : "username"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| clientId | String | 自定义MQTT客户端ID注意：不可重复 | custom | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| password | String | 密码 | password | 
| port | String | 端口号 | 1883 | 
| protocol | String | 协议类型，MQTT协议固定传"mqtt" | mqtt | 
| publish | String | 自定义MQTT发布主题 注意:不可重复 | /topic/qos0 | 
| server | String | 自定义MQTT服务器地址 | 192.168.0.66 | 
| subcribe | String | 自定义订阅主题，注意：不可重复 | /topic/qos1 | 
| type | String | 设备自定义固定传"custom" | custom | 
| username | String | 自定义MQTT服务器用户名 | username | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"clientId" : "custom",
"commandName" : "setting-mqtt",
"mac" : "4CEBD60BFD62",
"messageId" : "20260520",
"password" : "password",
"port" : "1883",
"protocol" : "mqtt",
"publish" : "/topic/qos0",
"server" : "192.168.0.66",
"source" : "command",
"subcribe" : "/topic/qos1",
"username" : "username"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| clientId | String | 自定义MQTT客户端ID注意：不可重复 | custom | 
| commandName | String | 指令名称 | setting-mqtt | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| password | String | 密码 | password | 
| port | String | 端口号 | 1883 | 
| protocol | String | 协议类型 | mqtt | 
| publish | String | 自定义发布主题 注意:不可重复 | /topic/qos0 | 
| server | String | 自定义服务器地址 | 192.168.0.66 | 
| source | String | 指令回复“command" | command | 
| subcribe | String | 自定义订阅主题，注意：不可重复 | /topic/qos1 | 
| username | String | 自定义服务器用户名 | username | 
---  
 
### 自定义TCP 
*setting-tcp* 
 
设备支持通过MQTT方式自定义TCP信息，注意：通过MQTT自定义TCP信息后，需要将设备断电重启或者向设备发送重启命令才可生效。 
 
**向设备发送指令（服务端向设备订阅topic发送消息）** 
```json 
{
"messageId" : "20260520",
"port" : "8080",
"protocol" : "tcp",
"server" : "192.168.0.66",
"type" : "custom"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| port | String | 端口号 | 8080 | 
| protocol | String | 协议类型 | tcp | 
| server | String | 自定义服务器地址 | 192.168.0.66 | 
| type | String | 设备自定义固定传"custom" | custom | 
--- 
**设备返回信息（设备向服务端订阅topic上报消息）** 
```json 
{
"commandName" : "setting-tcp",
"mac" : "4CEBD60BFD62",
"messageId" : "20260520",
"port" : "8080",
"protocol" : "tcp",
"server" : "192.168.0.66",
"source" : "command"
} 
``` 
#### 字段属性 
--- 
| 字段名称 | 字段类型 | 字段说明 | 示例值 | 
|------|------|------|------| 
| commandName | String | 指令名称 | setting-tcp | 
| mac | String | wifi设备MAC地址或4G设备的IMEI号，唯一标识 | 4CEBD60BFD62 | 
| messageId | String | 业务流水号。由请求方生成的唯一标识，响应方原样回显，用于请求与响应的关联匹配。 | 20260520 | 
| port | String | 端口号 | 8080 | 
| protocol | String | 协议类型 | tcp | 
| server | String | 自定义服务器地址 | 192.168.0.66 | 
| source | String | 指令回复“command" | command | 
---