azure-iot-hub

Connect to IoT Hub without using the Azure Client SDK

半世苍凉 提交于 2019-12-01 09:33:29
I want to connect to the Azure Iot Hub not using the Client SDK. On https://azure.microsoft.com/nb-no/blog/upload-files-from-devices-with-azure-iot-hub/ there are documentation on how to do this by 1) get the SAS URI for storage 2) to notify the IoT hub of a completed upload But before this can be done you need to connect to the IoT Hub using the DeviceConnectionString. Does anyone have an example / hints of how this and uploading a file can be done? If you want to go without the SDKs (which I am curious to know why), you can find all the REST API reference docs here . The specifics about the

Act for other devices on Azure IoT Hub

不羁岁月 提交于 2019-12-01 05:29:07
问题 In our scenario, we have a bunch of devices that communicate locally with a gateway. The gateway is responsible to aggregate events from the devices and send it to the cloud. It should also receive device configuration changes from the the cloud and transport it to the specific device. Based on my reading I would think that this is actually a typical IoT Hub scenario. And we would very much like to use the device management, messaging and maybe even twins that IoT Hub provides. However, the

Azure IoT Hub, EventHub and Functions

橙三吉。 提交于 2019-12-01 04:15:31
I have an IoTHub with a route that points to an EventHub which triggers a Functions. I'm having problem getting the DeviceId and other IoT Hub properties from the event object without adding those explicitly to the payload. If I set the input type to a string (or a custom type): public static void Run(string iotMessage, TraceWriter log) { log.Info($"C# Event Hub trigger function processed a message: {iotMessage}"); } I only get the payload without any other IoT Hub properties like DeviceId , CorrelationId or MessageId . I tried to set the type to EventData instead: public static void Run

Azure IoT Hub AMQP Communication Multiplexing

百般思念 提交于 2019-11-29 21:43:03
问题 In some of the Microsoft documentation for working with Azure IoT hubs, it mentions that it is possible to multiplex the communication of multiple devices under a single TLS connection (using the AMQP protocol) for scenarios where multiple simple devices talk to a local hub device that is powerful enough to communicate with the IoT Hub. Are there any examples of how one would implement this multiplexing? The DeviceClient library does not appear to support this (although I could be wrong).

Simulate 10,000 Azure IoT Hub Device connections from Azure Service Fabric cluster

◇◆丶佛笑我妖孽 提交于 2019-11-29 13:03:13
We are developing a .Net Core service that shall be hosted in Azure Service Fabric. This SF Service needs to interact with 10,000 devices registered in Azure IoT Hub via it's AMQP 1.0 SSL TLS endpoints. Each IoT Hub devices has it's own security tokens and connection string provided by the IoT Hub service. For our scenario we need to listen to all cloud-to-devices messages coming from the 10,000 IoT Hub device instances and "route" these to a central Service Bus topic to which the actual "gateways" in the field listen to. So basically we want to forward messages from 10,000 Service Bus Queues

How to test Messages arriving in Azure IoTHub

好久不见. 提交于 2019-11-29 07:44:52
问题 I have an event generator connected and publishing messages into an IoT hub. How do I check what message have arrived? I'd be interested in different ways to determine (programmatically, dashboard, etc) 回答1: There is a cross-platform Azure IoT Toolkit extension for Visual Studio Code to make you able to monitor the messages sent to Azure IoT Hub. You could check out the Wiki Page to see the full features and tutorials. 回答2: If you want to simply test the messages, you can download the Device

Azure Iot sdk - upload blob metadata?

孤街浪徒 提交于 2019-11-28 12:17:44
问题 It's great that Azure Iot hub and sdk supports blob uploading. However it seems blob metadata uploading is not there. Any plan to add the feature? It's a very handy feature for small projects. Or it's already supported but I missed something? 回答1: That's correct. There is no method (support) for the blob metadata uploading in the Azure IoT Device Client SDK . However, the following workaround can be used for this feature. It's based on the uploading files with IoT Hub using the REST API calls

Simulate 10,000 Azure IoT Hub Device connections from Azure Service Fabric cluster

自作多情 提交于 2019-11-28 06:30:42
问题 We are developing a .Net Core service that shall be hosted in Azure Service Fabric. This SF Service needs to interact with 10,000 devices registered in Azure IoT Hub via it's AMQP 1.0 SSL TLS endpoints. Each IoT Hub devices has it's own security tokens and connection string provided by the IoT Hub service. For our scenario we need to listen to all cloud-to-devices messages coming from the 10,000 IoT Hub device instances and "route" these to a central Service Bus topic to which the actual

Python MQTT connection to Azure Iot Hub

假如想象 提交于 2019-11-28 06:19:32
问题 I want to connect to Azure Iot Hub, with Python MQTT. An username and SAS token is required by Iot Hub. This is my code: import paho.mqtt.client as mqtt def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) client.subscribe("$SYS/#") def on_message(client, userdata, msg): print(msg.topic+" "+str(msg.payload)) client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message client.username_pw_set("myHub.azure-devices.net/device1",