bluetooth - get eaaccessory macaddress in swift -


i have bt 2.0 device certified.

i can send/recv data bt device eaaccessory input/output stream.

but went device's mac address

there ios9 eaaccessory header

https://github.com/javisoto/ios9-runtime-headers/blob/master/frameworks/externalaccessory.framework/eaaccessory.h

  • (id)macaddress;

how can call method ??

this app not need submit apple store.

try value with:

let mac = myaccessory.valueforkey("macaddress") print("mac address is: \(mac)") 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -