Fiware和IDAS:问题发送对象.py

2024-05-16 11:40:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我是个新手。我正在使用Figway(https://github.com/telefonicaid/fiware-figway),尝试使用此命令发送观察结果时遇到问题:

python SendObservation.py sensor001x 't|23'

以下是回应:

* Asking to http://130.206.80.43:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=sensor001x
* Headers: {'Fiware-Service': 'OpenIoT', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-Token': 'NULL'}
* Sending PAYLOAD: 
t|23

...

* Status Code: 400
* Response: 
{"name":"UNSUPPORTED_TYPE","message":"The request content didn't have the expected type [text/plain ]"}

你能帮我吗?我错在哪里?我和树莓一起工作。你知道吗

非常感谢。你知道吗


Tags: pyhttps命令githubcomtypecontent新手