Я запустил экземпляр с помощью «orion-psb-image-R4.1» в Испании2. Я могу удаленно войти в систему и запустить брокера контекста следующим образом: «/etc/init.d/contextBroker start».
Но при отправке команды
(curl localhost:1026/v1/updateContext -s -S --header 'Content-Type: application/xml' -d @- | xmllint --format - ) <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<updateContextRequest>
<contextElementList>
<contextElement>
<entityId type="Room" isPattern="false">
<id>Room1</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>temperature</name>
<type>float</type>
<contextValue>23</contextValue>
</contextAttribute>
<contextAttribute>
<name>pressure</name>
<type>integer</type>
<contextValue>720</contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>
</contextElementList>
<updateAction>APPEND</updateAction>
</updateContextRequest>
EOF
всегда есть такой ответ:
<?xml version="1.0"?>
<orionError>
<code>400</code>
<reasonPhrase>Bad Request</reasonPhrase>
<details>service '/v1/updateContext' not found</details>
</orionError>
Любая помощь приветствуется.