Blynk - offline device

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
damjang
New user
Posts: 3
Joined: 02 Aug 2020, 21:29
Location: Slovenia

Blynk - offline device

#1 Post by damjang » 03 Aug 2020, 20:48

I am using a Blynk controller (local server and cloud) and a modul Wemos D1 mini.
The problem is because the Blynk app always shows that the device (Wemos D1 mini) is offline.

I can send data from ESP_Easy to Blynk and it also displays it correctly.
Communication from Blynk to D1 mini does not work. For example, I can't turn on the LED from the Blynk app.

If I program in Arduino and use <BlynkSimpleEsp8266.h>, Blynk signals that the D1 mini is successfully connected.
Communication also works in both directions. I can also turn on an LED or relay from the app.

What's wrong with ESP_Easy that communication isn't two-way? Does anyone have experience?

I used various older versions of ESP_Easy and also the latest version of ESP_Easy_mega_20200801.

Thanks for the help,
Damjan

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Blynk - offline device

#2 Post by ThomasB » 04 Aug 2020, 03:43

Reporting "offline" is normal behavior for ESPEasy's Blynk HTTP controller (C012). This controller sends a message to Blynk and then disconnects. So it is essentially offline.

There's an alternate Blynk controller (C015) that supports callbacks. I'm not sure, but it might do what you want. To use the alternate Blynk controller you will need to build a custom ESPEasy version with the C015 controller enabled. FWIW, I don't use Blynk so I can't offer any specific advice regarding the C015 controller.

- Thomas

damjang
New user
Posts: 3
Joined: 02 Aug 2020, 21:29
Location: Slovenia

Re: Blynk - offline device

#3 Post by damjang » 04 Aug 2020, 20:40

Thomas, thanks for the reply and help.
So I'm on the right track :)

I need a little more help. How do I build my ESPEasy version with Arduino?
I have tried Arduino before but the compiled .bin never contained the desired Plugins.
What is the right procedure?

Thanks,
Damjan

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Blynk - offline device

#4 Post by ThomasB » 04 Aug 2020, 22:58

I use VSCode Platformio. My ESPEasy build workflow is summarized as follows:

1. Download latest Mega Source Code and unzip.
2. Launch Platformio and Open the project's work folder.
3. Edit define_plug_sets.h: Directly under the CONTROLLER_SET_TESTING section, enable the USES_C015 controller.
4. Edit platformio.ini: Add the required board build to the default_envs section.
5. Build project.

- Thomas

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Blynk - offline device

#5 Post by TD-er » 05 Aug 2020, 00:59

Mwoah, not sure if you need to open an issue for it to make it compile again...
See this pull request: https://github.com/letscontrolit/ESPEasy/pull/3197

damjang
New user
Posts: 3
Joined: 02 Aug 2020, 21:29
Location: Slovenia

Re: Blynk - offline device

#6 Post by damjang » 24 Aug 2020, 20:31

Thanks for the custom build 20200812.
C015 Blynk works.
I tested it with Blynk-Cloud and it all worked.
I also made a local Blynk server with a Raspberry pi 3A + and tested the performance.
Blynk also works.

I would be very happy if the C015 Blynk was included in the test version as well.

Thanks again and thank you very much,
Damjan

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests