Skip to content

Commit 8449265

Browse files
enable CurieBLE.setConnectionInterval
1 parent fbd7667 commit 8449265

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

examples/StandardFirmataBLE/StandardFirmataBLE.ino

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
See file LICENSE.txt for further informations on licensing terms.
2222
23-
Last updated March 13th, 2016
23+
Last updated June 15th, 2016
2424
*/
2525

2626
#include <Servo.h>
@@ -763,27 +763,10 @@ void setup()
763763

764764
stream.setLocalName(FIRMATA_BLE_LOCAL_NAME);
765765

766-
// setConnectionInterval is not available in the CurieBLE library included in the
767-
// Intel Curie Boards package v1.0.5 (latest version via the Boards Manager). Without
768-
// setConnectionInterval, the BLE reporting rate for analog input and I2C read continuous mode
769-
// will be very slow (150ms instead of 30ms).
770-
// However, you can manually update CurieBLE to get the functionality now. Follow these steps:
771-
// 1. Install Intel Curie Boards v1.0.5 via the Arduino Boards manager (use Arduino 1.6.7 or newer)
772-
// 2. Download or clone corelibs-arduino101: https://github.com/01org/corelibs-arduino101
773-
// 3. Make a copy of the CurieBLE directory found in corelibs-arduino101/libraries/
774-
// 4. Find the Arduino15 directory on your computer:
775-
// OS X: ~/Library/Arduino15
776-
// Windows: C:\Users\(username)\AppData\Local\Arduino15
777-
// Linux: ~/.arduino15
778-
// 5. From the Arduino15 directory, navigate to: /packages/Intel/hardware/arc32/1.0.5/libraries/
779-
// 6. Replace the CurieBLE library with the version you copied in step 3
780-
// 7. Comment out the #ifndef statement below and the following #endif statement
781-
#ifndef _VARIANT_ARDUINO_101_X_
782766
// set the BLE connection interval - this is the fastest interval you can read inputs
783767
stream.setConnectionInterval(FIRMATA_BLE_MIN_INTERVAL, FIRMATA_BLE_MAX_INTERVAL);
784768
// set how often the BLE TX buffer is flushed (if not full)
785769
stream.setFlushInterval(FIRMATA_BLE_MAX_INTERVAL);
786-
#endif
787770

788771
#ifdef BLE_REQ
789772
for (byte i = 0; i < TOTAL_PINS; i++) {

examples/StandardFirmataBLE/bleConfig.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* need a unique ble local name (see below). If you are using another supported BLE board or shield,
66
* follow the instructions for the specific board or shield below.
77
*
8+
* Make sure you have the Intel Curie Boards package v1.0.6 or higher installed via the Arduino
9+
* Boards Manager.
10+
*
811
* Supported boards and shields:
912
* - Arduino 101 (recommended)
1013
* - RedBearLab BLE Shield (v2) ** to be verified **
@@ -52,6 +55,9 @@ BLEStream stream(BLE_REQ, BLE_RDY, BLE_RST);
5255
/*
5356
* Arduino 101
5457
*
58+
* Make sure you have the Intel Curie Boards package v1.0.6 or higher installed via the Arduino
59+
* Boards Manager.
60+
*
5561
* Test script: https://gist.github.com/soundanalogous/927360b797574ed50e27
5662
*/
5763
#ifdef _VARIANT_ARDUINO_101_X_

0 commit comments

Comments
 (0)