public LampService(ServiceCreationInfo info) : base(info) { uint port = uint.Parse(info.Configuration["port"]); mSerialHelper = SerialRepository.OpenPort("arduino", port, 115200); }
public CurtainService(ServiceCreationInfo info) : base("curtain", info) { uint port = uint.Parse(info.Configuration.port); mSerialHelper = SerialRepository.OpenPort("arduino", port, 115200); mRadioLock = RadioLock.Instance; mLock = new Object(); }