[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
|