azure-iot-hub

ARM template deploying Diagnostics Settings does not enable Metrics logs

本秂侑毒 提交于 2019-12-13 04:01:54
问题 I'm using Azure RM Template deployments with a Visual Studio 2017 Resource Group project to deploy IoTHub instance with diagnostics settings in Log Analytics. The problem is with deployment of the Diagnostics Settings template and specifically with the AllMetrics category under the metrics property. I'm following the instructions for deploying Diagnostics Settings as Non-Compute resource template The deployment completes successfully, but this one { "type": "providers/diagnosticSettings",

Trouble connecting a Windows 10 IoT Core device to Azure IoT Hub from behind closed firewall

本秂侑毒 提交于 2019-12-13 03:02:50
问题 I have a nice little project here in my basement, consisting of an LED wired into a Raspberry Pi 3. Quite complex, yes, I know. Beyond that, this Raspberry Pi is running Windows 10 IoT Core, and my goal is to make it possible to toggle that LED off and on by means of a Direct Method from the Azure Iot Hub service. Asides from an odd UI issue that I'll be asking about in a separate question, this system is more or less working properly. I've written up a UWP project, and it toggles the LED

Connecting Sparkfun ESP8266 Thing to Azure IoT Hub

不想你离开。 提交于 2019-12-13 02:47:06
问题 I am currently trying to connect my Sparkfun ESP8266 Thing to my Azure IoT Hub. I have successfully set up my hub, and am following this tutorial on how to connect the Thing to my Azure IoT Hub: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-sparkfun-esp8266-thing-dev-get-started Unfortunately I keep getting the error: 'StaticJsonBuffer' was not declared in this scope Arduino: 1.8.5 (Windows 10), Board: "SparkFun ESP8266 Thing, 80 MHz, 512K (no SPIFFS), v2 Lower Memory, Disabled, None

How to use IN clause in iot hub route query

旧城冷巷雨未停 提交于 2019-12-13 02:43:50
问题 The following query is not working in route query: $body.Weather.Temperature in ['30','50'] I checked the documentation and the syntax looks right. 回答1: IN and NIN (not in) operator it used to check the item is or isn't in the array constants like ['wired', 'wifi'] . For your case, you need use Comparison operator: >= and <= like this: $body.Weather.Temperature >= 30 AND $body.Weather.Temperature <= 50 For detailed information you can reference "IoT Hub query language for device twins, jobs,

How do I map IoTHub in Device Provisioning Service enrollment list? - Enrollment status “unassigned”

五迷三道 提交于 2019-12-13 02:16:43
问题 I have a Azure device provisioning service setup entitled "myDPS" and below IoT hubs are linked. IoTHub-Dev-Asia IoTHub-Prod-Europe Currently there are no enrollment list. The below c# code I am using to enroll the device private const string RegistrationId = "TestRegID"; private const string OptionalDeviceId = "Device1"; private const ProvisioningStatus OptionalProvisioningStatus = ProvisioningStatus.Enabled; private const string SampleTpmEndorsementKey = "***"// Key generated using TPM

Is web socket supported in .NET Core ? throwing "System.Net.WebSockets.WebSocketException exception

久未见 提交于 2019-12-13 01:29:30
问题 I have written console application using .NET Core 2.1 . The responsibility of this application is: Connect to the Azure IoT hub and send data. I am still getting below exception System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the

Azure IoT hub basic receiving example, AMQP error

泪湿孤枕 提交于 2019-12-12 18:23:56
问题 I'm delving into azure Iot hubs and connected technologie for work, using the tutorial found here: https://azure.microsoft.com/nl-nl/documentation/articles/iot-hub-csharp-csharp-getstarted/ When running the receiver example (this section of the article: https://azure.microsoft.com/nl-nl/documentation/articles/iot-hub-csharp-csharp-getstarted/#receive-device-to-cloud-messages) I get an error on the line: var d2cPartitions = eventHubClient.GetRuntimeInformation().PartitionIds; I get this error

Sending/Receiving Batch Messages to Azure Protocol Gateway

爷,独闯天下 提交于 2019-12-12 06:59:22
问题 Currently I'm sending Device Messages to an IoTHub on an Azure instance and then all of the messages are sent to an EventHub for Processing. My objective is to use an Azure Protocol Cloud Gateway to act as an intermediary to receive batched messages and then unwrap them before sending them off for processing. By having the messages batched it will allow me to reduce the amount of data being transmitted, cutting down on data usage costs. Once the data is in the cloud it can be un-compressed

How can I receive from Azure IoT Hub messages sent by devices?

[亡魂溺海] 提交于 2019-12-12 04:49:24
问题 I have successfully built azure-iot-sdk-python and I have managed to handle the device side of things: sending messages and reported-properties receiving messages and desired-properties I can also manage devices from the service side: create devices, update devices delete devices manage device twins (setting tags, reading tags, setting desired-properties, getting reported-properties) What I cannot find is how to access the Events ( messages/events ) endpoint using azure-iot-sdk-python and

Azure IoT Hub anti-spoofing

自作多情 提交于 2019-12-12 04:34:55
问题 Just read this thread What I am still asking myself though is whether the IoT Hub does detect that there are multiple active connections that use the same deviceid and credentials? This could be the case if an attacker would steal the device auth key or the SAS token. The anti-spoofing property ConnectionDeviceGenerationId does not seem to be used for this since: generationId - An IoT hub-generated, case-sensitive string up to 128 characters long. This value is used to distinguish devices