|
|
@ -36,3 +36,55 @@ export const shutdownJSON = { |
|
|
|
messageId: 'shutdown', |
|
|
|
delayms: 60 * 5, |
|
|
|
} |
|
|
|
|
|
|
|
// 开始消毒
|
|
|
|
export const startDisinfection = (loglevel, roomVolume) => { |
|
|
|
return { |
|
|
|
command: 'startDisinfection', |
|
|
|
messageId: 'startDisinfection', |
|
|
|
loglevel, |
|
|
|
roomVolume, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 停止消毒
|
|
|
|
export const stopDisinfection = { |
|
|
|
command: 'stopDisinfection', |
|
|
|
messageId: 'stopDisinfection', |
|
|
|
} |
|
|
|
|
|
|
|
// 获取当前设备的状态信息
|
|
|
|
export const getState = { |
|
|
|
command: 'getState', |
|
|
|
messageId: 'getState', |
|
|
|
} |
|
|
|
|
|
|
|
export const getAllUser = { |
|
|
|
command: 'getAllUser', |
|
|
|
messageId: 'getAllUser', |
|
|
|
} |
|
|
|
|
|
|
|
export const getAllSetting = { |
|
|
|
command: 'getAllSetting', |
|
|
|
messageId: 'getAllSetting', |
|
|
|
} |
|
|
|
|
|
|
|
export const getAllRecords = disinfection_id => { |
|
|
|
return { |
|
|
|
command: 'getAllRecords', |
|
|
|
messageId: 'getAllRecords', |
|
|
|
disinfection_id, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export const setSettingVal = (settingName, settingVal) => { |
|
|
|
return { |
|
|
|
command: 'setSettingVal', |
|
|
|
messageId: 'setSettingVal', |
|
|
|
settingName, |
|
|
|
settingVal, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// RealtimeSensorDataReport
|
|
|
|
// 实时传感器信息上报
|