[Fiware-lab-help] 400 bad request on executing SendObservation.py

Shreekantha Devasya shreekantha.devasya at fit.fraunhofer.de
Fri Nov 6 09:37:34 CET 2015


Hello all,

I am new to FIWARE and I am trying to REGISTER my sensor and update its 
attributes as mentioned in the link
https://www.fiware.org/tag/developers/page/2/
I have registered my sensor using following command:
*RegisterDevice.py SENSOR_TEMP  sensor4 thermometer4
*I got 201 CREATED as a response.
After this, I tried to update temperature as below:
*python SendObservation.py a5fa:694:sensor4 't^|6' *
note: Since I am using DOS, I used ^ as escape character.
*
*As a result, I am getting 400 bad request as shown below:
* Asking to http://130.206.80.47:8002/d?<mytoken>&i=a5fa:694:
sensor4
* Headers: {'content-type': 'application/text', 'X-Auth-Token': 
'I***********
***********************************************************3'}
* Sending PAYLOAD:
't|6'

...

* Status Code: 400
* Response:

Kindly help me to find out what am I missing here.

Best Rregards,
Shreekantha


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20151106/f597d9b3/attachment.html>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy