Skip to content

Instantly share code, notes, and snippets.

@LukasBrin
Last active January 8, 2018 08:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukasBrin/6f6d9d18cf42e7de17e38d4d8d3b0025 to your computer and use it in GitHub Desktop.
Save LukasBrin/6f6d9d18cf42e7de17e38d4d8d3b0025 to your computer and use it in GitHub Desktop.
Commands in SAP IoT Application Enablement - Configure the package
POST /appcore-conf/Configuration
{
"id": "sap.iotrig.thingshadow",
"version": "1.0.0",
"scope": "private",
"description": {
"en": ""
},
"dependencies": [],
"services": {
"dataService": {
"thingTypes": [
{
"name": "sap.iotrig.thingshadow:Robot",
"description": {
"en": ""
},
"propertyTypes": [
{
"id": "Arm",
"description": {
"en": ""
},
"propertySetType": "sap.iotrig.thingshadow:Arm"
},
{
"id": "Image",
"propertySetType": "sap.iotrig.thingshadow:Image"
}
]
}
],
"propertySetTypes": [
{
"name": "sap.iotrig.thingshadow:Default",
"description": {
"en": "Default PST"
},
"dataCategory": "MasterData",
"propertyTypes": []
},
{
"name": "sap.iotrig.thingshadow:Image",
"description": {
"en": "Image properties"
},
"dataCategory": "MasterData",
"propertyTypes": [
{
"value": {
"description": {},
"id": "ImageName",
"length": "127",
"type": "String"
}
}
]
},
{
"name": "sap.iotrig.thingshadow:Arm",
"description": {
"en": ""
},
"dataCategory": "TimeSeriesData",
"propertyTypes": [
{
"value": {
"description": {},
"id": "Hydraulics",
"type": "NumericFlexible",
"qualityCode": "0"
}
}
]
},
{
"name": "sap.iotrig.thingshadow:Ref70556",
"description": {
"en": "ReferencePropertyData"
},
"dataCategory": "ReferencePropertyData",
"referredPropertySetType": "sap.iotrig.thingshadow:Arm",
"propertyTypes": [
{
"value": {
"id": "Command67428",
"referenceProperty": "Hydraulics",
"attributeType": "com.sap.iot.core.Command"
}
},
{
"value": {
"id": "UoM60529",
"referenceProperty": "Hydraulics",
"attributeType": "com.sap.iot.core.UoM"
}
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment