Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the example code...network issue #233

Open
shantanudasgupta opened this issue Mar 13, 2023 · 0 comments
Open

Cannot run the example code...network issue #233

shantanudasgupta opened this issue Mar 13, 2023 · 0 comments

Comments

@shantanudasgupta
Copy link

shantanudasgupta commented Mar 13, 2023

Hi,
I am trying the example code given as main.py. But it is terminating at the line
socket.getaddrinfo('micropython.org',80)[0][-1] with the following:
(1, 'Connected')
IP: 10.171.145.161
Connected !
Traceback (most recent call last):
File "", line 98, in
IndexError: list index out of range
Obviously there is a network connection error through PPPOS protocol.
I have a working SIM card with internet connection & the APN name setting also seems to be O.K
The network LED is flashing @ 1 sec and @3 sec alternately.
The responses:
(14576385) [PPPOS CLIENT]: status_cb: Connected
I (14576385) [PPPOS CLIENT]: ipaddr = 10.171.144.241
I (14576386) [PPPOS CLIENT]: gateway = 192.168.254.254
I (14576392) [PPPOS CLIENT]: netmask = 255.255.255.255
I (14576398) [PPPOS CLIENT]: ip6addr = ::
Any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant