Closed Oidua closed 2 years ago
Hi @Oidua
The first bit looks about right. The resulting out_payload
should contain what you are looking for. Are you trying to not use an snprintf()
?
For the second, it looks like the connect is failing. Are you sure that you have the certificate set correctly?
Hi Danewalton,
Thanks a lot for yor message. I am publishing the variable in Azure but I do not have access to it. But who has informed me that the publishing is happening. Thanks for the tip using snprintf() instead of sprintf(). About the certificate I can check but I suppose it is right, because in the serial monitoring appears the message "MQTT client started". My issue is how to do and not having the errors "MQTT event MQTT_EVENT_ERROR" and "MQTT event MQTT_EVENT_DISCONNECTED". But I will try snprintf(). Thanks again.
Hi Danewalton, you were right, the issue was about the procedure to generate the hash from certificate and key file coming using Azure account. Now is running well. Thanks for the support.
Query/Question 1- The task is first sendind temperature (later temperature and humidity) to Azure Hub IoT. How should be build the function getTelemetryPayload(az_span payload, az_span* out_payload)? Please see the try below I have done:
Remark: const char *VARIABLE_LABEL_TEMPERATURE and float temperature are global declared
2- Below is attached a printscreen from Esp32 serial showing some errors I could not solve.
Why is this not a Bug or a feature Request? It my first time I am opening an issue and as far as I understood it is not a bug, it is about implementation of variables using function from SDK. Below is attached a printscreen of Esp32 serial to show it is running even with some errors
Setup (please complete the following information if applicable):
OS: [e.g. iOS]
IDE: [Arduino 1.8.19 running in Windows 11 Home Single Language]
Version of the Library used: Libraries included Azure SDK for C Version 1.0.0-beta.5
Information Checklist Please make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
[ ] Query Added
[ See below print screen Esp32 Serial and Cpp code that includes voir setup() and void void loop()] Setup information Added
Code including void setup() and voir loop():