pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

getaddrinfo generation OSError: no available NIC error #196

Open drummonds opened 6 years ago

drummonds commented 6 years ago

I am using a WIPU 2.0 board with firmware 1.19.0.b4 and the LittleFS (sysname='WiPy', nodename='WiPy', release='1.19.0.b4', version='v1.9.4-50f84dd on 2018-07-13', machine='WiPy with ESP32'

On a clean build using Pymakr Terminal:

import usocket
usocket.getaddrinfo("bbc.co.uk",23)

works. After a soft reset CTRL+D you get:

>>> usocket.getaddrinfo("bbc.co.uk",23)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: no available NIC

Using a hard reset CTRL+F you can go back to the start.

I expected this to work whether I had done a soft or a hard reset. I came across the problem trying to get the MQTT library to work and then reflashed the board to see if I could isolate it.

amotl commented 5 years ago

We are facing exactly the same issue with a FiPy on an expansion board. The FiPy is running

Pycom MicroPython 1.18.2.r3 [v1.8.6-849-a1641ca] on 2019-02-28; FiPy with ESP32