Forum Widgets
Latest Discussions
IoT Hub Device twin returning connectionState = Disconnected, when it's actually connected
I have a Monitoring web job that querys my iot devices for any that have a connection state = disconnected, and then sends an email out to the user of that device to let them know it has a connection state issue. I'm seeing a problem where one device will look like it is down about once every hour (or 1 hour and 5 minutes). But the device is not down and there is no intermittent connection issue. I currently have 3 devices, all connected through different internet ISPs. One system started having this issue every so often, then another did, and now the 3rd one is having this issue. My web job code is pretty simple and runs every 5 minutes to see if there are any devices that are down. Here's my code public static async Task CheckDeviceAvailability([TimerTrigger("00:05:00", RunOnStartup = true)] TimerInfo timer) { string connectionString = CloudConfigurationManager.GetSetting("IotHubConnectionString"); try { RegistryManager manager = RegistryManager.CreateFromConnectionString(connectionString); IQuery query = manager.CreateQuery("SELECT * FROM devices where ConnectionState = 'Disconnected'", 10); while (query.HasMoreResults) { var page = await query.GetNextAsTwinAsync(); foreach (Twin twin in page) { await SendNotification(twin.DeviceId); } } } catch (Exception exc) { Console.WriteLine(exc.Message); } } I've just added a check (if (twin.ConnectionState == DeviceConnectionState.Disconnected)) above the Await SendNotification line in the above code just to see if this helps out, but it seems like the query shouldn't be returning any devices that are connected.Solvedsmart_doorDec 26, 2018Brass Contributor27KViews0likes19CommentsHelp understanding IoTHubDeviceClient in distributed modules
Hi, I have a hard time wrapping my head around how to work with custom developed modules and connection strings. To make things easy, I've taken one of the Python scripts from the SDK examples on GitHub (the one that sends simulated temperature and humidity values). The example mentioned uses IoTHubDeviceClient.create_from_connection_string(CONNECTION_STRING) and the send_message(message) to deliver it's values. This works fine and the data keeps coming in. However when I build a module from this and don't want to include a static connection string I can't seem to understand how this is done. Surely there's a corresponding way to get this dynamically populated or handled by the edge device. I just can't find any info on it. My guess is that you are suppose to use IoTHubModuleClient.create_from_edge_environment() instead and use that but I can't seem to get that to work. Any input to what achieves this? The aim is to be able to push the same module to multiple edge devices connected to different IoT Hubs and to do this I don't want to include a connection string.petersavermanSep 07, 2020Copper Contributor1.9KViews0likes8CommentsIssue with EFLOW LTS (AzureIoTEdge_LTS_1.1.2203.14042.msi)
There seems to be an issue with this particular version of EFLOW, where the license files are not installed. When I tried call Deploy-EFLOW, I'm getting the following error. PS C:\EFLOW> Deploy-Eflow -cpuCount 2 -memoryInMB 4096 -vmDiskSize 21 -vswitchName "Internal Switch" -vswitchType Internal [04/27/2022 09:36:35] Deploying Azure IoT Edge for Linux on Windows - WARNING: This is a Public Preview version of Azure IoT Edge for Linux on Windows Continuous Release, not intended for production use. - WARNING: A clean install may be required for production use once the final General Availability (GA) release is available. For more information, check https://aka.ms/AzEFLOW-CR. - Configuration does not exist. Creating a default configuration... [04/27/2022 09:36:35] Creating configuration - Configuration created successfully [04/27/2022 09:36:36] Exception caught!!! - Could not find a part of the path 'C:\Program Files\Azure IoT Edge\LICENSE\Azure IoT Edge for Linux on Windows - Standalone (free) Use Terms (11.1.21).rtf'. (L402) [04/27/2022 09:36:36] In order to attempt another deployment, please uninstall the Azure IoT Edge msi and start from fresh Could not find a part of the path 'C:\Program Files\Azure IoT Edge\LICENSE\Azure IoT Edge for Linux on Windows - Standalone (free) Use Terms (11.1.21).rtf'. When I look in C:\Program Files\Azure IoT Edge folder, I don't see a LICENSE folder. PS C:\EFLOW> dir "C:\Program Files\Azure IoT Edge" Directory: C:\Program Files\Azure IoT Edge Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 4/27/2022 9:36 AM dda-drivers d----- 4/27/2022 9:36 AM mariner-files -a---- 4/15/2022 4:27 AM 560100153 AzureIoTEdgeForLinux-v1.cab -a---- 4/15/2022 4:26 AM 19215 EFLOWProvider.man -a---- 4/15/2022 4:32 AM 314776 EFLOWProxy.exe -a---- 4/15/2022 4:28 AM 15086 Install-Eflow.ps1 -a---- 4/15/2022 4:25 AM 0 mariner-update.swu -a---- 4/15/2022 4:30 AM 18542488 nodectl.exe -a---- 4/15/2022 4:28 AM 20629 Uninstall-Eflow.ps1 -a---- 4/15/2022 4:28 AM 28198 Update-Script.ps1 -a---- 4/15/2022 4:30 AM 28323224 wssdagent.exeSolvedPeterLeeApr 27, 2022Copper Contributor2KViews0likes7CommentsIoT Solutions, a proposal to help creating PaaS solutions faster
Hi all, You can find here a proposal to try to go faster and better when it comes to building IoT solutions (PaaS). https://github.com/jonmikeli/iot-accelerator The main purpose is to help to focus the effort on creating value and maximize the use of the potential/capabilities/features provided by Azure IoT. The repository contains a set of scripts (bash, ARM) and source code (C# - Azure Function and REST API) that build part of the logic modules of an IoT solution.jonmikeliMay 14, 2020Iron Contributor1.5KViews1like6CommentsTime Series Insights (Preview): errors modelled as categorical variables slow and max. 100.
A customer has a device which can generate errors. The IoT data is processed by Time Series Insights (Preview) in Azure. I modeled the errors as an categorical variable. But I ran into some problems: - the device has 370+ different errors and TSI has a maximum of 100 categories. - the TSI Explorer becomes at times very slow - the TSI Explorer does not show the original (error) value. What is the best way to model a error value with more than 100 different labels in TSI? Edit: TSI Explorer was very slow in Chrome, but it's ok in Microsoft Edge.mitchelhJul 03, 2020Copper Contributor1.3KViews1like5CommentsPreloading IoT Edge containers into a device
Hello. I wonder if it's possible to copy the docker containers to a new device which has a matching deployment setup in IoT Edge hub, so the device can be shipped without needing to download everything. Is this possible without tainting the IoT edge footprint so it doesn't remove containers etc? For example if there's a crucial container that needs to be running as fast as you turn on the device, this is very useful.emilmFeb 19, 2020Copper Contributor1.3KViews0likes5CommentsAzure IoT Hub Device Streaming with UWP
Azure IoT Hub Device Streaming is a cool technology for point to point communications between a user app and an IoT device using an Azure IoT Hub has the go-between. The Azure IOT SDK DS samples are built with .Net Core. I've been examining in detail what it takes to be able to use UWP at either end of the pipeline. Whilst .NetCore can use AMPQ or MQTT as the device side transport, it was found that you can only use MQTT with UWP at the device end. I have blogged a detail discussion of this, Azure IoT Hub Device Streaming with UWP. This discussion is based upon a comprehensive GitHub suite of projects, djaus2/AziothubDeviceStreaming.SolvedDavid JonesJun 01, 2019Brass Contributor1.9KViews2likes4CommentsAZURE IOT HUB DEPRECATION
Hi, I have a query on Azure iot Hub, Will Azure iot Hub get deprecated sooner? Because i could see the some post related to depreciation of Azure iot Hub. 1) https://azure.microsoft.com/en-us/updates/azure-iot-hub-on-azure-stack-hub-preview-will-be-retired-and-it-will-not-go-to-ga/?cdn=disable#:~:text=On%2030%20September%202022%2C%20the,to%20Azure%20IoT%20Edge%20gateway. 2) https://learn.microsoft.com/en-us/dotnet/api/overview/azure/iot/management/management-iothub%28deprecated%29?view=azure-dotnet Due these post, it makes to say this question.SolvedPavithvishnuAug 30, 2023Copper Contributor4.6KViews0likes4CommentsSmart heating
Hello, Sorry for posting here, I have a new account and I can't post a new topic yet. I have a question, and need your opinion or solution if you have one. I work in a company that is trying to make smart heating systems in building using IoT and more precisely Microsoft Azure. I followed the tutorials that Microsoft Azure offers, until it came to PowerBi... And i found two elements that made me lose alot of time.. First element: Sending data directly from Azure Storage Blob doesn't work on PowerBI, i had to recreate an other query to make it work but it took lots of time to find the solution on the blog. Second element: I'm surprised that there is only commercial units for data in PowerBI. Isn't it supposed to be monitoring devices in a building as well? Well i hope that i didn't annoy you with my questions but you seem more experienced that me, so i decided to ask while waiting to be able to post my own topics. PS: Azure IoT central is very limited and not smart at all... i had to use something else like PowerBI.Sed_ki92Mar 13, 2019Copper Contributor1.3KViews0likes4CommentsWhy I don't see "properties"-column on my Azure-IoT-Central Device?
I just started learning Azure-IoT-Central yesterday. I tried the demo "dtmi:com:example:Thermostat;1" It has a writable property. I can see: "About, Overview, Command..." But why I don't see the "properties"-column? (Please see screenshot) Any hint? Thanks! JadvSolvedJerry1410Apr 05, 2022Copper Contributor1.1KViews0likes4Comments
Resources
Tags
- Azure Certified Device Program27 Topics
- iot19 Topics
- Azure IoT13 Topics
- Makers11 Topics
- azure8 Topics
- IoT Hub7 Topics
- IoT Edge6 Topics
- Azure Digital Twins5 Topics
- Robotics4 Topics
- Azure IoT Hub4 Topics