Example #1
0
        private void ProcessGetOperationMode(MessageInfo message)
        {
            var currentOpModeIdentifier = IdentifierToOpMode.First(kv => kv.Value == CurrentOpMode).Key;

            message.RespondWith(new FluentWriter()
                                .WriteEnum(Protocol.GetOperationMode)
                                .WriteEnum(currentOpModeIdentifier));
        }
Example #2
0
 private void ProcessGetBrightness(MessageInfo message)
 {
     message.RespondWith(new FluentWriter()
                         .WriteEnum(Protocol.GetBrightness)
                         .WriteSingle(LedStripe.Brightness));
 }