wukong-m2m / NanoKong

GNU General Public License v2.0
7 stars 3 forks source link

Implement a better event system to report the status of the master to the web UI #62

Open wycc opened 11 years ago

wycc commented 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.