azure-iot-hub

How can computation on an IotEdge module be triggered from within a .net core app?

最后都变了- 提交于 2019-12-11 07:57:59
问题 I need to trigger some computation on an IotEdge module from an Administration-Backend Application. On https://docs.microsoft.com/en-us/azure/iot-edge/module-development it says Currently, a module cannot receive cloud-to-device messages So it seems that calling direct methods seems to be the way to go. How can I implement a direct method and trigger it from within a .NET Core App? 回答1: In Main or Init Method of your IotEdge module you have to create a ModuleClient and connect it to a

Azure Service Bus: No messages on queue, only requests

折月煮酒 提交于 2019-12-11 06:02:30
问题 I'm trying to route messages from an IoT hub to a function app using a service bus queue as an Iot hub endpoint. The messages I send to the IoT hub are registered in the IoT hub, but won't be routed to the service bus queue. When I monitor the service bus queue, I only see successful requests. I implemented two routing rules with the following criteria: $._eventtype="meeting" and $body._eventtype="meeting" I tested the second one with the example provided by Azure and it matched. Neither of

Raspberry Pi 3 running Windows 10 Core with custom program shows crossed-out x

梦想的初衷 提交于 2019-12-11 04:46:45
问题 I have a very simple project, in which I aim to be able to toggle an LED by means of a direct method call (through Azure IoT hub) on my Raspberry Pi 3, running Windows 10 IoT Core. In it's current state, the program I wrote shows only a white box with an x in it, not unlike a mail envelope, and the back end light-controlling code does not respond to direct method calls. However, when connected to a Visual Studio 2017 remote debugger, the code behind the UI seems to run perfectly fine (or so I

Create IOT Device Edge Python Sdk

梦想与她 提交于 2019-12-11 03:04:49
问题 How can create IOT Edge Device? Actually i use azure sdk service iot and created normal device, but i can't figure out how create iot edge device with azure service client sdk. 回答1: It would be similar to how you create a normal device, only difference is that you need to add a capabilities property: { deviceId: "EdgeDevice1", capabilities: { iotEdge: true } } You could also refer to the code: https://github.com/Microsoft/vscode-azure-iot-toolkit/blob/4bfff9cb24cf5f7b42728640c4ed30bf2cda4253

Azure IoT Hub : retrieving messages via browser-side javascript API

心已入冬 提交于 2019-12-10 10:09:15
问题 Do you know if it is possible to retrieve device-to-cloud messages, with Microsoft Azure and IoT Hub, with a javascript client running in the browser (i.e. no node js) ? It is my understanding that this is not currently possible, but I'd like to make sure (i.e. all current APIs can only work server side). Edit1 : REST APIs might be the obvious choice to attempt to do this; However, having tried these APIs via manual request, it seems the response does not provide the allow-access-control

Azure IoT Hub - Save telemetry best practice

≡放荡痞女 提交于 2019-12-10 03:05:42
问题 I am working on a IoT solution that will save weather data. I have googled for some days now on how to set up the backend. I am going to use Azure IoT Hub for handling communication, but the next step is the problem. I want to store the telemetry to a database. This is where I get confused. Some examples says that I should use Azure BLOB storage or Azure Table storage or Azure SQL. After some years of data collection I want to start creating reports of the data. So the storage needs to be

Connect Azure Function to Iot Hub cloud to device feedback endpoint

最后都变了- 提交于 2019-12-08 12:56:30
问题 Is it possible to somehow connect Azure Function to Iot Hub cloud to device feedback endpoint? It looks like this endpoint isn't compatible with Azure Event Hubs. Write custom event trigger? I use C# Azure Function. 回答1: Yes, you can create a custom function for IoT Hub. This function will be run whenever an IoT Hub delivers a new message for Event Hub compatible endpoints. You can follow below steps: Create a custom function with IoT Hub(Event Hub) template. Create a json file named project

Trouble with Azure IoT C# SDK Certificate

此生再无相见时 提交于 2019-12-08 09:54:13
问题 I am receiving this error when I try to connect to Azure IoT Hub. Microsoft.Azure.Devices.Client.Exceptions.UnauthorizedException. I could not post the error screen shots here, since I do not have enough reputation points. So instead I wrote the whole details at http://azuregeon.blogspot.in/2017/10/azure-iot-c-certificate-connectivity.html if anyone gets a chance please have a look. 回答1: You should set the Common Name as "_demoDevice" when authenticating you x.509 device. The Common Name is

SMS Messaging from Azure IOT Hub

纵然是瞬间 提交于 2019-12-08 07:29:03
问题 I am currently building a project using an Adruino Uno to collect weather data such as temperature and humidity, this data is then passed onto the Azure IOT hub, the messages are then processed and stored to an SQL database again in Azure. Finally the data is then displayed on a website which users can sign up to and view the weather data I have collected. I am trying to implement SMS notifications into the system so that if the temperature is to hit a certain threshold say 0 degrees Celsius,

Azure Iot Hub FeedbackReceiver ReceiveAsync is very slow (15 seconds) high latency

六月ゝ 毕业季﹏ 提交于 2019-12-06 08:18:34
问题 if I send a message (Cloud 2 Device) via the IoT-Hub: var serviceMessage= new Message(Encoding.ASCII.GetBytes("Hello Device")); serviceMessage.Ack = DeliveryAcknowledgement.Full; commandMessage.MessageId = Guid.NewGuid().ToString(); await serviceClient.SendAsync("myDeviceID", serviceMessage); //Send message here And try to receive the acknoledgement from the client: bool feedbackReceived = false; while(!feedbackReceived){ FeedbackReceiver<FeedbackBatch> feedbackReceiver = serviceClient