In our project we have to get streaming data from API in a specified time interval(ex 1min once).After that i have to convert the data into json format and then i have to push the data into Azure IOT Hub.
For these what type of application i have to develop?
Ex
Console application?(It will crash if millions of input we get)
Wcf
or any other ?
The application should be run as a service ,it should keep on running to fetch the data from device API.
Your question or problem statement does not make sense as related to IoT. IoT is, in lay terms, data accusation from an IoT device. An IoT device can be many things like microcontroller. But the IoT device is responsible for submitting the data to IoT
Hub.
RamThilak
In our project we have to get streaming data from API in a specified time interval(ex 1min once).After that i have to convert the data into json format and then i have to push the data into Azure IOT Hub.
This requires a running application like a console app. Web API handles JSON natively so there is not need to convert to JSON.
RamThilak
Console application?(It will crash if millions of input we get)
I have no idea why you think a console will crash. Again, your problem statement is vague. Should I assume you are using a stand alone computer of data acquisition?
RamThilak
Wcf
or any other ?
WCF is a request - response framework and does not run in a loop like a console app can. You could also look into a Windows service... But as stated above the IoT device is supposed to send data to the hub. Perhaps your IoT device is not network enabled
and that's why you need to use a different system to query the device and send data to the IoT hub?
RamThilak
The application should be run as a service ,it should keep on running to fetch the data from device API.
Then do so... What is stopping you?
Explain at a higher level what you are trying to accomplish and include the hardware you are using. Otherwise ask IoT support for assistance as they can help you better than we can on a ASP support forum.
The best I can guess is you need help converting different file formats to JSON using .NET. Without an example of file format, I have no way to provide a solution. All I can suggest is doing a Google search as converting to JSON format is a very common
task.
Member
146 Points
303 Posts
What type of application i have to make for getting streaming data in a specified time interval?
Aug 19, 2017 10:14 AM|RamThilak|LINK
Hi,
In our project we have to get streaming data from API in a specified time interval(ex 1min once).After that i have to convert the data into json format and then i have to push the data into Azure IOT Hub.
For these what type of application i have to develop?
Ex
Console application?(It will crash if millions of input we get)
Wcf
or any other ?
The application should be run as a service ,it should keep on running to fetch the data from device API.
All-Star
53001 Points
23587 Posts
Re: What type of application i have to make for getting streaming data in a specified time interv...
Aug 19, 2017 10:38 AM|mgebhard|LINK
Your question or problem statement does not make sense as related to IoT. IoT is, in lay terms, data accusation from an IoT device. An IoT device can be many things like microcontroller. But the IoT device is responsible for submitting the data to IoT Hub.
This requires a running application like a console app. Web API handles JSON natively so there is not need to convert to JSON.
I have no idea why you think a console will crash. Again, your problem statement is vague. Should I assume you are using a stand alone computer of data acquisition?
WCF is a request - response framework and does not run in a loop like a console app can. You could also look into a Windows service... But as stated above the IoT device is supposed to send data to the hub. Perhaps your IoT device is not network enabled and that's why you need to use a different system to query the device and send data to the IoT hub?
Then do so... What is stopping you?
Explain at a higher level what you are trying to accomplish and include the hardware you are using. Otherwise ask IoT support for assistance as they can help you better than we can on a ASP support forum.
Member
146 Points
303 Posts
Re: What type of application i have to make for getting streaming data in a specified time interv...
Aug 19, 2017 11:54 AM|RamThilak|LINK
Thanks for the reply.
yes.
The data(Event Producers) may be
1.Applications
2.Sensors API
3.Devices
If device means it can directly send the data to IOT Hub.
But Application or Sensors API means
I can expect millions of input at the time.My application has to handle the huge inputs.
The input format may vary like
1.XML
2.Text File
3.Csv File
If the input is any of the above format i have to convert the input format to json and send it to IOT Hub.
How can i get the data?
1.Console Application(Task Scheduler)
or
2.Windows Service
All-Star
53001 Points
23587 Posts
Re: What type of application i have to make for getting streaming data in a specified time interv...
Aug 19, 2017 01:59 PM|mgebhard|LINK
You might as well as "How long is the string?".
The best I can guess is you need help converting different file formats to JSON using .NET. Without an example of file format, I have no way to provide a solution. All I can suggest is doing a Google search as converting to JSON format is a very common task.