Topic: AzureIoTHub Example
I am trying to run the AzureIOT Hub client using the ltaest version of WolfSSL and Wolf MQTT from the latest snapshot on github.
1.) (Build Related)
It seems there are some possible issue in the build system under windows. The Solution for the 64-bit build of WolfSSL still builds 32-bit libraries.
Also, when I setup the projext for a 32-bit build, calls to wc_GetTime corrupt the stack. I get a
"Run-Time Check Failure #2 - Stack around the variable 'lTime' was corrupted."
around line 245 in azureiothub.c
The only workaround was to add a line like this:
lTime = XTIME(0);
and comment out the call on line line 195 of azureiothub.c
2.) After #1, I found that I got an exception in "external.c" (see attached png).
The only fix was to copy the source files for WolfSSL into the MQTT library project and build.
After getting the projects/libraries to build, I ran azureiothub.exe with visualstudio 2017 with a debugger attached. The example seems to hang:
AzureIoTHub Client: QoS 1, Use TLS 1
MQTT Net Init: Success (0)
MQTT Init: Success (0)
MQTT TLS Setup (1)
I did change the URI for my own azure account as well as the key. I got the same results with the stock settings.
When I look in wireshark I can see some DNS queries go out for DEMO-IOT-HUB2.azure-devices.net but nothing else.
What would be the next best step to debug this issue?