GithubHelp home page GithubHelp logo

Comments (5)

digimaun avatar digimaun commented on May 31, 2024

Hi @avinnako.

Can you please describe your workflow and what command is not working?

Simple c2d scenario:

Send c2d message to device

az iot device c2d-message send -d mydevice -n myhub --data "hello world!"

Receive c2d message

az iot device c2d-message receive -d mydevice -n myhub

Simple d2c scenario:

Run event monitor in a dedicated shell (assumes default msg endpoint)

az iot hub monitor-events -n myhub

Send d2c messages, and see event in monitor

az iot device send-d2c-message -n myhub -d mydevice

The more detail you provide the better for troubleshooting.

from azure-iot-cli-extension.

avinnako avatar avinnako commented on May 31, 2024

I am no longer having communication issues from cloud to device. But I am still getting "[WinError 10061] No connection could be made because the target machine actively refused it" when i try to send message from device to cloud.

from azure-iot-cli-extension.

avinnako avatar avinnako commented on May 31, 2024

I ran this command "az iot device send-d2c-message -n AVIoTHubTest -d Test-device-02" and "az iot device send-d2c-message -n AVIoTHubTest -d Test-device-02 --data "Hello World!"" and i got the same error: "[WinError 10061] No connection could be made because the target machine actively refused it" while trying from powershell.

from azure-iot-cli-extension.

avinnako avatar avinnako commented on May 31, 2024

I am getting "NotConnectedError: connect ECONNREFUSED XXX.XXX.XXX.XXX:8883" while trying from VS Code, when trying to send message from device to cloud.

from azure-iot-cli-extension.

digimaun avatar digimaun commented on May 31, 2024

Sorry for the delayed response. Assuming you resolved the issue. You can comment here if its still a problem and we can re-open the issue. If its still a problem my first inclination is a port issue, both vscode and the CLI using port 8883 for mqtt connection.

from azure-iot-cli-extension.

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.