writeOnly channel [message #1717252] |
Fri, 11 December 2015 06:00 |
Jongmin Kim Messages: 11 Registered: May 2015 |
Junior Member |
|
|
As this URL(https://www.eclipse.org/smarthome/documentation/development/bindings/thing-definition.html), The channel type definition allows to specify a category(R or RW).
But, (i think..) in order to reduce the startup time(or to reduce the thing approve time), we must consider the "write only channel".
The reason is like below:
1) When a thing is created, The channels must linked to the Items.
2) The entries of "channel, item, channelItemLink..." must have the mapdb entries(storages).
3) The creation of mapdb entry is a time consuming(expensive) operation.
4) If the number of channels increases, it will increase the generation time of the Thing.
5) I think all of the channel don't need the mapdb entries(storages)
6) If a channel is used to handle a "control only command", it is not necessary to store the channel's status.
7) If a "control only command" use the "wirte only channel", the creation time of the thing will be reduced.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04288 seconds