Reputation: 11
I want to use bluetooth 4.0 to access iOS devices use message access profile. I can create socket with iOS device use RFCOMM and MAS UUID, but when I use this request byte to connect, I got a forbidden response(195). Can anybody can provide a sample code.
Upvotes: 1
Views: 5025
Reputation: 593
Your code might not be the problem here.
There is a forbidden response because of you did not enable MAP on your iOS device for the device you want to connect as Messaging Server.
You need to enable it for each device in your paired device list.
(Settings -> Bluetooth -> ringed 'i' of your device ->Show Messages)
Apple set default off. I guess they don't really want that anybody uses MAP with iPhones.
Upvotes: 1