Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure iot sdk c #2508

Closed
Ndamix-Store opened this issue Jul 25, 2023 · 0 comments
Closed

azure iot sdk c #2508

Ndamix-Store opened this issue Jul 25, 2023 · 0 comments
Labels

Comments

@Ndamix-Store
Copy link

------------------------------- delete below -------------------------------

INSTRUCTIONS

Please follow the instructions and template below to save us time requesting additional information from you.

  1. Search existing issues to avoid creating duplicates.

  2. If possible test using the latest release to make sure your issues has not already been fixed:
    https://github.com/Azure/azure-iot-sdk-c/releases/latest

  3. Do not share information from your Azure subscription here (connection strings, service names (IoT Hub name, Device Provisioning Service scope ID), etc...). If you need to share any of this information, you can create a ticket and get assistance from the Microsoft Support.

How to Submit an Azure Support Ticket: https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request

  1. Include enough information for us to address the bug:

  2. Delete these instructions before submitting the bug.

Below is a hypothetical bug report. We recommend you use it as a template and replace the information below each header with your own.

------------------------------- delete above -------------------------------

Development Machine, OS, Compiler (and Other Relevant Toolchain Info)

Raspberry Pi, Raspbian Stretch Lite (Release 2018-11-13)
Cross Compiled on Ubuntu 18.04 using GCC 6.3.0

SDK Version (Please Give Commit SHA if Manually Compiling)

Release 2019-01-31

Protocol

MQTT

Describe the Bug

If MQTT is unable to establish a connection, it will keep trying and once it succeeds queued messages will be sent to the Cloud. However, if for some reason we can't get past the initial connection phase, then SDK does not respect message timeouts.

MCVE

#include "iothub.h"

int main(void)
{
    if (lightbulb == ON) {
        iothub_say_hello();
        return 0;
    } else {
        iothub_say_goodbye();
        return 1;
    }
}

Console Logs

Sending message 1 to IoTHub
-> 15:07:42 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_LEAST_ONCE | TOPIC_NAME: devices/tracingDevice/messages/events/property_key=property_value | PACKET_ID: 93 | PAYLOAD_LEN: 12
<- 15:07:42 PUBACK | PACKET_ID: 92
Confirmation callback received for message 86 with result IOTHUB_CLIENT_CONFIRMATION_OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant