Say hello to…
The example app extents the one described in the first tutorial:
[checklist]
- gets the devices paired to the phone
- shows those devices in a ListView
- when you click on one device, connects using SPP and sends the string “Hello World!”
[/checklist]
The source code is available on Github.
If you have a personal computer with Bluetooth, you can configure it to accept incoming connections and use it to test the app.
Click with the right button on the Bluetooth icon in the Windows tray and choose Open Settings:
Move to the COM Ports tab and click Add…
Choose Incoming:
Note down the name of the new serial port:
Using a terminal emulator (I chose PuTTY), connect to the serial port:
If everything is ok, when you click on the device that represents your computer, the app sends the message and displays a confirm of the transmission…
… and the message appears on your computer!
Pages: 1 2