I have installed Bluez5 and Pluseaudio 5 in raspberry Pi3 and Now I am able to connect to iphone and Mac using command line tool "bluetoothctl" in raspberry Pi. In bluetoothctl I have to type the commands to connect to a device.
But I want other way around. A python code in raspberry Pi which can communicate with iPhone app over bluetooth. It's like raspberry Pi keep listening like a server and when I connect to raspberry pi from iPhone It should then get connected. Simply I want to control a LED or servo motor connected to Pi from iphone over bluetooth.
Can somebody help me with this ?
I am using Raspberry Pi 3.