Code Monkey home page Code Monkey logo

Comments (5)

tameraw avatar tameraw commented on July 20, 2024 1

@johannesegger - Forgot to update on this one, but a fix has been checked in. Please feel free to reopen if still having issues. Thanks.

from azure-iot-sdk-csharp.

jasmineymlo avatar jasmineymlo commented on July 20, 2024

@eggapauli, disabling a device is virtually the same as deleting it from IoTHub which would terminate the connection to that particular device. On re-enabling the device, it is equivalent to recreating the device with the same configuration data as before. So, it is by-design that the device has to initiate reconnection to the IoTHub in this scenario.

Message sending and receiving still work in this case because recovery logic has kicked in once the connection was terminated by the IoTHub. The connection for messaging will reestablished once the device is re-enabled.

We have a task for method handlers recovery logic in our product backlog. This should solve the issue.

Hope this helps. Thanks.

from azure-iot-sdk-csharp.

johannesegger avatar johannesegger commented on July 20, 2024

Perfect, thanks a lot. It would also be nice to get notified when that happens. Could you imagine creating an event or something that notifies about connection problems?

from azure-iot-sdk-csharp.

jasmineymlo avatar jasmineymlo commented on July 20, 2024

Thanks for your comment. We have a work item for the notification regarding connection status in our backlog as well.

from azure-iot-sdk-csharp.

johannesegger avatar johannesegger commented on July 20, 2024

Perfect, thanks a lot.

from azure-iot-sdk-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.