add setTxPower(4) to all sketches
This commit is contained in:
1 parent
ad4956f264
commit
f6a66d444a
16 files changed
+16
-1
No files matched your search
@@ -23,6 +23,7 @@ void setup()
|
||||
|
||||
// Enable both peripheral and central
|
||||
Bluefruit.begin(true, true);
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Start Central Scan
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ void setup()
|
||||
|
||||
/* Enable both peripheral and central modes */
|
||||
Bluefruit.begin(true, true);
|
||||
Bluefruit.setTxPower(4);
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
|
||||
/* Set the device name */
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
@@ -40,6 +40,7 @@ void setup()
|
||||
blinkTimer.start();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Set up and start advertising
|
||||
|
||||
@@ -44,6 +44,7 @@ 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
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -80,6 +80,7 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -39,6 +39,7 @@ void setup()
|
||||
Serial.println("--------------------------\n");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Manufacturer ID is required for Manufacturer Specific Data
|
||||
|
||||
@@ -37,6 +37,7 @@ void setup()
|
||||
Bluefruit.autoConnLed(true);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
//Bluefruit.setName(getMcuUniqueID()); // useful testing with multiple central connections
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
@@ -22,6 +22,7 @@ void setup()
|
||||
Serial.println("--------------------------\n");
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Set up and start advertising
|
||||
|
||||
@@ -40,6 +40,7 @@ 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
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
@@ -31,6 +31,7 @@ void setup(void)
|
||||
Serial.println(F("-------------------------------------------"));
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and start the BLE Uart service
|
||||
|
||||
@@ -42,6 +42,7 @@ void setup()
|
||||
Serial.println();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and start DIS (Device Information Service)
|
||||
|
||||
@@ -34,6 +34,7 @@ void setup()
|
||||
Serial.println();
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and Start Device Information Service
|
||||
|
||||
@@ -36,6 +36,7 @@ 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
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
|
||||
// Configure and Start Device Information Service
|
||||
|
||||
@@ -81,6 +81,7 @@ void setup()
|
||||
|
||||
// Init Bluefruit
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ void setup()
|
||||
|
||||
// Init Bluefruit
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ void setup(void)
|
||||
Bluefruit.autoConnLed(true);
|
||||
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Maximum TX power = 4 dBm
|
||||
Bluefruit.setName("Bluefruit52");
|
||||
Bluefruit.setConnectCallback(connect_callback);
|
||||
Bluefruit.setDisconnectCallback(disconnect_callback);
|
||||
|
||||
Reference in new issue
Block a user