Sample C code for Azure IOT Central device - azure-iot-central

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.

Related

IOT Central Connected Field Service - Send Command

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.

Raspberry Pi Web Simulator- Azure IoT Hub- blank chart

I'm using Raspberry Pi simulator with IoT hub azure, I followed the steps correctly but when I checked the chart, I got a blank chart, even I set the connection string and Device Id and consumer group on the web settings.
PS: I can see the messages in Raspberry simulator and Azure IoT tools with visual studio code.
any advice?
thanks in advance
It looks like your web app and IoT Hub is not connected. I would suggest you, recheck your connection string generated along with consumer group and make sure you set these values correctly.
I followed the official documentation to Visualize real-time sensor data from your Azure IoT hub in a web application and able to see the data without any issues.
Here is my output:
Please follow the documentation and let me know if you need further help.

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?

What is the technology behind Azure Event Grid?

What is the underlying technology used to build Azure Event Grid and where can I find its source code? I searched the Azure Github account and could only find an Event Grid emulator. Does AEG build on a different project, similar to how Azure WebJobs are used as the foundation for other offerings?
It is built on Service Fabric. If you are looking for SDK samples, you can start here: https://github.com/Azure-Samples
The code for the actual service is not available.

how to push data from azure iot to unity 3D

I am working on unity and I need a small help. I am trying to push azure iot data to unity 3D. Can anyone tell how can it be done? I have searched on the internet and has not found a reliable information. Please help me with this.
If you build the unity 3D project for Universal Windows Platform as C# project,you can install Microsoft.Azure.Devices.Client package, and then use DeviceClient to receive Cloud-to-Device message.
Of cause, you can use other azure iot hub SDKs if you did not use C#. Currently, Auzre IoT Hub SDKs support .Net, C, Java, Node.js, Python and iOS.
In addition, as Roman Kiss mentioned in above comment, Azure Function is another option.You can refer to this link.

Resources