[#132] Update ping to register the device with the server.