Skip to content

Commit 76e745d

Browse files
committed
add comment for list of tx power
1 parent 7b33ef9 commit 76e745d

File tree

20 files changed

+40
-20
lines changed

20 files changed

+40
-20
lines changed

libraries/Bluefruit52Lib/examples/Central/central_scan/central_scan.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ void setup()
2323

2424
// Enable both peripheral and central
2525
Bluefruit.begin(true, true);
26-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
26+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
27+
Bluefruit.setTxPower(4);
2728
Bluefruit.setName("Bluefruit52");
2829

2930
// Start Central Scan

libraries/Bluefruit52Lib/examples/Central/central_scan_advanced/central_scan_advanced.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ void setup()
2727

2828
/* Enable both peripheral and central modes */
2929
Bluefruit.begin(true, true);
30-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
30+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
31+
Bluefruit.setTxPower(4);
3132

3233
/* Set the device name */
3334
Bluefruit.setName("Bluefruit52");

libraries/Bluefruit52Lib/examples/Peripheral/StandardFirmata/StandardFirmata.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,8 @@ void setup()
763763

764764
Bluefruit.begin();
765765
Bluefruit.setName("Bluefruit52");
766-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
766+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
767+
Bluefruit.setTxPower(4);
767768
// try to go as fast as possible, could be rejected by some central, increase it if needed
768769
// iOS won't negotitate and will mostly use 30ms
769770
Bluefruit.setConnInterval(9, 16); // min = 9*1.25=11.25 ms, max = 16*1.25=20ms

libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ void setup()
4040
blinkTimer.start();
4141

4242
Bluefruit.begin();
43-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
43+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
44+
Bluefruit.setTxPower(4);
4445
Bluefruit.setName("Bluefruit52");
4546

4647
// Set up and start advertising

libraries/Bluefruit52Lib/examples/Peripheral/ancs/ancs.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ void setup()
4444
Serial.println("It may appear up as 'Accessory' depending on your OS version.");
4545

4646
Bluefruit.begin();
47-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
47+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
48+
Bluefruit.setTxPower(4);
4849
Bluefruit.setName("Bluefruit52");
4950
Bluefruit.setConnectCallback(connect_callback);
5051
Bluefruit.setDisconnectCallback(disconnect_callback);

libraries/Bluefruit52Lib/examples/Peripheral/ancs_oled/ancs_oled.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ void setup()
8080
Serial.begin(115200);
8181

8282
Bluefruit.begin();
83-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
83+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
84+
Bluefruit.setTxPower(4);
8485
Bluefruit.setName("Bluefruit52");
8586
Bluefruit.setConnectCallback(connect_callback);
8687
Bluefruit.setDisconnectCallback(disconnect_callback);

libraries/Bluefruit52Lib/examples/Peripheral/beacon/beacon.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ void setup()
3939
Serial.println("--------------------------\n");
4040

4141
Bluefruit.begin();
42-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
42+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
43+
Bluefruit.setTxPower(4);
4344
Bluefruit.setName("Bluefruit52");
4445

4546
// Manufacturer ID is required for Manufacturer Specific Data

libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ void setup()
3737
Bluefruit.autoConnLed(true);
3838

3939
Bluefruit.begin();
40-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
40+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
41+
Bluefruit.setTxPower(4);
4142
Bluefruit.setName("Bluefruit52");
4243
//Bluefruit.setName(getMcuUniqueID()); // useful testing with multiple central connections
4344
Bluefruit.setConnectCallback(connect_callback);

libraries/Bluefruit52Lib/examples/Peripheral/blinky_ota/blinky_ota.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ void setup()
2222
Serial.println("--------------------------\n");
2323

2424
Bluefruit.begin();
25-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
25+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
26+
Bluefruit.setTxPower(4);
2627
Bluefruit.setName("Bluefruit52");
2728

2829
// Set up and start advertising

libraries/Bluefruit52Lib/examples/Peripheral/client_cts/client_cts.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ void setup()
4040
Serial.println("It may appear up as 'Accessory' depending on your iOS version.");
4141

4242
Bluefruit.begin();
43-
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
43+
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
44+
Bluefruit.setTxPower(4);
4445
Bluefruit.setName("Bluefruit52");
4546
Bluefruit.setConnectCallback(connect_callback);
4647
Bluefruit.setDisconnectCallback(disconnect_callback);

0 commit comments

Comments
 (0)