updated mbed c++ code, allows the mbed to sync its device list with the web server when it connects to the socket