Skip to content

Commit c236092

Browse files
committed
Don't advertise the device appearence
1 parent 661fc89 commit c236092

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

libraries/CurieBle/src/BlePeripheral.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,6 @@ BlePeripheral::_advDataInit(void)
263263
*adv_tmp++ = BLE_SVC_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
264264
_adv_data_len = 3;
265265

266-
if (_appearance) {
267-
/* Add appearance */
268-
adv_tmp = &_adv_data[_adv_data_len];
269-
*adv_tmp++ = 3;
270-
*adv_tmp++ = BLE_ADV_TYPE_APPEARANCE;
271-
UINT16_TO_LESTREAM(adv_tmp, _appearance);
272-
_adv_data_len += 4;
273-
}
274-
275266
if (_advertise_service_uuid) {
276267
BleUuid bleUuid = BleUuid(_advertise_service_uuid);
277268
struct bt_uuid uuid = bleUuid.uuid();

libraries/CurieBle/src/BlePeripheral.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ class BlePeripheral {
7878
BleStatus setLocalName(const char *localName);
7979

8080
/**
81-
* Set the broadcast appearance type for the BLE Peripheral Device
81+
* Set the appearance type for the BLE Peripheral Device
8282
*
8383
* See https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml
84-
* for available options. If not set, no appearance type will be specified
85-
* in broadcast information.
84+
* for available options.
8685
*
8786
* @param appearance Appearance category identifier as defined by BLE Standard
8887
*

0 commit comments

Comments
 (0)