| 466 | |
| 467 | |
| 468 | void 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 | |
| 488 | void spooferLoop() { |
| 489 |
nothing calls this directly
no test coverage detected