cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read mappings between SAP Leonardo IoT and SAP IoT Services

fvviviani
Participant
0 Kudos

Dear users,

I am unable to read created mappings for SAP Leonardo IoT Thing Types. I'm referring to this API. I'm not sure I am inserting the "Thing type name" field correctly, as I am putting the full package + ":" + thing type as in this case:

https://tm-data-mapping.cfapps.eu10.hana.ondemand.com/mappings/sensorthing/ThingConfiguration/v2/ThingTypes('iotae.xxx.xxx.xxx.poc:Display')?$expand=SensorTypes/SensorTypeCapabilities/Capabilities/Properties

And this is the error I am getting:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Error</title>
    </head>
    <body>
        <pre>Cannot GET /mappings/sensorthing/ThingConfiguration/v2/ThingTypes(%27iotae.xxx.xxx.xxx.poc:Display%27)</pre>
    </body>
</html>

I am not sure whether I'm calling it the wrong way, or there is some issue with our instance.

Thank you,

Federico

Accepted Solutions (0)

Answers (1)

Answers (1)

BanurekhaBalaji
Associate
Associate
0 Kudos

Hi Federico,

Please use a different application name (config-thing-sap and not tm-data-mapping) to view the sensor types mapped to a thing type.

Please try this URL https://config-thing-sap.cfapps.eu10.hana.ondemand.com/ThingConfiguration/v2/ThingTypes('iotae.xxx.xxx.xxx.poc:Display')?$expand=SensorTypes/SensorTypeCapabilities/Capabilities/Properties.

Let us know if you are unable to retrieve the details.

Regards,

Banurekha Balaji

fvviviani
Participant
0 Kudos

Hello,

The endpoint is indeed working. Does this have the same functionalities as the other one? (i.e., creating a new sensor-thing mapping)