public GetBatteryLevelCommand(IPacketsProcessor packetsProcessor) { this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor)); packetsProcessor.SetOnGetBatteryLevelResponse(OnGetBatteryLevelResponse); }
public GetBatteryLevelCommand(IPacketsProcessor packetsProcessor) { _packetsProcessor = packetsProcessor; _packetsProcessor.SetOnGetBatteryLevelResponse(OnGetBatteryLevelResponse); }