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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -