Skip to content

Initial port of BLEPeripheral style API to CurieBle library #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

sandeepmistry
Copy link
Contributor

Initial port of the BLEPeripheral API to the CurieBle library.

Changes also include:

  • Internal updates to allow for no limit on the number of services, characteristics, and descriptors that can be added to the peripheral.
  • The buffers used for characteristic and descriptor values are not dynamically allocated.
  • keywords.txt file added for syntax highlighting support in the Arduino IDE.

Example updates:

  • BatteryMonitor updated to Arduino example style
  • Added 3 new LED based examples (LED, LED callback, LED with button)
  • AutomationIO example has been removed as it was to complex of an example for the targeted user base. The new LED examples cover how to achieve the same goal with a single pin.

Notes:

  • There is no services changed characteristic, so iOS will cache previous services and characteristics when they change in a sketch upload. Turning Bluetooth off and then back on again in iOS clears the cache. I believe a fix for this is needed on the firmware side. (This was already an issue with the previous version of the library).
  • Some of the BLEPeripheral API's have not been ported over as they will require support on the nRF firmware. They can be added in a later release.

cc/ @tigoe @hbisby @facchinm

Make addPrimaryService and getState API’s private. As well as,
BleService::addCharacteristic, BleService::addSecondaryService, and
BleCharacateristic::addDescriptor.
…nto BleCharacteristic even handers, remove BleAck event for now
sandeepmistry and others added 27 commits December 4, 2015 12:14
Note: IMU Library API still needs to be standardized.
@bigdinotech
Copy link
Contributor

@sandeepmistry looks great thanks!
@calvinatintel please merge

calvinatintel added a commit that referenced this pull request Dec 7, 2015
Initial port of BLEPeripheral style API to CurieBle library
@calvinatintel calvinatintel merged commit 51c7f7d into arduino:master Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants