I`m trying to coect RPi3 wiht Android phone!!
I refered RPi3 code such as
And I refered Android sample code (Bluetooth chat)
I succeeded in coection with Python, but I failed to coect with C-language.
-
When compiling, add -lbluetooth option, so there is no compile error..
-
Any other C code I found in Google failed to coect..
-
If I run C code, when I checked through perror(), it is just well up to listen().
-
(client = accept(s, (struct sockaddr *)&rem_addr, &opt);) line is never act!!
- Pairing is fine, but coection is failed in Android.
Is there any problem C-language code?
..
- This is my RPi3 status.
pi@raspberrypi:~ $ hciconfig hci0: Type: BR/EDR Bus: UART BD Address: XX:XX:XX:XX:XX:XX ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING PSCAN RX bytes:4568 acl:73 sco:0 events:132 errors:0 TX bytes:4673 acl:71 sco:0 commands:62 errors:0
(address is not important..)
And RPi3 OS is rasbian 2016-05-10 jessie, and my bluez version is 5.23.
