I’m sorry but I failed to understand your issue, can you please explain it with examples?
Hi, actually I am developing a sensor monitor plugin. I use sensor monitor sample sdk. It works fine. In this sample sensors are creating in management client, manually.
But my need is load sensor details from a REST api call. Api that has response in json with details about sensors and its values.
I just checked if ConfigAPI Client sample (https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configapiclient/readme.html&tree=tree_2.html ) shows controller/Sensor detail, see below.
I also tested if it is possible to get sensor/controller data via API gateway, but I could only get Plugin information, not Controller/Sensor details.The plugin information via API Gateway is the same as the one that you can get via ConfigAPI Client.
GET http://{hostname}/api/rest/v1/sites/{siteID}/mipkinds/{PluginID}
Result -
"data": {
"displayName": "Sensor",
"id": "0375137e-3136-445d-add1-f855d4be1b44",
"name": "Sensor",
"pluginId": "2a13d169-8803-4ab2-b45b-5c1f1c453c93",
"pluginName": "Sensor Monitor",
"kindType": "ITEM",
"securityAction": "GENERIC_WRITE,GENERIC_READ,ADMIN_SECURITY",
"displayOnGisMap": "True",
"parentKind": "57d0ed4b-3baf-4fc0-aa1b-d333a82f2f12",
"dataVersion": 3,
"modifiedUser": "TA\\TATest",
"lastModified": "2022-02-22T13:38:27.9930000Z",
"relations": {
"self": {
"type": "mipKinds",
"id": "0375137e-3136-445d-add1-f855d4be1b44"
}
}
}
If I create my own API to get details about sensor, which includes name, status, value etc.. then how can I add it to management client application?
Is it possible?
If you explore the sample, you will see how it works within the Management Client. If this is not what you seek, please elaborate on your question.
