mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
parent
e8a8d481aa
commit
8d8899f9ac
1 changed files with 16 additions and 4 deletions
|
|
@ -112,17 +112,29 @@ namespace PepperDash.Essentials.Core
|
|||
return null;
|
||||
}
|
||||
|
||||
Hr1x0WirelessRemoteBase remoteBase;
|
||||
switch (type)
|
||||
{
|
||||
case ("hr100"):
|
||||
return new Hr100(rfId, gateway);
|
||||
remoteBase = new Hr100(rfId, gateway);
|
||||
break;
|
||||
case ("hr150"):
|
||||
return new Hr150(rfId, gateway);
|
||||
remoteBase = new Hr150(rfId, gateway);
|
||||
break;
|
||||
case ("hr310"):
|
||||
return new Hr310(rfId, gateway);
|
||||
remoteBase = new Hr310(rfId, gateway);
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
// register the device when using an internal RF gateway
|
||||
if (props.GatewayDeviceKey == "processor")
|
||||
{
|
||||
remoteBase.RegisterWithLogging(config.Key);
|
||||
}
|
||||
|
||||
return remoteBase;
|
||||
}
|
||||
|
||||
static void gateway_BaseEvent(GenericBase device, BaseEventArgs args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue