For an IoT project, we need to send messages from mobile application (iOS and Android) to Azure IoT Hub. We were able to do it connecting as a device using MQTT library. However, the device simulator too connect as a device and since both uses same device ID, the existing connection is dropped when both connect to IoT Hub at the same time.
We realized we need to connect mobile apps as a service (not as a device) and for that some research shows we need to use following library.
https://github.com/Azure/azure-iot-sdk-java
However, this java sample uses lot of java specific implementations and which are not supported by Android.
Has anyone faced the same problem?
- Which library can we use to achieve above from Android mobile application?
- Which library can we use to achieve above from iOS mobile application?
Please let me know if any alternate solution is available.