Look at using REST API or experiment with some of the transformation services to send messages to the device.
Or something like this: