feat:【IoT 物联网】使用 STATE_UPDATE 重构

This commit is contained in:
YunaiV
2025-06-26 23:44:21 +08:00
parent dfb0501e09
commit c16158ce38
2 changed files with 7 additions and 12 deletions

View File

@ -8,14 +8,9 @@ export const IOT_PROVIDE_KEY = {
*/
export const IotDeviceMessageMethodEnum = {
// ========== 设备状态 ==========
STATE_ONLINE: {
method: 'thing.state.online',
name: '设备上线',
upstream: true
},
STATE_OFFLINE: {
method: 'thing.state.offline',
name: '设备下线',
STATE_UPDATE: {
method: 'thing.state.update',
name: '设备状态变更',
upstream: true
},