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

            byte[] responseMessage = MessageProtocolFactory.CreateResponseMessage(request.WifiRequestType, request.SequenceId, errorCode, response);
            await BluetoothLeHelper.WriteAsync(responseMessage, service, MessageProtocolRxCharacteristicId);
        }
        private static async Task SendEventMessageAsync(GattDeviceService service, WifiEventId wifiEventType)
        {
            Debug.WriteLine($"Sending Wi-Fi config message protocol event: '{wifiEventType}'");

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