Hi everybody,
Today I received my relay X1 module. I want to use it with a cerbuinobee but I didn’t find any driver.
Do you know where can I get it or when the developer guide will be available for this module ?
Thanks
André
Hi everybody,
Today I received my relay X1 module. I want to use it with a cerbuinobee but I didn’t find any driver.
Do you know where can I get it or when the developer guide will be available for this module ?
Thanks
André
You can use something like this.
public class PowerControl
{
static GT.Interfaces.DigitalOutput _powerdo = null;
public bool Power
{
get
{
return _powerdo.Read();
}
set
{
_powerdo.Write(value);
}
}
public PowerControl(int socketno, GT.Socket.Pin pin)
{
if (_powerdo != null) return;
GT.Socket socket = GT.Socket.GetSocket(
9,
true,
null,
null);
_powerdo = new GT.Interfaces.DigitalOutput(
socket,
pin,
false,
null
);
}
}
Thanks a lot