How to send an MQTT message from a ReactNative App to Azure IotHub?

Nguyen Van Tai 20 Reputation points
2024-01-31T08:33:55.38+00:00

I have built an IoT system using Azure IoT Hub.

I can’t install Azure IotHub into my ReactNative app to send Mqtt messages.

Is there any way to send messages from ReactNative app?

Please help me guide me. Or if there is another way, please explain it to me. Thank you.

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

Accepted answer
  1. Sander van de Velde | MVP 33,141 Reputation points MVP
    2024-01-31T10:15:15.39+00:00

    Hello @Nguyen Van Tai,

    welcome to this moderated Azure community forum.

    The IoT Hub supports MQTT as transport protocol but is very strict on the number of topics because these are tied to the DeviceTwin mechanism.

    See this blog post on how to work with those topics.

    If you want to do vanilla MQTT, check out the new MQTT support for EventGrid.

    See this blog post with an explanation and a video about the 'IoTGrid' service.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.