Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
I have a Use-Case where I want to be able to initiaize every XDK Sensor on its own.
So the Idea is to have a Database with a configuration of what of the sensors should be active or not and upon turning on the XDK it should connect to the DB and look for itself MAC adress and get the configuration.
That way I could configure the XDK in any way I would like to without having it to physically connect to a XDK-Workbench and would be able to just do it virtually. Buy just turning the XDK off and on again to fetch the new configuration from the Databse.
Is it possible to somehow implement this functionality with the XDK, even if it means to write native C-Code?
PS: There would be a standard Software flashed on the XDK to be able to connect to the Wifi.
1. It is possible to connect XDK device with http servers via WiFi. HttpExampleClient application can be used.
2. By using REST APIs like GET, POST we can get data from http servers. Config files can be loaded in these servers in any format like json, xml.. We support json , xml parsers as well.
3. So you can refer HttpExampleClient, SendDataOverMqtt example applications for your usecase.
4. For sensor data parsing you can refer streamsensordataoverusb.
Thank You :)
Thank you for your help! Your idea with a REST API is great and makes my Use-Case way easier. Haven't thought about that. But it definitly helps me a lot.