0

I am building an IoT solution based on devices that are not programmable (3rd party devices). I can just configure the server they must connect to and I have the messaging (sending messages and receiving commands).

What is the best way to integrate them in an Azure IoT Solution (IoT Hub) ?

It looks like we can use Azure IoT Edge as Gateway (https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-edge/iot-edge-as-gateway.md) in a "Identity translation" pattern, but I still not figure out how to do it.

I also find Azure IoT Protocol Gateway (https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-protocol-gateway) that seems to do the job but it is not sufficiently clear for me what to do.

Thanks in advance for your help.

sricardo
  • 1
  • 3

1 Answers1

1

The question is which protocols your devices support and how configurable your devices are. For instance you might be able to talk MQTT directly to the IoT Hub without using the SDK: https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

Same is possible for HTTP using the REST API directly: https://learn.microsoft.com/en-us/rest/api/iothub/device

If neither is an option then yes, you need some kind of gateway - like in the examples which you linked.

silent
  • 14,494
  • 4
  • 46
  • 86
  • Thank you for your answer. The devices are communicating with a custom protocol over standard TCP mechanism. So I guess I need to use the Azure IoT Protocol Gateway but it is not easy to understand how to implement it... – sricardo May 14 '19 at 14:58
  • Well there is a full-blown example to start from: https://github.com/Azure/azure-iot-protocol-gateway – silent May 14 '19 at 15:20
  • Also there are other examples out there. For instance, if you want to use IoT Edge as your gateway device, there is a open-source Modbus example https://github.com/Azure/iot-edge-modbus – silent May 14 '19 at 15:22