Go Down

Topic: ESP8266 with ESP-NOW as an alternative to nRF24L01+ (Read 15277 times) previous topic - next topic

Robin2

To make it easy for people to help you please modify your post and use the code button </>


Code: [Select]
so your code looks like this and is easy to copy to a text editor. See How to use the Forum

Your code is too long for me to study quickly without copying to my text editor. The text editor shows line numbers, identifies matching brackets and allows me to search for things like all instances of a particular variable or function.

Also please use the AutoFormat tool to indent your code for easier reading.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

zoomx

Using the code tag the green highlight will be lost, I believe.

Robin2

Using the code tag the green highlight will be lost, I believe.
You are quite correct. But that is not an excuse for not using code tags.

A suitable comment can easily be included in a program.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

zoomx


lm317t

Hi Robin2!
how can i use you example for remote control?
can you write this example with the code for one button master
that to light the LED on the slave
for example:
for the master - pin buttons - 14
for the slave - pin LED - 2
i use WEMOS D1 mini Pro

Robin2

Hi Robin2!
how can i use you example for remote control?
I'm sure you can.

It's a long time since I wrote the program and I'm afraid I have forgotten all I had learned at the time so I am not able to provide any more assistance.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

joseben

EXAMPLE PROGRAMS
The following 2 pairs of examples are functionally similar to the first 2 examples in my Simple nRF24L01+ Tutorial

Simple one-way transmission from the controller to slave. I am presenting the slave code first because it is where the mac address is defined and the controller must use that address.

EspnowSlave.ino

Hey Robin, can you please tell me how I can send an array of 2 variables using this code of yours? I tried to make some changes but it doesn't work, please help me

Robin2

Hey Robin, can you please tell me how I can send an array of 2 variables using this code of yours? I tried to make some changes but it doesn't work, please help me
It's a long time since I wrote this so I may not be able to help. However until you post your program so I can see what you have tried I definitely can't.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

joseben

It's a long time since I wrote this so I may not be able to help. However until you post your program so I can see what you have tried I definitely can't.

...R
It's okay, I finally did manage to send the variables, instead of using an array, I used them as variables in the structure data.Its working just fine.

Thanks for the original code

Go Up