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 BLE_API by
Diff: GapAdvertisingData.h
- Revision:
- 31:2c94f0501807
- Parent:
- 27:4a83843f04b0
- Child:
- 34:da2ea8cd6216
--- a/GapAdvertisingData.h Fri Jan 17 14:25:29 2014 +0000
+++ b/GapAdvertisingData.h Tue Apr 01 11:04:56 2014 +0100
@@ -195,16 +195,18 @@
virtual ~GapAdvertisingData(void);
ble_error_t addData(DataType, uint8_t *, uint8_t);
- ble_error_t addAppearance(Appearance appearance = UNKNOWN);
+ ble_error_t addAppearance(Appearance appearance = GENERIC_TAG);
ble_error_t addFlags(Flags flag = LE_GENERAL_DISCOVERABLE);
ble_error_t addTxPower(int8_t txPower);
void clear(void);
uint8_t * getPayload(void);
uint8_t getPayloadLen(void);
+ uint16_t getAppearance(void);
private:
- uint8_t _payload[GAP_ADVERTISING_DATA_MAX_PAYLOAD];
- uint8_t _payloadLen;
+ uint8_t _payload[GAP_ADVERTISING_DATA_MAX_PAYLOAD];
+ uint8_t _payloadLen;
+ uint16_t _appearance;
};
#endif
