Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] org.eclipse.paho.mqtt.embedded-c.git

Hi,

does Azure IoT hub accept MQTT 3.1?  The latest is 3.1.1.

- data.MQTTVersion = 3 selects MQTT 3.1

- data.MQTTVersion = 4 selects MQTT 3.1.1

This may seem odd, but it's the way that it is defined in the protocol.  The good news is that in the next revision of the protocol, both numbers become 5 :-)

Ian

On 09/06/2016 08:02 AM, LUBAC Dominique wrote:

Hi,

I use paho mqtt embedded for publish message for azure iot hub.

I compile source with visual studio 2008 ,ARM G45 architecture.

I use the following configuration :

Main file : qos0pub.c

 

char *host = "TestAcoemIotHub.azure-devices.net";

//int port = 1883;

int port = 5671;

data.clientID.cstring = "DeviceAcoem";

data.keepAliveInterval = 20;

data.cleansession = 1;

data.username.cstring = "TestAcoemIotHub.azure-devices.net/DeviceAcoem";

  data.password.cstring = "SharedAccessSignature sr=TestAcoemIotHub.azure-devices.net%2fdevices%2fDeviceAcoem&sig=XXXXXXXEgyP2%2bH0H1WKx2rJBOZAEDqMA4uHT5AFJ8%3d&se=1498744862";

data.MQTTVersion = 3;

topicString.cstring = "DeviceAcoem";

 

I have a successfully published message but no iot message received in the azure dashboard.

 

Thanks for your reply

 

Dominique LUBAC

 



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top