How to send message from Mosquito MQTT broker to Azure IoT hub

Debashis Jena 76 Reputation points
2023-02-08T15:54:11.52+00:00

I'm trying to publish message from Mosquito MQTT broker to Azure IoT hub. While publishing message, I'm getting error as tls_process_server_certificate:certificate verify failed. What is the reason for this error and how to resolve it?

Is there any way to do configuration change such that publishing of message can be automated when new message is received by MQTT broker without using using any code or script?

Azure Internet of Things
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 36,766 Reputation points MVP Volunteer Moderator
    2023-02-08T17:11:39.5766667+00:00

    Hello @Debashis Jena ,

    The Azure IoT Hub supports MQTT as a transport protocol for IoT Devices.

    The IoT Hub expects separate devices to communicate using specific credentials, special topics, and communication flow.

    This way, you can communicate both D2C and C2D communication using MQTT

    See the example on how to communicate using MQTT.

    You want to connect a service to the Azure IoT Hub.

    You need to add logic between the two services to honor the way Azure IoT is communicating.

    An alternative is 'wrapping' your Mosquitto broker in Azure IoT Edge like this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.