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 all
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);
}