partly implemented sync between devices on mbed and server