Révision 06a15704 TestXamConnections/TestXamConnections.Android/Connection/BluetoothConnectionService.cs

Voir les différences:

TestXamConnections/TestXamConnections.Android/Connection/BluetoothConnectionService.cs
126 126
            return Task.FromResult(true);
127 127
        }
128 128

  
129
        public Task<bool> SendCommand(byte[] hexValues)
129
        public Task<bool> SendCommand(IConvertible command)
130 130
        {
131
            byte[] hexValues = Encoding.ASCII.GetBytes(command.ToString());
132

  
131 133
            if (socket.IsConnected == false)
132 134
            {
133 135
                return Task.FromResult(false);

Formats disponibles : Unified diff