update code
This commit is contained in:
1 parent
1beef88ada
commit
eef021aec6
9 files changed
+42
-38
No files matched your search
@@ -52,16 +52,16 @@ void setup(void)
|
||||
|
||||
void setupAdv(void)
|
||||
{
|
||||
//Bluefruit.addAdvTxPower();
|
||||
Bluefruit.addAdvFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
|
||||
Bluefruit.addAdvTxPower();
|
||||
//Bluefruit.Advertising.addTxPower();
|
||||
Bluefruit.Advertising.addFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
|
||||
Bluefruit.Advertising.addTxPower();
|
||||
|
||||
// Include bleuart 128-bit uuid
|
||||
Bluefruit.addAdvService(bleuart);
|
||||
Bluefruit.Advertising.addService(bleuart);
|
||||
|
||||
// There is no room for Name in Advertising packet
|
||||
// Use Scan response for Name
|
||||
Bluefruit.addScanRespName();
|
||||
Bluefruit.ScanResponse.addName();
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
Reference in new issue
Block a user