Comments (4)
Is there an example of RF24 being used with WiFi?
See #936 (comment)
If you are trying to ask, "Can RF24 lib be used alongside WiFi lib?"
The answer is yes, but the WiFi radio will not talk with the nRF24L radio. Care should be taken when choosing what channel the nRF24L uses because WiFi radios do operate in the same spectrum of wireless frequencies.
from rf24.
RF24 should have no impact on WiFi usage.
if (radio.available()) //Looking for the data.
{
Serial.print("radio.available(): "); Serial.println(radio.available());
delay(1000);
radio.read(&data, sizeof(data)); //Reading the data
delay(10);
if (data == 1) {
radio.powerUp();
Serial.println("nRF24L01 powered up");
digitalWrite(relayPin, HIGH);
Serial.println("Battery power switched ON");
Serial.println("ESP32 wake from Deep Sleep\n\n");
delay(10);
}
Maybe I'm misunderstanding what it is you are doing, but you cannot receive data when the radio is powered down. You need the radio to be in active RX mode, and you can put the MCU to sleep, waking on an interrupt from the radio.
from rf24.
Soldered 100 uf 16 Volt Tantalum Capacitors to both nRF24L01+ transceivers.
Have a working Webserver with a nRF24L01 controlling a remote battery switch.
Prepared a under two minute video of processing web request for βCamera View.β Asyncwebserver request turns on switch by triggering a 60 second countdown timer and sends data = 1 to the first nRF24L01. Second nRF24L01 recevies data = 1; powers up the 2nd NRF24L0, turns on switch, wakes ESP32 from Deep Sleep (using External 0, RTC_GPIO wakeup pin). Process is reversed when 2nd nRF24L01 receives data = 2 from webserver's expired countdown timer.
nRF24L01 Webserver with Remote Switch
from rf24.
Thanks for your support.
from rf24.
Related Issues (20)
- Calling radio.available() after failed transmission when using writeFast or startWrite causes interrupt loop HOT 10
- 'make' errors, and RF24 on RPi, aarch64-linux-gnu HOT 18
- [Question] NRF24 Transmitter get "stuck" when powered from wall power outlet HOT 2
- RPi5 uses different gpio pin numbers (per Linux kernel update) HOT 48
- Radio.printDetails(); does nothing for MKR1010 but Radio.sprintfPrettyDetails(buffer); works fine???? HOT 4
- Pipe is sometimes returned at "255". HOT 15
- Is there a known ESP32 Deep Sleep issue with radio.powerDown()? [Question] HOT 19
- Can RF24 library be used with WiFi? HOT 2
- [Question] setChannel & setDataRate not read correctly by printPrettyDetails ? HOT 4
- ESP32 Core Panic on radio 0; No panic on Radio number 1, same wiring. How to troubleshoot?[Question] HOT 22
- Use Linux kernel's character device API to implement IRQ capability HOT 113
- [Question] R24.h, testRPD(void) "Strong signal > 64dBm" : "Weak signal < 64dBm" HOT 5
- [Question] Issue using the ManualAcknowledgements.ino HOT 11
- Multiple senders one receiver HOT 1
- reorganize examples HOT 5
- revise MRAA driver's GPIO
- Phasing out most Linux drivers HOT 1
- [Question] Address names used in examples problematic? HOT 8
- Library blocks 11 pin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rf24.