- Posts: 111
- Karma: 2
- Thank you received: 12
public void Setup()
{
{
EventHelper.ModuleChangedHandler((o, m, p) =>
{
Console.WriteLine(m.Address + " in program id "+ Program.ProgramId.ToString()+ " property "+ p.Property + " value " + p.Value);
if (m.Domain == Domains.MYSENSORS && m.Address == "N11S3" && p.Property == "1")
DriverHelper.ProcessCommad(Domains.RPIGPIO, "Pin_P1_07", "ControlOn", "1");
return true;
});
}
}
Please Log in or Create an account to join the conversation.
if (m.Domain == Domains.MYSENSORS && m.Address == "N11S3" && p.Property == "Sensor.Door/Window" && p.Value == "1")
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
public void Setup()
{
{
EventHelper.ModuleChangedHandler((o, m, p) =>
{
Console.WriteLine(m.Address + " in program id "+ Program.ProgramId.ToString()+ " property "+ p.Property + " value " + p.Value);
if (m.Domain == Domains.MYSENSORS && m.Address == "N11S3" && p.Property == "Sensor.Door/Window" && p.Value == "1")
DriverHelper.ProcessCommad(Domains.RPIGPIO, "Pin_P1_07", "ControlOn","");
return true;
});
}
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.