As Json mentioned. There can be many ways to achieve this but the fundamental concept remains same.

You can need to create a common protocol between these two technologies. It can be something...