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: .NET xPLLib "feature"



Hi Ian,

> Myself and Jen are building an app and it struck us that we
> can't actually get the message type from the .net assembly -
> there doesn't seem to be a way to find out whether this is a
> stat, trig or cmnd message.. Which is a little odd!
>
> I have the source for 4.1 here, so I guess I could add the
> required public sub in easily, I'm just a little curious..

No need to mod the source - here's how you do it (in VB.NET):
(assuming X is an XplMsg object)

Select Case x.XPL_Msg(0).Section.ToLower()
Case "xpl-cmnd"
' Respond to command messages here
Case "xpl-trig"
' Respond to trigger messages here
Case "xpl-stat"
' Respond to status messages here
End Select

HTH, and apologies for the late reply!

John



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