MQTT client that orients a 3d cube based on accelerometer data