Blynk to connect with Raspberry Pi 3

I’m stuck on how to use Blynk.run() in my python program. I see that many examples uses Blynk.run() in a loop, but if I use this method, my hardware program could not work as it will always loop the Blynk.run(). Any alternatives to use Blynk.run() or any other method and at the same time, running my hardware program…?

Blynk.run() needs to be looping constantly.
It is constantly talking to the Blynk server to check for any inputs that have occured via the app or the API. If that communication and handshake is lost then the library will disconnect from the Blynk server and the app will show that the device is offline.

Pete.

Any alternative to keep the connection stable and the hardware program running? instead of using Blynk.run() in a while True loop, is there any other methods?

How are you running things? Would it be possible to separate things from the Pi and offload on the a simple ESP device or something?