Forum Discussion
Ramesh Krishnamurthy
Jun 02, 2017Copper Contributor
Connect your simulated device to your IoT hub using .NET
I went through the Microsoft tutorial "Getting Started with Azure IoT Hub" link - https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-csharp-csharp-getstarted At runtime it gives the error - ...
Jun 05, 2017
Hi,
I am giving you quick suggession till i check this. Please share a screenshot of your code.
My Suggession is use Stream Analytics without code. Please follow the quick steps here you will be able to search and find tutorials in web.
01. Create a Stream Analytics
02. Select your IoT Hub as the Input
03. You can choose blob / sql or PowerBi,
04, Write a function query , as what you want to output as a example you can say SELECT * means all the inputs comming from IoT Hub to your OutPut.
05. By this way you can avoid unnecessary data comming through your Hub.
This is a qucik reply to give you an idea,
Best Regards,
Shameera
Ramesh Krishnamurthy
Jun 05, 2017Copper Contributor
Hi,
PFA the code for simulated device.
- Jun 05, 2017Hi,
Meantime get this code from github, URL : https://github.com/prajapriya/ConnectAzureIoTHub
. It has all three programs which i wrote.
Double confirm the name of your registered device and the name in your telemetry (Data Sending Program) are same.
Best Regards,
Shameera- Ramesh KrishnamurthyJun 06, 2017Copper ContributorHi,
Sender and receiver are working fine but the only problem is the storage of data.
Thank you