Giter VIP home page Giter VIP logo

Comments (6)

ewertons avatar ewertons commented on June 15, 2024

from azure-umqtt-c.

ndanzi avatar ndanzi commented on June 15, 2024

I am running this sample:
https://github.com/Azure/azure-umqtt-c/blob/master/samples/mqtt_client_sample/mqtt_client_sample.c

Another question: Is there any way to manage the trustStore certificate in order to validate SSL connection to the server?

from azure-umqtt-c.

tameraw avatar tameraw commented on June 15, 2024

@ndanzi - Have you considered using our IoT Hub client SDK (which uses this very library)? Any reasons not to use that?

from azure-umqtt-c.

ndanzi avatar ndanzi commented on June 15, 2024

@tameraw - thank you for reply, but that SDK doesn't accomplish the requirements of my project, in fact I must support connections to several MQTT brokers, not only IoT Hub.

With this library I am able to connect to all those brokers (apollo, mosquitto, ecc) and the only broker I cannot send messages to is IoT Hub.
The umqtt client connects to the IoT Hub but when I try to send a message to the broker, I get the OnErrorComplete callback called. My credentials are right, because with them I can connect with Paho Mqtt c library. As password I use a SAS token generated by token service.
I am also able to send messages to IoT Hub using your uamqp library.

I suppose I should change the disposition of my authentication parameters, but I cannot find any example of connection to IoT Hub using umqtt.

from azure-umqtt-c.

tameraw avatar tameraw commented on June 15, 2024

@ndanzi - Here is the detailed doc on MQTT support for IoTHub:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support

from azure-umqtt-c.

juanmartin avatar juanmartin commented on June 15, 2024

Hi, I'm in a similar path. I need to get messages from mosquitto broker and send them to IoT Hub through a downstream device, so I'm trying to merge the iotedge_downstream_device_sample with the mqtt_client_sample.
I'm trying to understand the functions involved for this process, but cannot find any information. @ndanzi Were you able to accomplish this task?

from azure-umqtt-c.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.