add comment for list of tx power
This commit is contained in:
1 parent
7b33ef973f
commit
76e745df8d
20 files changed
+40
-20
No files matched your search
@@ -23,7 +23,8 @@ void setup()
|
||||
|
||||
// Enable both peripheral and central
|
||||
Bluefruit.begin(true, true);
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Start Central Scan
|
||||
|
||||
+2
-1
@@ -27,7 +27,8 @@ void setup()
|
||||
|
||||
/* Enable both peripheral and central modes */
|
||||
Bluefruit.begin(true, true);
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
|
||||
/* Set the device name */
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
@@ -763,7 +763,8 @@ void setup()
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
// try to go as fast as possible, could be rejected by some central, increase it if needed
|
||||
// iOS won't negotitate and will mostly use 30ms
|
||||
Bluefruit.setConnInterval(9, 16); // min = 9*1.25=11.25 ms, max = 16*1.25=20ms
|
||||
|
||||
@@ -40,7 +40,8 @@ void setup()
|
||||
blinkTimer.start();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Set up and start advertising
|
||||
|
||||
@@ -44,7 +44,8 @@ void setup()
|
||||
Serial.println("It may appear up as 'Accessory' depending on your OS version.");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -80,7 +80,8 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -39,7 +39,8 @@ void setup()
|
||||
Serial.println("--------------------------\n");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Manufacturer ID is required for Manufacturer Specific Data
|
||||
|
||||
@@ -37,7 +37,8 @@ void setup()
|
||||
Bluefruit.autoConnLed(true);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
//Bluefruit.setName(getMcuUniqueID()); // useful testing with multiple central connections
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
@@ -22,7 +22,8 @@ void setup()
|
||||
Serial.println("--------------------------\n");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Set up and start advertising
|
||||
|
||||
@@ -40,7 +40,8 @@ void setup()
|
||||
Serial.println("It may appear up as 'Accessory' depending on your iOS version.");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -31,7 +31,8 @@ void setup(void)
|
||||
Serial.println(F("-------------------------------------------"));
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and start the BLE Uart service
|
||||
|
||||
@@ -26,7 +26,8 @@ void setup()
|
||||
Serial.println("---------------------------------\n");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Setup the advertising packet
|
||||
|
||||
+2
-1
@@ -42,7 +42,8 @@ void setup()
|
||||
Serial.println();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and start DIS (Device Information Service)
|
||||
|
||||
@@ -34,7 +34,8 @@ void setup()
|
||||
Serial.println();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and Start Device Information Service
|
||||
|
||||
@@ -36,7 +36,8 @@ void setup()
|
||||
Bluefruit.begin();
|
||||
// HID Device can have a min connection interval of 9*1.25 = 11.25 ms
|
||||
Bluefruit.setConnInterval(9, 16); // min = 9*1.25=11.25 ms, max = 16*1.25=20ms
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and Start Device Information Service
|
||||
|
||||
@@ -81,7 +81,8 @@ void setup()
|
||||
|
||||
// Init Bluefruit
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
|
||||
@@ -60,7 +60,8 @@ void setup()
|
||||
|
||||
// Init Bluefruit
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
|
||||
@@ -42,7 +42,8 @@ void setup(void)
|
||||
Bluefruit.autoConnLed(true);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
+2
-1
@@ -185,7 +185,8 @@ void setup()
|
||||
Serial.println("Bluefruit initialized (central mode)");
|
||||
}
|
||||
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
|
||||
/* Set the device name */
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
+2
-1
@@ -75,7 +75,8 @@ void setup()
|
||||
Serial.println("Bluefruit initialized (peripheral mode)");
|
||||
}
|
||||
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Set up and start advertising
|
||||
|
||||
Reference in new issue
Block a user