[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Multi-block message bodies
- Subject: Re: Multi-block message bodies
- From: Patrick Lidstone
- Date: Mon, 16 Jun 2003 19:32:00 +0000
>
> However think on say a 4 channel dimmer status response
>
> Status.response
> {
> Channel 1 =50%
> Channel 2 =20%
> Channel 3 =30%
> Channel 4 =0%
> )
>
> or if channels were named
>
> status.response
> {
> Lounge=50%
> Hall=20%
> Kitchen=30%
> Outside=0%
> )
Or...
status.response.lounge
{
lighting=50%
}
status.response.hall
{
lighting=20%
}
etc.
For me, this works better from a coding perspective. It allows for an
infinite number of "channels" subject to maximum message size,
and
allows for nice encapsulation. If my dimmer pack was later upgraded
to allow for - oh, I don't know, occupancy detection say - then I can
extend the message to do:
status.response.hall
{
lighting=20%
occupancy=1
}
I agree that I could also slice it: status.light / status.occupancy -
but it's not as intuitive to me, anyway - I would like to have the
flexibility to be able to do things both ways, and would choose to
group by location in the first instance.
Patrick
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|