[OpenTRV-dev] XAP
Bruno Girin
EMAIL ADDRESS HIDDEN
Wed Apr 3 14:39:11 BST 2013
MQTT doesn't specify a message format so you could very well use the
XAP message format over MQTT.
Which reminds me, I need to add the PoC code I came up with to the
source tree.
Bruno
On Tue, 2 Apr, 2013 at 4:26 PM, Thomas Hood <EMAIL ADDRESS HIDDEN> wrote:
> On Tue, Apr 2, 2013 at 5:16 PM, Mike Stirling
> <EMAIL ADDRESS HIDDEN> wrote:
>> I never really understand the logic behind projects that say they
>> are
>> targetting low-end embedded and then go on to develop a protocol in
>> human-readable ASCII, or worse, XML!
>>
> At http://www.xapautomation.org/index.php?title=Protocol_definition I
> found some explanation for this. I quote with a little editing for
> readability:
>
> Each name-value pair within the message block is defined by a keyword,
> a delimiter, a value and a terminator. [...] The delimiter determines
> the method of value encoding.
>
> '=' (equals sign, ASCII character 61 decimal) indicates that a value
> is encoded as an ASCII string. This is the preferred encoding format.
>
> '!' (pling, ASCII character 33 decimal) determines that a value is
> encoded as an ASCII hex representation. This allows the broadcast of
> raw binary data. Whilst unavoidable under certain circumstances, its
> use is discouraged because of the issues with portability (numeric
> representations differ across processor types).
>
> --
> Thomas
> _______________________________________________
> OpenTRV-dev mailing list
> EMAIL ADDRESS HIDDEN
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20130403/65f45e72/attachment.html>
More information about the OpenTRV-dev
mailing list