Blynklib and keyboardinterrupt:

Hi Blynkers,
After a hard reset I get the following error message from my ESP8266:

Traceback (most recent call last):
  File "main.py", line 25, in <module>
  File "BlynkLib.py", line 244, in run
  File "BlynkLib.py", line 241, in run
KeyboardInterrupt: 

MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>> 

The problem does not appear after a soft reset.
The program I am running does not seem to be affected by this error message

My blynklib library is in python, and I am using an ESP8266.

What is the reason I get this error message, regardless the content of my boot.py and main.py?

Cheers

https://www.google.com/search?q=KeyboardInterrupt

After a bit of Googling, it sounds more like a Python generated error message than a Blynk oneā€¦ basically saying, you interrupted its processing :stuck_out_tongue:

thanks Gunner,
The odd thing is this error appears only when the Blynklib is called.
I tested using a main.py with no calls to BlynkLib, and the error does not pop up. Tried this with several boot (from simpler to more complex ones) and the same with several main.py with the same result: no error message.
Checking BlynkLib, there is the following in lines 244 and 241. It seems to me the hard reset forces the except, bus a soft does not.

    def run(self):
        data = b''
        try:
            data = self.conn.recv(self.buffin)
            #print('>', data.hex())
        except KeyboardInterrupt:
            raise
        except: # TODO: handle disconnect
            pass
        self.process(data)

I admit I am mostly guessing here, but that code looks like error trapping?.. thus, it is simply responding to or acknowledging the reset, not causing it.

My gut feeling is pretty much the same.
I guess will have to live with that interruptionā€¦
thanks for your input.
cheers