Just found: http://grommet.codeplex.com/
But I cannot seem to find any documentation.
For example, the following code blocks forever on module.Open();
var module = new XBeeModule("COM2", 9600);
module.Open();
The open method of the XBeeModule.cs file looks like this:
public void Open()
{
SerialPort.Open();
SerialPort.DataReceived += dataReceivedEventHandler;
SerialPort.ErrorReceived += errorReceivedEventHandler;
AutoResetEvent ev = new AutoResetEvent(false);
PropertyChangedEventHandler handler = (sender, e) => { if (e.PropertyName=="Identifier") ev.Set(); };
CurrentNode.PropertyChanged += handler;
CurrentNode.Refresh(this);
ev.WaitOne();
CurrentNode.PropertyChanged -= handler;
}
i.e. the AutoResetEvent is never set,
but due to the lack of documentation I cannot determine if this is
a bug or simply me using the library incorrectly…
UPDATE: the MFToolkit http://mftoolkit.codeplex.com/ also has xbee support but no documentation either… any suggestions?