Обмен данными между двумя ESP8266, хоть как то

Так и знал что это код нельзя показывать…
Жаль что никакой on-line переводчик не сможет выразить тех эмоций, которые я сейчас испытываю. Нет, я всё сказанное понял, спасибо за ответ. Только теперь вообще ничего не понятно.
Вероятно это значит что если сейчас просто ничего не работает, то через 4,5 месяца вообще ничего работать не будет. Я конечно не уверен как у вас там всё устроено, но помогло это мало чем.

You could obviously put some time and effort into getting Bridge working correctly in Legacy, and there are many topics on this forum that explain how to do that.
However, this will stop working on 31st December, and as Bridge doesn’t work in Blynk IoT, so the time and effort you put into this would be wasted.

That’s why you either need to stick with Legacy and set-up a local Legacy server (which isn’t something I’d recommend) or move to Blynk IoT.

Pete.

1 Like

What is it Blynk IoT?

It’s the new version of Blynk…

Pete.

So I use that alredy long time. And what we tolking about?

Well, you talked about local server, which is Legacy not IoT, and Bridge, which is also Legacy and not IoT.

Posting code snippets, and not providing the information about which version of Blynk you are using - which is requested when you create a topic, means we have to make assumptions, and everything you’ve posted leads to the assumption that you are using Legacy not IoT.

If you want to transfer data from a salve device to a master in IoT the. You can use Automations in some situations.
If Automations don’t provide the functionality you’re looking for then the HTTP(S) API can be used to simulate the Bridge functionality of Legacy…

and…

Pete.

Ok. That is good. Now maybe U can call some one, who can expain me somesing?

I don’t understand.

Pete.

Что мне делать с этим?
Как заставить обмениваться данными между двумя ESP8266, одна из которых подключена к Blynk?

Both of the ESPs will communicate via the Blynk server.
They don’t talk to each other directly.

Pete.

That’s a good thing. Thank you so much for answering me. Can you show me a simple example? Which libraries need to be downloaded/updated? What should be declared and initialized in both controllers? I, at this point, have no idea where to start.

P.S. Looks like I get it. Is it equivalent to a GET request from the web browser’s address bar?

It’s all in the links I provided.

Correct.

Pete.

Could You just give me link with exammles?
I understand what you’re talking about. That’s what I need. But I can’t do anything practical… I don’t know what to write.
https://github.com there are no examples on the topic of blynk-server.

I’d suggest that you post your code and the actual full compiler error message, not just as partial screenshot.
You also need to clarify whether you’re trying to compile this for an ESP8266 or ESP32.

Pete.

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
void api_bridge(String token, int virtual_pin, float value_to_send) { 
  HTTPClient http; 
  String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
}
void setup() {
Blynk.begin(auth, ssid, pass);
}
void loop() {
  Blynk.run();
...
if(...) { api_bridge(auth, V16, valv); }
...
}

Both ESP8266.

Arduino: 1.8.9 (Windows 7), Плата:“NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”

Boiler:195:38: error: extended character “ is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
Boiler:195:54: error: extended character ” is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
Boiler:195:68: error: extended character “ is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
Boiler:195:76: error: extended character ” is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
Boiler:195:105: error: extended character “ is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
Boiler:195:115: error: extended character ” is not valid in an identifier
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send)
| ^
exit status 1
extended character “ is not valid in an identifier

Этот отчёт будет иметь больше информации с
включенной опцией Файл → Настройки →
“Показать подробный вывод во время компиляции”

Okay, that appears to be caused by using the wrong quotation mark symbols.

This … "

is the correct symbol. The compiler doesn’t recognise “ or ” as being valid quotation mark symbols.

Pete.

Yes you are right. I don’t know how I didn’t notice it.
Which library do I need to include?
Boiler:194:3: error: ‘HTTPClient’ was not declared in this scope
194 | HTTPClient http;
| ^~~~~~~~~~
Boiler:195:24: error: ‘server_name’ was not declared in this scope; did you mean ‘server_path’?
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send);
| ^~~~~~~~~~~
| server_path
exit status 1
‘HTTPClient’ was not declared in this scope

It’s all in the link I provided…

Pete.

what link are You always talking about?

Boiler:195:24: error: ‘server_name’ was not declared in this scope; did you mean ‘server_path’?
195 | String server_path = server_name + “update?token=” + token + “&pin=v” + String(virtual_pin) + “&value=” + float(value_to_send);
| ^~~~~~~~~~~
| server_path
exit status 1
‘server_name’ was not declared in this scope; did you mean ‘server_path’?

The two links in post #8 - the original one for the ESP32 and the second one which modifies that code to work for the ESP8266 in an Edgent sketch.

You’ve clearly followed at least one of them as you’ve copied pieces of my code from there - and created some issues for yourself in the process by not copying all of the relevant pieces.

This error is caused because you didn’t bother to copy the line that begins String server_name =

Pete.