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: using intranet.ocx to build an application



>
> how do i update the uid correctly & automatically since there will
be
> many other devices' statuses being sent?
>
>
xapmessagebody = xapmessagebody & "input.state" &
Chr$(10)
xapmessagebody = xapmessagebody & "{" & Chr$(10)
xapmessagebody = xapmessagebody & "state=on" & Chr$(10)
xapmessagebody = xapmessagebody & "}" & Chr$(10)
Master.xAP_Intranet1.SendxAPX "", "xAPBSC.info",
xapmessagebody,
"01", "House.Occupied"

would send a message from a uid ending 01  and a source address
:House.Occupied . The first part of these is added by the ocx so you
don't need to worry about that. Now as far as mapping the subUID to the
sub Source address, that will need to be handled and stored in an array
or list in your app. I often use an array to hold the sub source
addresses and use the position in the array as the UID, seems to work well.


James








xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation 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.