[SOLVED] OSError: [Errno 19] ENODEV

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
pmulvey
Posts: 45
Joined: Sun Jul 29, 2018 8:12 am
Location: Athlone, Ireland

[SOLVED] OSError: [Errno 19] ENODEV

Post by pmulvey » Tue Oct 29, 2019 3:56 pm

I had perfectly good code addressing an I2C device, then it start raising the "OSError: [Errno 19] ENODEV". After pulling this code asunder I eventually discovered that my I2C device wasn't responding or had come off the I2C bus. Reconnecting it solved the problem. I seems that this error is thrown when you use i2c.writeto with a non-existent address. Having Googled it, it appears that any number of other things can raise the error as well... not very useful.

Just my attempt to protect the sanity of micropython hackers!
Paul Mulvey

Post Reply