BASIC CODE for MQTT connection

Hi Dasha,

Yes you rigth. It was just and example with the *.pem. I will generate the server.pem and upload that file into the Flexy.

But I have doubts with the next lines:

LINE1

MQTT “SETPARAM”,“Username”,IotHubName$+ “.azure-devices.net/”+DeviceId$+"/api-version=2016-11-14"

I understund that IotHubName don’t need it. I have to eliminate it and put just “broker address”…

And what about: /api-version=2016-11-14" ??? thats for Azure… but in HIVE how is that??

LINE 2

MQTT “SETPARAM”,“Password”,“HostName=”+IotHubName$+";DeviceID="+DeviceId$+";x509=true"

I understund I have to eliminate IotHubName again… but the other is OK… in’s it?

Thanks so much
Jose