on 01-24-2018 12:14 PM - last edited on 02-04-2024 3:10 AM by postmig_api_4
Hi,
I have IoT devices that sends out its location(GPS co-ordinates) to SAP IoT.
The 'Things' linked to these devices have fields for latitude and longitude but only accepts static values(numbers). How can the device location which is part of sensor data(measured values) be linked to a Thing location?
Is there away to assign a variable to the location fields in Thing definition?
Thanks,
vkdas
Hi,
You are right, the Thing location is designed for Things with static locations. If you have geo positions as Time Series Data you should also model them as Time Series Data. So just extend your Thing Model by a Property Set Type with longitude and latitude and store the position there.
Regards
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
I have latitude and longitude in the Thing Model as a custom Property Set Type, data from the device is visible in this field.
The app generated by IoT AE uses the sap.ui.iot.controls.IoTMap element. In case of dynamic things(no static location defined), I see 2 location related issues in this Iot app generated by WebIDE.
I updated the generated app code to use the custom location property sets, but the internal location features of the IoTMap element all seem to be using the static location of the Thing. Hence the 2 issue i mentioned above.
Thanks,
vkdas
Hi,
Yes, the map uses the static locations.
I think you have two options. The first option is to use another map control. We also had an app, where we draw the route of a Thing using Time Series Data.
The second option is to update the location on a regular basis. You could run a background job on SAP Cloud Platform, which gets the location from the Time Series Data and updates the static one.
Regards
Jan
Hi Vkdas,
Are you using HCI/SCPI as a middleware?
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.