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

Function initializeRadios

VScode Platformio/src/blejammer.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void initializeRadios() {
81 if (currentMode == BLE_MODULE) {
82 if (radio1.begin()) {
83 configureRadio(radio1, BLE_channels, sizeof(BLE_channels));
84 }
85 } else if (currentMode == Bluetooth_MODULE) {
86 initializeRadiosMultiMode();
87 } else if (currentMode == DEACTIVE_MODE) {
88 radio1.setChannel(0);
89 radio2.setChannel(0);
90 radio3.setChannel(0);
91 delay(100);
92 }
93}
94
95void jammer(RF24 &radio, const byte* channels, size_t size) {
96 const char text[] = "xxxxxxxxxxxxxxxx";

Callers 2

checkModeChangeFunction · 0.70
blejammerSetupFunction · 0.70

Calls 2

configureRadioFunction · 0.70

Tested by

no test coverage detected