Closed ArndGerns closed 3 weeks ago
@ArndGerns @mkrebs81 : OK, for me.
I believe this will be sufficient.
The REST API query string or parameters are strings anyway. And the "from" content should be parsable according to the data point's data type.
I suppose the conversion direction depends on whether it is a read or write operation:
I believe this will be sufficient.
The REST API query string or parameters are strings anyway. And the "from" content should be parsable according to the data point's data type.
I suppose the conversion direction depends on whether it is a read or write operation:
- read --> from = value returned by REST call, to = value returned to communicator
- write --> from = value given by communicator, to = value given to REST call
It's my understanding too.
Then it seems to be ambiguous. I guess @ergo-furrer has understood it differently.
Can we rename the mapping values in
<restValue>
=> the value in the rest API call<jsonValue>
=> the value in the generic inferfaceThat would be unambiguous. What do you think? Better names?
Then it seems to be ambiguous. I guess @ergo-furrer has understood it differently.
Can we rename the mapping values in
<restValue>
=> the value in the rest API call<jsonValue>
=> the value in the generic inferfaceThat would be unambiguous. What do you think? Better names?
What about <genericValue>
, <deviceValue>
?
Then it seems to be ambiguous. I guess @ergo-furrer has understood it differently. Can we rename the mapping values in
<restValue>
=> the value in the rest API call<jsonValue>
=> the value in the generic inferfaceThat would be unambiguous. What do you think? Better names?
What about
<genericValue>
,<deviceValue>
?
Yes. Better.
Have changed it now to <genericValue>
, <deviceValue>
.
If it is ok, I'ld merge it.
Added mapping for value for RestAPI
It is now possible to have a mapping for read and write for a rest api datapoint.
Example:
For a write data call, the generic value is mapped with the mapping and the mapped value is written to the rest api.
For a read data call, the value is read from the rest api and then mapped to the generic value.