BT Accessory
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
BT Accessory
Is it possible to detect if a Bluetooth accessory is paired to an iOS device - specifically a keyboard?
Re: BT Accessory
Mmm ... probably YES, but you have to write an 'External' to use the 'EAAccessoryManager' class and, in particular, the 'EAAccessoryManager.connectedAccessories' property which return the list of currently connected accessories.ncmac wrote:Is it possible to detect if a Bluetooth accessory is paired to an iOS device - specifically a keyboard?
Guglielmo
-
- Posts: 2
- Joined: Mon Mar 05, 2012 9:12 pm
Re: BT Accessory
Do you have a example of a external for blue tooth communication or any tips for where to begin
Peter
Peter
Re: BT Accessory
Hi Peter,peter786723 wrote:Do you have a example of a external for blue tooth communication or any tips for where to begin
Peter
unfortunately not, but you can start here : https://developer.apple.com/library/ios ... rence.html for the 'EAAccessoryManager' class, and here : http://www.runrev.com/developers/docume ... rnals-sdk/ for how to write Externals.
Please remember that you can just use the Bluetooth devices made for iOS (... or recognized by iOS) and NOT all the bluetooth devices

Guglielmo
Re: BT Accessory
Can you give some more info on your use case? Are we talking about modifying your UI based on if the keypad shows on screen or not? If that's your use case then there are notifications for that. You could write an external that sends a message to the card every time the keypad is shown.
Cheers
Monte
PS I do half price development for externals I can include in mergExt and this would be a good candidate. You could also add it as an idea in the Ideas topic on the mergExt forum and then vote on it in the poll when it comes up. See mergext.com for more details.
Cheers
Monte
PS I do half price development for externals I can include in mergExt and this would be a good candidate. You could also add it as an idea in the Ideas topic on the mergExt forum and then vote on it in the poll when it comes up. See mergext.com for more details.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: BT Accessory
LOL, it's already in the engine 
See the keyboardActivated message. You shouldn't get that message if they user touches in a field and you have a keyboard connected.
Cheers
Monte

See the keyboardActivated message. You shouldn't get that message if they user touches in a field and you have a keyboard connected.
Cheers
Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- Posts: 1
- Joined: Fri Apr 27, 2012 9:20 am
Re: BT Accessory
@gpb01 Is it possible to pair a MFI licensed bluetooth device programaticcaly. Currently i have a MFI device and i can pair it with my ipad(ios 5.1) in settings-General-Bluetooth. But i dono how to do it via code. External Accesory framework only shows devices that are already paired, is it possible to pair the accesories with my ipad programatically?? Please help...
Re: BT Accessory
No the user must pair the devices. Once paired you can get notifications for connection and disconnection. I have an external coming quite soon that covers the external accessory framework.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: BT Accessory
... one of the many limitations imposed by strongs Apple security rules
Guglielmo

Guglielmo
Re: BT Accessory
Just announced mergAccessory! Check it out at http://mergExt.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/