Querying device's telemetry/status/event from Azure IoT Central - azure-iot-sdk

I've created an Azure IoT Central solution, where I successfully registered an IoT device. I'm able to save telemetry/status/event data for the device, however I could not find an option to query the existing data using .NET code. For example I would like to query the telemetry data for the last month using C#.
Is it not supported by the SDK?

In order to query the telemetry data for the last month you will need to export that to a Blob Storage or routing it to another DB (like Cosmos DB). The supported way to export your data in Azure IoT Central is described here.
You can then leverage REST API on your c# code to extract the data from your devices.
Read Avro files by using C#
Azure Storage samples using .NET
Azure Cosmos DB: .NET examples for the SQL API

Related

How to traffic data between Google Cloud SQL and Flutter?

Cloud SQL documentation about connecting with external apps didn't helped me much. Isn't there some library to handle data traffic like Firebase's Cloud Firestore and Realtime Database offer?
Either use cloud functions to provide an API for Flutter and access to the DB
or run your custom server in the Google cloud that does that.
SQL databases should never be accessed over the internet directly and instead hidden behind a web server that only exposes a limited or specialized API.

iOS (Swift) project needs to read an Azure SQL database

I am creating an iOS project that needs to read a SQL database in Azure. I have the database Server location, port, username, and password. I don't need to write to the database, just read it. I am more familiar with Firebase or Parse and have never used Azure. How do I even go about starting this? I tried the sample project that Azure makes for you but I don't have any tables? Do I need this? Any help would be welcome.
Azure Mobile App Service can connect with your existing SQL database
this thread explains the process where you use the existing SQL database. With this option Azure manages most of the inner workings for you.
If you want to build the Rest API from "scratch" using your existing SQL database You have some more options:
Azure API Management allows you to publish API's securely and at scale, A server less Azure Function like the example in this article Rest API with Azure Functions and Azure SQL Database or build a rest API using an Azure Logic App which doesn't require you to write code. You could also use Nodejs or many other tools you just need to evaluate what would work best for your use case.

how to store data on Firebase - Delphi XE 10

What is the best way to connect to Google´s Firebase DBaaS from Embarcadero Delphi XE 10 ?
I am not sure how to do it from AnyDAC.
Or if exists a component out there (i coundnt find one on search)
Any help?
thank you
Firebase was acquired by Google and now makes available many tools and features (Cloud Messaging, Authentication, Realtime Database, Storage, Hosting etc...)
If you are looking for a service that store and sync app data in realtime, the Realtime Database it's for you. Realtime Database: "A cloud-hosted NoSQL database. Data is stored as JSON, synced across connected devices in milliseconds, and available when your app goes offline." . Firebase provides SDK library for Android, iOS and Web (Javascript). In addition makes available a REST API interface and, as Robert Love said in previous post, Firebase4Delphi (I wrote it) library provides access to the REST API in Delphi. Here there is an example of how to use library.
In the meantime a new open source library is available on GitHub for Firebase, Firestore, Firebase Storage and Firebase Functions:
Get more information on https://github.com/SchneiderInfosystems/FB4D
There is an open source project called Firebase4Delphi. It provides access to the REST API in Delphi.

Can I use Sql Server Database from iOS?

There are a lot of ways to have a database on server ( I can use my own server or I can use MS Azure (for Azure I found REST API Description https://msdn.microsoft.com/en-us/library/azure/gg715283.aspx , but I didn't find a way to add some rows to a table or to get information from the table)), but I want to edit the database and get proper rows from the server database from iOS code without having server API. There are a lot of ready solutions such as Backendless.com , but they are not stable.
So is there any way to connect to the remote SQL server database on the remove server or to MS Azure database and to edit rows and fetch data?
May there are some framework for iOS to do than? (for example in .Net there are Linq framework and Entity Framework).
In your question, you linked to a management API for SQL Database service - this has nothing to do with data manipulation; it's strictly a management API for dealing with servers and databases.
If you want to direct-connect from an IOS app to SQL Database Service (or SQL Server in a VM), you'd need to find a client library for IOS (and recommendations of such a library are not in scope for StackOverflow). There is no native SQL Server client library specifically provided through the Azure SDKs / APIs.
Outside of a native client library, there is Azure Mobile Services, which provides an API stack specifically designed around use by mobile apps (whether IOS, Android, Windows Phone, or even JavaScript). The API stack provided here, by default, gives CRUD operations for SQL Database tables. Additionally, it supports adding custom API calls, where you have complete control of your API calls.
Any other API stack would require you to choose the stack and run it yourself (whether in a Linux or Windows VM, Cloud Service, or Web App - there's no single right way to do this).
Documentation for Azure Mobile Apps (and related API feature, such as monitoring) is here.
Since you are developing in Azure consider automatic REST API from SlashDB, which is available from their Marketplace.
https://azure.microsoft.com/en-us/marketplace/partners/vte/slashdb-slashdb-azure/
SlashDB reflects the entire database as URL-linked structure so a lot of queries need not even be written. It supports SELECT, INSERT and UPDATE. In addition to that it allows for defining an API end-point to call a stored procedure or return results of a SQL query.
Disclosure: I am the founder and CEO of the company behind SlashDB, but you don't have to take my word it - just try it.

Querying Azure Table Storage from Xamarin for iOS

I'm creating an iOS app using Xamarin Studios for iOS. I can query data from my Azure Table Storage acct fine from a .NET Web application, but I can't find a good example of how to do the same from Xamarin for iOS. I do not want to use AZURE SQL DB. All the examples online are using Mobiles Services and writing to Azure SQL I only want to query a few values from Azure Table Storage. Is there any code samples of how to Read/Write to this?
How about this sample from the head of AzureCAT? http://code.msdn.microsoft.com/wpapps/Use-Table-Storage-in-0b6bcbc7

Resources