我是个新手。我正在使用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 ]"}
你能帮我吗?我错在哪里?我和树莓一起工作。你知道吗
非常感谢。你知道吗
不确定这是否与问题的原因有关,但是使用
Content-Type: application/json
而实际负载不是JSON(它是t|23
,我理解它对应于text/plain)似乎是错误的。你知道吗相关问题 更多 >
编程相关推荐