IOT Central Connected Field Service - Send Command - azure

How do you send a command from Field Services to IOT central?
You can create a device, and there is the ability to define a command - but this doesn't connect to IOT central?
I would think you would use flow? But this doesn't use this UI at all?

If you are using a legacy IoT Central app (i.e. not a preview one), you can use this template in Power Automate (previously Flow). In case you haven't done so, this is an excellent tutorial to get started with IoT Central and CFS.
In case you are using the preview features of central, you can use an HTTP request instead of the IoT Central block in Power Automate to use the REST API.

Related

Azure Iot Hub Direct Method Call from front end Node.js Website

I am doing my final year project Using Azure Cloud. I have connected my raspberry pi where I have deployed my python code to trigger the device connected to its GPIO pins. These pins are triggered by "Azure-iot-Hub direct method call". How can I integrate this thing in website? I want to create a button on website and every time when I will press this button the direct method should be called. Is there any way to do this?
Unless creating website is in the scope of project, the easiest option is to use IoT Central, create a device template with associated telemetry, properties and commands.
If creating a custom website, wire the direct method IoT Hub Rest API to your application web page. https://learn.microsoft.com/en-us/rest/api/iothub/service/devices/invoke-method
or use the nodejs service client https://github.com/Azure/azure-iot-sdk-node/blob/main/service/samples/javascript/invoke_command.js
Depending on what web stack you are using, the appropriate SDK can be used (nodejs, python, c#, c or java)

Azure IoT Hub Telemetry Data to Mobile Application

I'm trying to get data from arduino yun to azure iot hub and read data from mobile app. So I created IoT Hub on Azure and able to read telemetry data with nodejs on my computer. It's working good. But trying to create react app for reading data. What should I do for best way to handle this. I must use react native for mobile application part.
Project info:
Load cell reading data, if change then it will provide info to iot hub as telemetry. Then it should inform mobile application created with react native for users.
For testing using button press right now. Main code for load cell will deploy in the future. Sending data from arduino yun to local computer and pushing with nodejs application to Azure.
I manage to solve issue with some escape resolutions:
Used a localhost to get messages from yun and transfer them to iot hub with nodejs backend and libraries.
Used a webapp for visualize. Also now I am able to make a get request from anywhere on my mobile app load. Integrated that in webapp code with endpoint.
Also used websocket to get information from webapp to mobile device.
Created custom png file to show different stats and pressed values to text.
I wish that I can send telemetry from device directly to azure. But couldn't manage to solve that.

Connectivity via a Field Gateway with IoT Central

I am building an IoT Solution based on non programmable devices. I can just configure a host where they can connect to send data and receive commands.
Now, supposed that I know the messaging protocol of the device, I would like to build a field gateway to apply protocol and identity translation with the IoT Hub behind IoT Central.
Is that doable ? If yes, may you drive me to the solution please ?
AFAIk, this scenario is not implemented yet. Please provide your feedback on the UserVoice.
All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Reference: How to create IoT edge device on IoT central?

Is the Azure notification hub available to use?

We are developing a website and would like to use the Azure portal notification module. Does anyone know what this is built with and if we could implement this on our site rather than building from scratch? We have some some processes that take some time so want users to be able to go off and do other things and come back when it's completed. We host our product on Azure so if this is using an Azure feature then we can use this also.
Azure Notification Hubs provide an easy-to-use and scaled-out push engine that allows you to send notifications to any platform (iOS, Android, Windows, Kindle, Baidu, etc.) from any backend (cloud or on-premises).
Push notifications are delivered through platform-specific infrastructures called Platform Notification Systems (PNSes). They offer barebone push functionalities to deliver a message to a device with a provided handle, and have no common interface. To send a notification to all customers across the Android, iOS, and Windows versions of an app, the developer must work with Apple Push Notification Service(APNS), Firebase Cloud Messaging(FCM), and Windows Notification Service(WNS) separately.
Kindly take a look at the documents to know how it works, scenarios you could leverage Azure Notification Hubs for and how to integrate with your app.
https://learn.microsoft.com/azure/notification-hubs/notification-hubs-push-notification-overview
https://learn.microsoft.com/azure/notification-hubs/notification-hubs-app-service
Do provide more details on your requirement for better assistance.
The question is tagged for Azure Notification Hubs, but the screen shot you showing is for the notification section of the Azure Portal UI. I'm not aware that Microsoft makes the component available for third-party use.
Can you please remove the Notification Hubs tag from this issue as it's not related.

Sample C code for Azure IOT Central device

I'm trying to develop a device suing Azure SDK C. I'm able to send telemetry messages (using the "iothub_ll_telemetry_sample" sample) but I'm NOT able to receive settings (I define a setting, FanSpeed, but when I change the value on IOT Central then I don't receive any callbacks).
There is it a working sample? possibly for Windows.
Thanks
You can find the Azure iot central firmware examples on github. I would suggest you to look at AZ3166 example for azure iot central
For Azure IOT Central I have found the most useful examples to be located on the Azure IOT Central firmware github:
https://github.com/Azure/iot-central-firmware
The repository has been reorganized a bit since the earlier answer from Ozzz. You can find a C code example in the MXChip example.

Resources