Comments (6)
from azure-umqtt-c.
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.
@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.
@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.
@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.
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)
- Fails to publish message to IoTHub HOT 3
- Get connection error while publishing HOT 1
- ESP32-Mqtt was not connected using Azure SSL Certificate HOT 1
- Random connection failure to IoTHub HOT 4
- ping response timeout quesiton HOT 3
- Error on xio_close HOT 4
- error: unknown type name ‘QOS_VALUE’ HOT 6
- mqtt client does not handle ping response in the right way HOT 3
- Publisher and Subscriber in the same client HOT 1
- Compile error
- compiliation problems when mqtt_client .h included by a cpp file HOT 2
- UMQTT or Azure IoT SDK C? HOT 3
- mqtt_client_sample.c program client program exits after receiving one or two messages, HOT 2
- Relationship between this library and Azure Iot SDK MQTT code? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-umqtt-c.