Hi, I want to send an int value from ESP 8266 to ESP 32 using the ESP NOW protocol.
But when I use this protocol (ESP NOW) in blynk I can not find any value
I can not access the variable sent by ESP 8266 when I use BLYNK
I’m sure my ESP NOW protocol is working properly because when I use the following code in ESP 32 everything is fine
Note: I can send commands from ESP 32 to ESP 8266 with this protocol. But I can not do the contrary
Note: If you want to test the code, change the MAC address and BLYNK_TEMPLATE_ID
Thank you. I basically want to set up a ds18b20 temperature sensor.
Read its value with ESP 8266. Transfer it to my ESP 32 with the ESPNOW protocol.
And display it on BLYNK
You CAN - Send from ESP32 to ESP8266 OK. And this ESP8266 can also communicate over WiFi with Blynk at the same time. In same sketch.
You CANNOT - send from ESP8266 to ESP32 when this ESP also is using WiFi to communicate with Blynk at the same time.
if so,
Q: Can you send to ESP8266 to ESP32 OK when you are NOT using Wifi to communicate with Blynk at the same time?
Why I ask?
It is not “just like that” to use ESP-Now and Wifi in same sketch and communicate at the same time with ESP8266 and ESP32.
It is possible - but it requires a few tricks.
In my systems I have ESP32’s receiving on ESP-Now from ESP32 and ESP8266 as well as communicating with Blynk over Wifi. I also have ESP8266’s receiving on ESP-Now from ESP32 and ESP8266 as well as communicating with Blynk over Wifi.
I have published a solution on GitHib. This solution is not communicating with Blynk (in this example) but it communicates over WiFi.
- If interested, you could have a look and try to understand the tricks to use to get it working.
// I only RECEIVE on ESP-Now on the device also using WiFi. I have never tried to also SEND on ESP-Now on same device using WiFi. Maybe this requires even more tricks. I don’t know.
Because the free panel can’t add more than two divais.
I want to connect multiple divas using the esp now protocol.
Note: If I add two divais, I can’t control them in one panel and I have to use two panels. And this is difficult for the user (come out of a panel and go to the next panel and …)
Currently, I can use this protocol to send information to other divas. (Send from esp32 to esp8266) but I can’t get information from other divais(Send from esp8266 to esp32 not done)
hello. Unfortunately, I can’t work with your code. Do you have a training video of your code?
(I’m weak in English, I don’t understand some of your explanations, sorry )
Thank you.
The simplest way is to use the HTTP(S) API to send data from multiple “slave” devices to one “master” device.
Example sketch for ESP32…
Example Sketch for ESP8266…
Obviously, in your situation your “slave” devices wouldn’t have any Blynk code or libraries in them, they’d just establish a WiFi connection then use the API to send data to Blynk.
yes. Your explanation is absolutely correct. I’ll check now.
I had worked with https protocol in an example, and I had a problem with the system being very slow.
I hope I can solve this problem with your explanations.
Thank you.
The HTTPS protocol is slower when you create the connection each time you want to write data, but HTTP is quite quick, as you’ll see if you read the topic in full.