Anyway, if you need Bluetooth functionality the plugin provides the following method:
- listDevices
- isBTEnabled
- enableBT
- disableBT
- pairBT
- unPairBT
- listBoundDevices
- stopDiscovering
- isBound
Enjoy!
Update: Oh by the Hoary Hosts of Hogarth! I should mention that I didn't originate this plugin, I just saw the need for it to be updated. All credit should go the original authors: Daniel Tizón, Idoia Olalde and Iñigo González
Update: Oh by the Hoary Hosts of Hogarth! I should mention that I didn't originate this plugin, I just saw the need for it to be updated. All credit should go the original authors: Daniel Tizón, Idoia Olalde and Iñigo González
Nice plugin..
ReplyDeleteHi Simon,
ReplyDeletegreat job.
Do you have a shot example, how to send/receive data to a (paired) bluetooth device?
I'm using cordova 2.3.0 w/ android
thx
Hi Simon! Do you think that a serial port plugin to read data off USB is on the horizon?
ReplyDeleteI've looked into it and it seems complex.
Thakns!
@Unknown
ReplyDeleteI have no plans to do one right now.
@Abulafia
ReplyDeleteHopefully the device you are pairing with has an SDK but if not:
http://manojprasaddevelopers.blogspot.com/2012/02/bluetooth-data-transfer-example.html
Nice! works very well!! thanks!!
ReplyDeleteSir i want ask you , how can make widget with phonegap ?
ReplyDelete@blogger for study
ReplyDeleteYou would have to write it in native Android code. PhoneGap is a cross platform framework for creating apps and Widgets are pretty specific to Android.
Is it compatible with Bluetooth Smart?
ReplyDelete@Adrien Giboire
ReplyDeleteDon't see why not.
hi simon
ReplyDeletei m not able to download the GIT repo
https://github.com/phonegap/phonegap-plugins/archive/master.zip
@yoga surya
ReplyDeleteOkay, not sure what to tell you. The file downloads fine for me.