update the device related func
Merge branch 'master' of https://github.com/msdc/wirelessSensor
update the device related func