AaltoAsia / O-MI

Internet of Things data server implementing Open Messaging Interface and Open Data Format
BSD 4-Clause "Original" or "Old" License
22 stars 13 forks source link

Write operation omits known object type #14

Open fl-ma opened 6 years ago

fl-ma commented 6 years ago

Selecting an object in the web UI's tree and performing a read-operation returns this output `

ParkingService ParkingFacilities BMW Research and Technology House

`

Object "BMW Research and Technology House" is of type mv=ParkingFacility, this is not returned by read-operation. This leads to problems when using this data for later write-operations.

Tested with version 1.0.4

TK009 commented 6 years ago

This xml that you have given is only the request. You should press Send to get the data, including the type.

fl-ma commented 6 years ago

sorry, meant to post a write example.

when I want to update an InfoItem, I select it and click on "write". This returns this: `

ParkingService ParkingFacilities BMW second facility VALUE_PLACEHOLDER

`

As a user I would expect that I only have to change VALUE_PLACEHOLDER, but sending it then results in this: `

`

So my expectation would be, that the generated coding is syntactically correct. Not a major thing though.

TK009 commented 6 years ago

Yes right, the error comes from the checks of the parking service agent, which are more strict than O-DF standard, but it might be useful feature to add the type automatically if it exists already.