Skip to content

Commit 7dd2a02

Browse files
authored
Update BLEDevice.h
1 parent f6f6e10 commit 7dd2a02

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/BLEDevice.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ class BLEDevice {
9393
BLECharacteristic characteristic(const char * uuid) const;
9494
BLECharacteristic characteristic(const char * uuid, int index) const;
9595

96+
/**
97+
* Enable advertising on Coded PHY (long range).
98+
* Must be called after BLE.begin() and before BLE.advertise().
99+
*/
100+
void enableCodedPHYAdvertising(bool enabled = true);
101+
102+
/**
103+
* Set advertise and connection transmit power (in dBm, max +4 for Nano 33 BLE Rev2).
104+
*/
105+
void setTxPower(int8_t dbm);
106+
96107
protected:
97108
friend class ATTClass;
98109
friend class GAPClass;

0 commit comments

Comments
 (0)