VSChina / ESP32_AzureIoT_Arduino

The library for ESP32 Azure IoT for Arduino
MIT License
37 stars 43 forks source link

"Operating mode must not be set while SNTP client is running" on sntp.c #7

Closed pgrlopes closed 6 years ago

pgrlopes commented 6 years ago

Hello.

I tried using both getstarted and MQTT examples but I keep getting this error when trying to access the Hub. My connection string is as follows:

static const char* connectionString = "HostName=;DeviceId=;SharedAccessSignature=<My key";

I checked on a thread with the same issue where increasing the time in "platform_init" function solved the issue but I can't find that function in this implementation.

Any help would be appreciated.

Cheers

lirenhe commented 6 years ago

platform_init is defined here: https://github.com/VSChina/ESP32_AzureIoT_Arduino/blob/master/src/az_iot/c-utility/pal/src/platform_openssl_compact.c

pgrlopes commented 6 years ago

The latest changes solved the issue, thank you.