private static async Task SendResponseAsync(GattDeviceService service, RequestBase request, byte errorCode, ResponseBase response = null)
        {
            Debug.WriteLine($"Sending message protocol response: '{request.CategoryId}, {request.RequestType}'");

            byte[] responseMessage = MessageProtocolFactory.CreateResponseMessage(request.CategoryId, request.RequestType, request.SequenceId, errorCode, response);
            await BluetoothLeHelper.WriteAsync(responseMessage, service, MessageProtocolRxCharacteristicId);
        }
        private static async Task SendEventMessageAsync(GattDeviceService service, CategoryIdType categoryId, ushort eventType)
        {
            Debug.WriteLine($"Sending message protocol event: '{categoryId}, {eventType}'");

            byte[] eventMessage = MessageProtocolFactory.CreateEventMessage(categoryId, eventType);
            await BluetoothLeHelper.WriteAsync(eventMessage, service, MessageProtocolRxCharacteristicId);
        }