The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Multiple Message Bodies


  • Subject: Re: Multiple Message Bodies
  • From: Mark Hindess <xpl@xxxxxxxxxxxxxxxxx>
  • Date: Sun, 11 Dec 2005 10:41:04 +0000


On 11 December 2005 at 9:06, "mustang8760"
<ericvic@xxxxxxx> wrote:

> Can xPL messages have multiple bodies in them? I couldn't find
> anything in the docs that states one way or another.

I've looked at quite a few of the xPL implementations available for
linux/unix machines and none of them would support it.  That seems to me
like a good indication that it isn't intended.

It would be a good idea to clarify this in the document.

There are other similar issues that would probably benefit from some
clarification.  For instance, whether developers should be permitted
to repeated field names - currently there aren't any restrictions on
developer fields.

For example:

x10.basic
{
command=on
device=b2
command=off
}

I suspect some implementations might treat this as 'command=off' even
though 'command=on' field is in the correct position.

It would probably be a good idea to specify that:

Field names in the body should not be repeated.  Implementations
should use the first value and ignore subsequent values if they
receive messages with duplicate fields.

Regards,
Mark.





xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.