예제 #1
0
파일: OilBurner.cs 프로젝트: gkoe/Heating21
        void DoBurnerOff(object sender, EventArgs e)
        {
            Log.Information($"Fsm;OilBurner;DoBurnerOff");
            var oilBurnerSwitch = StateService.GetActor(ActorName.OilBurnerSwitch);

            SerialCommunicationService.SetActorAsync(oilBurnerSwitch.Name, 0).Wait();
        }
예제 #2
0
 async void DoBurnerOff(object sender, EventArgs e)
 {
     var oilBurnerSwitch = StateService.GetActor(ItemEnum.OilBurnerSwitch);
     await SerialCommunicationService.SetActorAsync(oilBurnerSwitch.ItemEnum.ToString(), 0);
 }