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: HELP .. New User



Hi,

> I just started getting into XPl & haven't a clue where to start!!!
>
> I have a copy of the xpllib.dll (Thanks John B), I have no
> clue in what order/class to use first, how i get it to talk
> to my COM port,the little documentions that out doesn't
> really help!! I currently using C# ,net .

The two main classes you'll be using in xpllib are:
XplMsg - use this to send xPL messages.
XplListener - use this to listen for incoming messages.

Basically you declare an XplListener object, and use it's event handlers
to make your program do things when certain xPL messages are received.

But xpllib has nothing to do with talking to your serial port - you'll
need to use one of the various ways of making .NET talk to a COM port.

I use a free DLL which I think came from an MSDN article (sorry - don't
have the link to hand) - it totally abstracts you from the underlying
communications and makes it really easy to talk to anything via serial.

If you explain a bit about what you're trying to achieve, I can probably
point you in the direction of some source code to get you started.
(will probably be in VB.NET, but you should have no problems turning it
into C#)

HTH,

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.