Go Down

Topic: UWP app cannot establish Bluetooth connection to Arduino Uno! (Read 989 times) previous topic - next topic

Ken76

I have button on my UWP app, which function is to establish Bluetooth connection to Arduino Uno.
But nothing happens when I click it. Is there something I have missed in code?
No error message appears.

Here is the code!
Code: [Select]
private void buttonStart_Click(object sender, RoutedEventArgs e)
        {
          BluetoothSerial connection;
           RemoteDevice arduino;
   
           connection = new BluetoothSerial("RNBT-9D4F");
            arduino = new RemoteDevice(connection);
            arduino.DeviceReady += OnDeviceReady;

            connection.begin(115200, SerialConfig.SERIAL_8N1);

       }

Go Up