2014-01-29 90 views

回答

2

您可以使用Bluetooth Serial plugins可供IOS -

1)https://github.com/don/BluetoothSerial

2)https://github.com/KristinaHeyerdahlElfving/Bluetooth-Smart-Plugin/tree/master/Bluetooth%20Low%20Energy%20Plugin

還要檢查PhoneGap的藍牙串行插件Here

+0

第一個是將設備連接到arduino,第二個是太舊,phonegap3改變了他們的架構很多我必須更新這個插件,我將嘗試去做 –

+0

第一次使用所有串行藍牙設備的工作不僅僅是Arduino。我正在與其他設備一起使用 –

2

我最近建立了一個PhoneGap的3.0+ plugin那在Android和iOS上支持藍牙低功耗,這可能對您有益。它不支持配對,但它可以掃描設備,連接到設備,讀取數據等。

+0

我沒有爲我顯示任何設備。你測試過哪些設備? (目前正在測試Nexus 5到Nexus 4) –

+0

使用新iPad,新iPhone和Nexus 7進行測試。Nexus 4可能不會宣傳任何藍牙LE服務。 – randdusing