I am trying to use a client server bluetooth communication between edison board and an android phone with the edison being the server and the phone being the client.I am using RFCOMM to do this so i am using on the edison board the "rfcomm-server.py " but it pops an error when i run it in the terminal in the first line which says " import bluetooth" it seems the it does not have the library needed(I use Yocto image.). How can i fix this ?
Thanks in advance.
I'm guessing you are trying to use rfcomm-server.py from pybluez (https://github.com/karulis/pybluez/blob/master/examples/simple/rfcomm-server.py pybluez/rfcomm-server.py at master · karulis/pybluez · GitHub), am I right? In that case, how did you install it? Did you follow the instructions mentioned in https://github.com/karulis/pybluez GitHub - karulis/pybluez: Bluetooth Python extension module?
Thanks Intel_Peter i am using the rfcomm-server.py here https://people.csail.mit.edu/albert/bluez-intro/x232.html Communicating with RFCOMM ,,, What can i do for this case ?
Thanks Intel_Peter for ur reply ,
Unfortunately it still gives me an error however the error is different now , It gives me the following error "
File "build/bdist.linux-i686/egg/bluetooth/bluez.py", line 268, in advertise_service
bluetooth.btcommon.BluetoothError: "error no advertisable device."
And i still can't find the solution for this .
So I managed to resolve the error and the Edison is now running as an rfcomm server, It seems like i have to edit in the bluetooth.service file with a -C at the end of one of the lines. Thanks so much guys for the help