Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: nRF51Gap.h
- Revision:
- 56:a1071b629aa3
- Parent:
- 52:120bd37b9d0d
diff -r 1e5c300cec7f -r a1071b629aa3 nRF51Gap.h --- a/nRF51Gap.h Fri Jul 25 10:33:52 2014 +0100 +++ b/nRF51Gap.h Tue Sep 02 15:50:05 2014 +0100 @@ -45,7 +45,12 @@ const GapAdvertisingData &); virtual ble_error_t startAdvertising(const GapAdvertisingParams &); virtual ble_error_t stopAdvertising(void); - virtual ble_error_t disconnect(void); + virtual ble_error_t disconnect(DisconnectionReason_t reason); + + virtual ble_error_t setDeviceName(const uint8_t *deviceName); + virtual ble_error_t getDeviceName(uint8_t *deviceName, unsigned *lengthP); + virtual ble_error_t setAppearance(uint16_t appearance); + virtual ble_error_t getAppearance(uint16_t *appearanceP); void setConnectionHandle(uint16_t con_handle); uint16_t getConnectionHandle(void);