update server.js receive all kind of status updates from device