Blynk Simple Demo: Example code doesn’t run!

Good Morning.

I’m trying to use Blynk again, including it in the code I’ve been currently writing.

I’ve been using Blynk one year ago in Arduino IDE.

Now there’s the new Blynk platform and I’m using VSCode/PlatformIO. I’m trying to insert Blynk in a project which already in very advanced phase.

I’m starting with Blynk example code, trying to include it in my project, and I get this error message repeating every 10 seconds:

``

[E][WiFiClient.cpp:463] available(): fail on fd 56, errno: 11, “No more processes” [E][WiFiClient.cpp:463] available(): fail on fd 57, errno: 11, “No more processes”

And it doesn’t connect.

What could be the reason?

Thank you.
Regards, Ciro

Hey there,

You’re not providing enough information.
Are you using blynk IOT ?
What is the board you’re using ?
Post your sketch, etc…

Hello John.

I’m not sure. I’ve been accessing through
https://blynk.cloud/dashboard

I’m using a LilyGo TTGO T3 V2.1.6, with OLED, LoRa and SD Card. It’s microcontroller is a ESP32 Pico D4.

My sketch is now 1650 lines long, written in VSCode / PlatformIO. Maybe we can start filtering through the libraries included:

#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_GrayOLED.h>
#include <ESPAsyncWebServer.h>
#include <ESP32FTPServer.h>
#include <BlynkSimpleEsp32.h>
#include <LoRa.h>
#include <SD.h>
#include <SPIFFS.h>
#include <time.h>

Please ask whatever you find relevant.

Thank you very much.
Regards, Ciro

@Ciro_Bruno please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

I don’t know how you think that providing a list of software libraries is going to allow anyone to help you to resolve this issue.

Pete.

Ok, done. Good to know that.

I belive there might be known conflicts between Blynk and some of the most popular libraries.
All Blynk related instructions have been copied from the standard example.
Would you like to see all the 1650 lines?
In fact I’m not sure I’m allowed to share the complete version of this code, since it’s part of a customer’s project.

Thank you.
Regards,
Ciro.

I’m not aware of any “known conflicts”.

Which “standard example” are you referring to?
Are you using the Blynk Edgent sketch?

Pete.

So the title that you gave this topic is “Blynk Simple Demo: Example code doesn’t run!”

Are you saying that the demo sketch doesn’t work for you as it stands, or that it doesn’t work after you’ve added an additional 1571 lines of code?

Pete.

1 Like

Case it realy matters for obtaining any help to solve my problem, please suggest yourself a better description.

Thanks

Buddy, your answer is not related to the question he asked. If you would like to solve your problem, you should provide more details please.

@PeteKnight is right, we can’t help you without more information.
You have to provide your sketch, even if it contains 1500 lines, not only the include libraries
We are all volunteers , not from Blynk staff.
I suggest you to transfer your code on Arduino ide , I used VSCode/PlatformIO in the past and I often got issues

I would, if I understood the issue, but so far we’ve just seen conflicting information about the issue.
Your code appears to be top secret, so I’d say that obtaining help to solve your problem is going to be very difficult for you.

I’d suggest that you start by running the example sketch that you linked to and ensuring that this runs in its original form, then gradually adding-in functionality as you progress and testing at each stage until you identify which part of your code breaks the project.

Pete.

Thank you @Blynk_Coeur . I can recall the last time I’ve used Blynk. It wasn’t suitable for the latest version of Arduino IDE. At that time I was using Arduino IDE PRO and I had to install na earliest version, such as 1.8.10 or 1.8.11, I guess.

This is exactly what I mean by “known conflict” or “known issue”. Looking at my report, within a blink, you tell me:

Migrating back to Arduino is not not an option now. By the launch of Arduino IDE 2.0, the support to ESP32 SPI Flash File Systems has been interrupt. As this is a very important resource for this project, I had to migrate toward VSCode.

Moreover, It’s too late now. There’s already a lot of work and learning employed up to now in VSCode and I can’t afford the time to adapt it all, running risks of functionality and stability in order to apply an fancy but unnecessary feature like Blynk.

Your advise has led me to an important decision, which is leaving Blynk for the next project. Next time, I’m gonna ask first.

Thank you very much.
Regards,
Ciro.

1 Like

Please take it by another point of view. This code isn’t mine.

Me and my partner have been hired to assemble a tailor made solution. I would take care of electronics circuitry and my partner of firmware and application software. My partner, unfortunately, has passed away due to COVID. Then I’ve called other specialist for taking over the application software. But It wouldn’t be feasible to do the same for firmware. That’s why I’m taking care of this.

Since the customer is the true owner of all the technology involved, I can’t myself decide about sharing something that is his property.

The way I found to get on track of understanding the issue and fixing it was by asking in more generic way. People who are used to make use of Blynk together with the libraries and platform I’m using would be able to advise me like @Blynk_Coeur did.

I’m just trying to solve this problem within the limitations I have.

Thank you.
Regards,
Ciro

1 Like

I’m pretty sure the example code works “as is”. I believe Blynk wouldn’t publish it otherwise. However it’s useless for me. This example code includes a comment:

  // You can inject your own code or combine it with other sketches.

I’ve tried to do the opposite way, because there are already 12 interdependent tasks that won’t run separately.

Any missing part of the code would make it break somewhere in the first few seconds.

The code clearly does work, under certain circumstances.
Whether it works with your hardware, your version of the Blynk library, your IDE and associated choice of settings and your internet service provider are variables that are beyond Blynk’s control.
It’s always a good idea to go back to basics and test the example sketch with your particular set of circumstances.

Pete.

1 Like

I’ll take your advise this evening.

Thank you.
Regards