Author Topic: Using BLEPeripheral library seems to be possible  (Read 613 times)

androticus

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Using BLEPeripheral library seems to be possible
« on: July 30, 2016, 08:19:17 PM »
Many people have asked about getting around the extremely limited functionality provided by the built in RFDuinoBLE.h library. Well some preliminary experimenting has indicated that the following full-featured BLE library works on the RFDuino. (It is designed for the underlying chip used in the RFDuino, which is also used on a number of third-party standalone boards.)

https://github.com/sandeepmistry/arduino-BLEPeripheral

Just note that the examples, you need to use UNUSED=-1 as the pin numbers for this call:
Code: [Select]
// create peripheral instance
///BLEPeripheral blePeripheral = BLEPeripheral(BLE_REQ, BLE_RDY, BLE_RST);
BLEPeripheral blePeripheral = BLEPeripheral(-1, -1, -1);

I copied and modified a simple sketch from Make: Bluetooth, and everything showed up and worked in LightBlue iOS app, as in the book. I didn't need to do anything else.

danlsk

  • RFduino Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Using BLEPeripheral library seems to be possible
« Reply #1 on: October 31, 2016, 10:15:17 PM »
Indeed, this library is very helpful to open up Nordic Soft Device API library. Sandeep Mistry has been tinkering with the S110 and found it working with RFduino.

On the other hand, Redbearlab BLE Nano nrf51822 has more comprehensive access of the Nordic library.