Open wycc opened 11 years ago
The current status report is not very flexible. Can we change it to send events instead of text messages directly? In this way, we can use
set_wukong_status({type:'discovery', id:4, message:'Discovery Node 4', wuclass:['Light_Sensor','Threshold'] })
to indicate that the device with Node ID 4 has been discovery and its has wuclass 'Light_Sensor' and 'Threshold'. The UI can intercept those events and then render appropriate UI for it.
The current status report is not very flexible. Can we change it to send events instead of text messages directly? In this way, we can use
set_wukong_status({type:'discovery', id:4, message:'Discovery Node 4', wuclass:['Light_Sensor','Threshold'] })
to indicate that the device with Node ID 4 has been discovery and its has wuclass 'Light_Sensor' and 'Threshold'. The UI can intercept those events and then render appropriate UI for it.