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 =
You appear to be referring to the code snippets from the top of this post…
These snippets of code outline a modification made to the full sketch that follows, because of a change in the way that the ESP8266 core works from version 3.0.x onwards.
Below these snippets of code, after the words “[END OF 14th January 2022 EDIT]]”, there is a full working Edgent .ino sketch.
If you aren’t able to take this working sketch and modify it to suit your purposes then I can’t really help you any further.
Для начала я пытаюсь заставить работать этот код по ссылке. Он компилируется, загружается, но ничего не делает. В порт приходит это и что ???
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v1.0.1 on ESP8266
Возможно из-за большого количества диалогов вы не правильно понимаете что я хочу сделать.
Мне надо на ESP8266, которая должна подключится к Wi-Fi, отправить в интернет вот такое: https://fra1.blynk.cloud/external/api/update?token={token}&v16=1
Больше мне ничего не надо, не в порт печатать (пины Serial заняты), не куда то ещё что то…
Кажется что функция api_bridge как раз это и делает вот именно это мне и надо.
Обязательно чтоб в папке со скетчем было всё это?
Скетч из примера компилируется, но если я вставляю весь это хлам в свой проект, выходит миллион ошибок. Это всё после обновления библиотеки на новую (3,0,3)
You need to provision the device via the app, by choosing “+ Add Device” and following the instructions.
If you don’t want the Edgent functionality in your sketch then you’re probably better taking the ESP32 example (which doesn’t use Edgent) and modifying it to work on the ESP8266 (not difficult if you compare the two sketches and read the January 14th 2022 update too.
Я кажется предельно просто сказал что мне нужно. Ещё раз повторю:
Мне нужно отправить эту строку https://fra1.blynk.cloud/external/api/update?token={token}&v16=1 в интернет. Я не знаю как проще объяснить это. В интернет браузере эта строка вставляется в адресную строку и нажимается клавиша “enter”. То же самое, и именно тоже самое, мне надо сделать на ESP6288. Если я не знаю как это сделать, то именно поэтому я обратился сюда за помощью. Как я могу знать нужен мне Агент или ещё что то? Я понятия не имею что или кто для этого нужен. Ну не знаю я как проще объяснить чтоб понятно было.
That’s exactly what my two code examples do, one uses the ESP32 HTTP Client and is a non-Edgent example. The other uses the ESP8266 HTTP client and is an Edgent example.
If you aren’t able to take these building blocks and use them for your own purposes then maybe you need to improve your C++ coding skills or pay someone to do the coding work for you?
In 1-2 weeks we’ll introduce “Forwarding automation” that will allow you to forward data between different devices that are connected to the Blynk server without coding. It’s some kind of bridge replacement.