iotedgehubdev | IoT Edge Hub Dev Tool | Azure library
kandi X-RAY | iotedgehubdev Summary
kandi X-RAY | iotedgehubdev Summary
The Azure IoT EdgeHub Dev Tool provides a local development experience with a simulator for creating, developing, testing, running, and debugging Azure IoT Edge modules and solutions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup an edge hub connection
- Generate a chain of CA certificates
- Generate a CA cert chain
- Generates self signed certificates
- Decorate a function with telemetry
- Sets the result of the session
- Send a telemetry error
- Parse parameters
- Upload data to Telemetry
- Removes symbols from a string
- Flush current session information
- Generate the payload
- Generates trusted CA certificates
- Generate a trusted CA certificate
- Constructs a dictionary of CA CA certificates
- Chain CA certificates
- Output credential information
- Helper function to output a credential file
- Set parameter
- Prints header
- Setup the configuration
- Decorator to return the result of a function
- Decorator to convert user agrees to telemetry
- Stop the IOT Edge emulator
- Set config value
- Print a footer
iotedgehubdev Key Features
iotedgehubdev Examples and Code Snippets
Community Discussions
Trending Discussions on iotedgehubdev
QUESTION
Runing the Build and Run Iot Edge Solution in Simulator stopped working suddenly, and the log builds the containers and stops at this message Network azure-iot-edge-dev is external, skipping
Everything was working fine 5mins ago, tried rebooting, restarting docker, iotedgehubdev, but in vain. Do you know how can I get more logs and/or resolve this problem ?
ANSWER
Answered 2021-Aug-11 at 04:38Do you know how can I get more logs and/or resolve this problem ?
Are you trying to debug/simulate it locally on windows 10 machine?
When you need to gather logs from an IoT Edge device, the most convenient way is to use the support-bundle command. By default, this command collects module, IoT Edge security manager and container engine logs, iotedge check JSON output, and other useful debug information. It compresses them into a single file for easy sharing. The support-bundle command is available in release 1.0.9 and later.
Run the support-bundle command with the --since flag to specify how long from the past you want to get logs. For example 6h will get logs since the last six hours, 6d since the last six days, 6m since the last six minutes and so on. Include the --help flag to see a complete list of options.
QUESTION
We created sample iot edge application using visual studio 2019. When we are trying to setup iot edge device connection string in Setup Iot Edge Simulator getting below error.
C:\Users\10070047\Documents\Visual Studio 2019\iotedgehubdev\v0.14.2\iotedgehubdev setup -c HostName={connection string} [16472] Failed to execute script pyi_rth_pkgres Traceback (most recent call last): File "lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 11, in File "d:\a\1\s\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module File "lib\site-packages\pkg_resources_init_.py", line 86, in ModuleNotFoundError: No module named 'pkg_resources.py2_warn' [ERROR]: Failed to run 'iotedgehubdev setup -c HostName={connectionstring}' with error: [16472] Failed to execute script pyi_rth_pkgres Traceback (most recent call last): File "lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 11, in File "d:\a\1\s\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module File "lib\site-packages\pkg_resources_init_.py", line 86, in ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
FYI. tried with setup the connection string
Can someone please help me on this. Thanks
...ANSWER
Answered 2020-Oct-20 at 12:32A few days ago an update to the Azure IoT Edge Tools for Visual Studio introduced this bug. It worked fine in 1.6, but is broken in 1.7. It has been reported on GitHub and the Microsoft Q&A forums. Both platforms usually resolve these errors quickly, so keep a look out!
Update: A workaround was posted in lieu of an official fix.
QUESTION
I'm running:
- Windows 10 Home version 1909.
- Visual Studio 2019 Pro 16.5.0. Azure
- IoT Edge Tools 1.7.0. azure-iot-sdk-c package.
- Latest version of Docker Toolbox - (it runs hello-world with no errors).
- Python, pip. iotedgehubdev 0.13.0
Did the following steps:
- Registered account on Azure
- Created free IoT hub
- Registered Edge Device
- (Not sure if it was needed) Created VM, installed Azure Runtime, registered it in IoT Hub as device from step 3.
- (Not sure if it was needed) Started registry in docker with command
docker run -d -p 5000:5000 --restart=always --name registry registry:2
- Created Win 64 Azure Module project in Visual Studio with default settings including the repository URL (localhost:5000/moduleName)
- Set up iotedgehubdev with device connection string taken from device from step 3.
- Set the module's project as startup project
- Trying to start debug
Module is built, but debugging does not start.
Output of IoT Hub in Visual Studio:
...ANSWER
Answered 2020-Apr-20 at 14:49I have reinstalled Windows to 10 Pro instead of Home which allowed me to use Docker Desktop instead of legacy Docker Toolbox solution. The issue is now fixed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iotedgehubdev
You can use iotedgehubdev like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page