cloud-platform-iot-starterkit icon indicating copy to clipboard operation
cloud-platform-iot-starterkit copied to clipboard

send_data.sh is invalid

Open liversedge opened this issue 7 years ago • 2 comments

Hi,

The curl example for sending data for a sensor is invalid;

  • the alternate ids are are sent as numeric literals not strings
  • the semantics for the attribute "measures" is not clear (the values passed are non-integer).

Can you confirm this example works as intended, or point to documentation that might help?

liversedge avatar Nov 06 '17 14:11 liversedge

The send_data.sh I am referring to is here:

https://github.com/SAP/iot-starterkit/blob/master/cf/samples/curl-samples/send-measure-rest/step_08_send_data.sh

liversedge avatar Nov 06 '17 14:11 liversedge

Hello Mark,

thanks for reporting. We are currently re-checking the complete procedure (curl/REST sample) [1] with different curl versions on MAC and PC.

Alternatively, you may try the Java sample or follow the tutorial procedure described in the docu [2]

Sorry for the inconvenience, Anton

[1] https://github.com/SAP/iot-starterkit/blob/master/cf/samples/curl-samples/send-measure-rest [2] https://help.sap.com/viewer/d5f07bf9e1d646959a006f98d4cce321/Cloud/en-US

levinanton avatar Nov 07 '17 09:11 levinanton