문제

I am working on an app that has an external accessory, the phone shows that it has been authenticated and the device shows up in the General->About menu, but when I NSlog the accessory protocols, it shows up as Null, I didn't think that should be possible if an accessory is actually authenticated.

Is there anything I can do in my app to force the accessory to reauthenticate?

도움이 되었습니까?

해결책

The problem was that for some reason when the device first paired, some of the information was getting garbled, we ended up putting a 2 second delay in place after the bluetooth chipset had paired on the accessory side and then started our authentication. For some reason the bluetooth chipset was still doing some of it's own processing and wasn't quite ready to start streaming data.

다른 팁

can you explain it better?

Anyway, did you remember to put the protocol string in the [YourApp]-info.plist file? No? Add this row:

UISupportedExternalAccessoryProtocols

Add a string item to this new row and put inside the string identifing your protocol.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top