MCPcopy Create free account
hub / github.com/cifertech/nRFBox / spooferSetup

Function spooferSetup

nRFBox_V2/spoofer.cpp:468–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466
467
468void spooferSetup() {
469
470 pinMode(deviceTypeNextPin, INPUT_PULLUP);
471 pinMode(deviceTypePrevPin, INPUT_PULLUP);
472 pinMode(advTypeNextPin, INPUT_PULLUP);
473 //pinMode(advTypePrevPin, INPUT_PULLUP);
474 pinMode(advControlPin, INPUT_PULLUP);
475
476 BLEDevice::init("AirPods 69");
477 esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P9);
478 updateDisplay();
479 BLEServer *pServer = BLEDevice::createServer();
480 pAdvertising = pServer->getAdvertising();
481
482 esp_bd_addr_t null_addr = {0xFE, 0xED, 0xC0, 0xFF, 0xEE, 0x69};
483 pAdvertising->setDeviceAddress(null_addr, BLE_ADDR_TYPE_RANDOM);
484 delay(500);
485
486}
487
488void spooferLoop() {
489

Callers

nothing calls this directly

Calls 1

updateDisplayFunction · 0.70

Tested by

no test coverage detected