[OpenTRV-dev] Christmas secure protocol joy!
jeremy at bigjungle.net
Tue Dec 29 12:49:15 GMT 2015
If I am reading it correctly you have the total packet length (including
the body) as the first byte so I am OK with the body size immediately
proceeding the body data and in general this should be the same format for
all variable length fields (no checked this is the case in detail).
Just my 2p worth.
On 24 Dec 2015 10:27, "Damon Hart-Davis" <damon at opentrv.uk> wrote:
> Matthew W suggests that parsing (etc) might be significantly easier if the
> body length field was moved up somewhere in front of the variable-length ID
> field (or if the ID length was fixed, but I’m pretty certain that I don’t
> want to take that path).
> I’m loathe to separate the body length from the body, but I’m interested
> in other views on this. Simplicity in parsing/generating is very valuable
> for the sorts of small systems that this protocol is aimed at.
> Will Santa bring us a working protocol? B^>
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenTRV-dev