azure-iot-hub

Stream Analytics: Dynamic output path based on message payload

喜你入骨 提交于 2019-12-20 03:09:11
问题 I am working on an IoT analytics solution which consumes Avro formatted messages fired at an Azure IoT Hub and (hopefully) uses Stream Analytics to store messages in Data Lake and blob storage. A key requirement is the Avro containers must appear exactly the same in storage as they did when presented to the IoT Hub, for the benefit of downstream consumers. I am running into a limitation in Stream Analytics with granular control over individual file creation. When setting up a new output

Azure IoT Hub, EventHub and Functions

假如想象 提交于 2019-12-19 06:18:50
问题 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 ,

Azure IoT Hub, EventHub and Functions

我只是一个虾纸丫 提交于 2019-12-19 06:18:42
问题 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 ,

Azure topic and sending message over MQTT

早过忘川 提交于 2019-12-13 20:17:42
问题 Is it possible to send messages to azure to any custom topic via mqtt. All example that I've found so far work with standard topics 'devices/' + hubName + '/messages/events/' 'devices/' + hubName + '/messages/devicebound/#' Btw, I tried to send/subscribe on the topic/subscription above with MQTT.fx application and never received messages, although the connection was successful. 回答1: Did you have a look on these ?? Azure IoT Hub - Send message (C2D) to one device on 2 topics instead of

Azure IOT Hub Rest API Unauthorized

好久不见. 提交于 2019-12-13 16:54:26
问题 I am trying to use Azure Iot hub REST API to create device by following links Create a new device identity Control access to IoT Hub And my http data is like { "status":"connected", "authentication":{ "symmetricKey":{ "primaryKey":"key in shared access policies", "secondaryKey":"key in shared access policies"} }, "statusReason":"reason", "deviceId":"test123" } My header is like ["Content-Type": "application/json", "Authorization": "SharedAccessSignature sig=(key in shared access policies

Can I send a message to a group of Azure IoT Hub Devices connected via MQTT WebSocket?

十年热恋 提交于 2019-12-13 15:39:19
问题 Goal: Send messages to a group of Azure IoT Hub Devices that are connected via MQTT WebSocket. Initial Idea: Have a group of IoT Hub Devices (group X) subscribe to messages with topic X. Problem: On the Communicate with your IoT hub using the MQTT protocol docs, I don't see a way to subscribe a device to additional topics. I only see examples of a subscription to a device specific endpoint devices/{device_id}/messages/devicebound/# . The page goes on to say "IoT Hub is not a general purpose

How to send data from a device to IOT HUB?

此生再无相见时 提交于 2019-12-13 08:58:26
问题 I am new to Cloud Technology and I want to send the data from Android Device to IoT Hub using Android Studio, I am able to send data using device to IoT Hub by referring to the https://docs.microsoft.com i.e; "Send device-to-cloud messages to IoT Hub" I am able to get the device ID of a particular device from Android Studio and I want it to be displayed in IoT Hub using Android Studio, Kindly help me or refer some site for specific Android Device to IOT Hub Connectivity and Data transfer 回答1:

Azure IoT Hub Event EndPoint Retention Time Not Working?

旧街凉风 提交于 2019-12-13 08:49:54
问题 I set the event retention time to 1 day (the lowest value and think it's default) in my Azure IoT Hub. I can see from usage donut diagram that each day it resets to 0% usage and 0 message. However, when I start my Stream Analytics with custom start time (say 2 mths ago), why would I still be able to pick up older events/messages? Anyone notice this behavior too? Thanks! 来源: https://stackoverflow.com/questions/45590000/azure-iot-hub-event-endpoint-retention-time-not-working

Mosquitto sending messages to Azure IoTHub

末鹿安然 提交于 2019-12-13 06:53:41
问题 Azure has implemented MQTT protocol in its IoTHub so I'm trying to use mosquitto to send messages from my pc. I'm creating azure devices using Device Explorer. In the beginning I generated SAS token from there, but it hasn't the "&skn=" part, so I tried to generate a new SAS using compatible event hub from visual studio. After that i tried to use mosquitto broker to send an MQTT message to my IoTHub using parameters in the CONNECT packet as explained here: https://azure.microsoft.com/en-us

iotedge: How to requeue message that could not be processed

大憨熊 提交于 2019-12-13 04:17:58
问题 There are publisher and consumer custom modules that are running on an Edge IoT device. The publisher module keeps producing messages at constant rate no matter consumer module processes it or not. The consumer module POSTs the message to external service and given that there is no Internet connection, the consumer module would like to requeue the messsage so that is not lost and tried again. I do not prefer to write an infinite loop to keep retrying; also if the module is restarted the