Mail communication between Azure IoT edge and hub

Q-bertsuit 45 Reputation points
2023-02-02T09:35:08.5333333+00:00

We are looking into migrating our current IoT solution to use Azure IoT. The issue is that we have a handful of customers that only allow e-mail as a way of communicating with the outside world. In this scenario, our IoT device sends and receives messages to the cloud via an on-premise mail server.

Is there any way that we could migrate to Azure IoT, and still support the customers that only allow this type of communication? Is it possible to implement some custom layer so that the edge device and hub communicate by putting the messages in an email instead of connecting directly to the hub?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
534 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2023-02-02T13:16:17.0433333+00:00

    Like Surbhi mentioned, you could create some custom software to send telemetry to the cloud via email. However, the Edge Agent module on the device will need to connect to Azure IoT Hub. It can't do that through email. Without the agent, you can't receive deployments. And so, it won't be able to function as an Edge device, without losing functionality. Basically, you will need to treat the device as an offline device.

    You will also lose the ability of sending device to cloud messages through the Edge Hub, and lose the ability to receive or send module twin updates. You will also be building custom modules to send emails, instead of using normal telemetry messages, and when you're done building these modules, you can't download them from your customer's location. You will need to bring them somewhere that allows connecting to IoT Hub to update them. Every time you make a software update, you will need to sync the device to receive updates.

    Convincing your customer that setting up an AMQP connection is safer than using email should be easier and less costly. Don't forget that although AMQP/MQTT are bi-directional protocols, the device initiates it. There is never an incoming connection from the cloud. Also, how are your edge devices going to receive OS updates? Surely not by email?

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Surbhi 596 Reputation points Microsoft Employee
    2023-02-02T12:13:07.21+00:00

    Hello,

    IoT Hub allows devices to use the following protocols for device-side communications:

    MQTT, MQTT over WebSockets ,Advanced Message Queuing Protocol (AMQP), AMQP over WebSockets, HTTPS

    So Ideally Azure IoT Hub directly cannot receive the email message.

    Alternatively, you can send the email to an Azure Logic app or Azure Function and read the body of the email and then send that message to Azure IoT Hub.

    1 person found this answer helpful.