sap.iot_foundation.send
The sap.iot_foundation.send command is used to publish data to SAP IoT foundation.
TR50 Request
{
"1":{
"command":"sap.iot_foundation.send",
"params":{
"url":"https://bridge.eu10.cp.iot.sap/iot/gateway/rest/measures/USSP1",
"certificate":"us_sugar_pump_1_nopass.pem",
"payload":{
"capabilityAlternateId":"1",
"sensorAlternateId":"S1000",
"measures":[
[
"999"
]
]
}
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
url | String | Yes | The IoT enablement URL to which you need to publish |
certificate | String | Yes | The unencrypted PEM device certificate.
This API requires a PEM certificate to be uploaded to the files section. To upload a file, see Uploading a file. |
payload | String | Yes | A JSON document that you wish to publish to the SAP IoT foundation. |
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
TR50 Response
{
"cmd": {
"success": true
}
}