[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Fw: error checking +Instance Question
- Subject: Re: Fw: error checking +Instance Question
- From: Frank Mc Alinden
- Date: Sat, 27 Dec 2003 22:25:00 +0000
Hi John
With the error checking what i have done is anything under and
including the mispelt option are defaulted as the message is not aligned
with my table.....so if column is mispelt then column ,delay and alert will
default.......maybe better to discard the message ???
> Instances can be between 1 and 16 bytes long.
> So I guess you could allocate a fixed 16 bytes and just use zero
padding
for instances that >are under 16 bytes?
When you say zero padding do you mean ...frank000000...or white space....I
was hoping a fixed 7 or 8 character instance...
Thanks
Frank
----- Original Message -----
From: "John B" <<a
href="/group/ukha_xpl/post?postID=6HwMlhO40HYTceB57SDra1wezU9EiWXN1QYxUok4slgRKzgOxBQmyjjI1Jens_pmssKEo2Yk-1qC47gKnZ8o7PW5J3sti57b">home-automation@j...</a>>
To: <<a
href="/group/ukha_xpl/post?postID=2GsIa8S3JDj2-BAGAUro2NIRmgg1eWm4WTSa7euv55AEr-pOTOeKNueoOQSs8JAw7AuukZhZbk6YxbiSVDXEjQ">ukha_xpl@xxxxxxx</a>>
Sent: Sunday, December 28, 2003 9:13 AM
Subject: Re: [ukha_xpl] Fw: error checking +Instance Question
> Hi Frank,
>
> > > Just doing some error checking on the pic/osd and was
wondering if
> > > one of the options was spelt incorrectly in the message
should the
whole
> > > message be discarded or the default setting used for that
option
.....At
> > the
> > > moment if say i receive colum=**....it will default to
column 5 since
the
> > n
> > > is missing ...is this correct ??? or should it be discarded
??
>
> I think column is an optional element, so if it were spelled
incorrectly,
I'm guessing you should treat it as if it wasn't there, and use the default
column value, which sounds like what you've done.
>
> If it was a mandatory item that was spelled incorrectly, then I guess
you'd have to reject the message, but as column is optional, I don't think
rejecting the message is necessary.
>
> > > Also is it possible to make the reconfigurables ie instance
a fixed
number
> > > of characters....What im going to try and do is...rewrite
the instance
in
> > my
> > > program memory table and this would make it a lot easier
than jumping
in
> > and
> > > out of tables..would also copy new configs to eeprom ..
>
> Instances can be between 1 and 16 bytes long.
> So I guess you could allocate a fixed 16 bytes and just use zero
padding
for instances that are under 16 bytes?
>
> Regards,
>
> John
>
>
> xPL Links: <a href="http://www.xplproject.org.uk">http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com">http://www.xplhal.com</a>
<a href="http://www.xpl.myby.co.uk">http://www.xpl.myby.co.uk</a>
> To Post a Message: <a
href="/group/ukha_xpl/post?postID=2GsIa8S3JDj2-BAGAUro2NIRmgg1eWm4WTSa7euv55AEr-pOTOeKNueoOQSs8JAw7AuukZhZbk6YxbiSVDXEjQ">ukha_xpl@xxxxxxx</a>
> To Subscribe: <a
href="/group/ukha_xpl/post?postID=zZycxJgonMlbQFQX8NSlNWSUYGYpM99T2a4bwtlR0y4MOz6px30ex_C53g_QnjSJ3XPb1syKEjpEXqXuYELNDq7KTabdzv6hxQ">ukha_xpl-subscribe@xxxxxxx</a>
> To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=4S6VGWZMh1XfXncouGLEkpVaecJ4gKIvMJtFl3kXFHPZtqlwzp22sVlD74fTBPQuDOc9SbYztsvmywry7BTTZTiXrHxwe73f7dFE6ws">ukha_xpl-unsubscribe@xxxxxxx</a>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> <a href="http://groups.yahoo.com/group/ukha_xpl/">http://groups.yahoo.com/group/ukha_xpl/</a>
>
> To unsubscribe from this group, send an email to:
> <a
href="/group/ukha_xpl/post?postID=4S6VGWZMh1XfXncouGLEkpVaecJ4gKIvMJtFl3kXFHPZtqlwzp22sVlD74fTBPQuDOc9SbYztsvmywry7BTTZTiXrHxwe73f7dFE6ws">ukha_xpl-unsubscribe@xxxxxxx</a>
>
> Your use of Yahoo! Groups is subject to:
> <a href="http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/terms/</a>
>
>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|