-
Notifications
You must be signed in to change notification settings - Fork 22
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
Modem.connect(apn='') issue #9
Comments
Hi @Martijn21c , the problem with generic AT errors is that they are.. well, generic errors :) Usually, the modem does not provide much more information in these cases, and debugging is hard. However, you can try running with the logger on and set to the DEBUG level in order to get some more context. |
If your APN uses username and password, the module won't connect with the current code. I modified sim800L.py and added the following
then add username and pass parameters to the connect() function
and call the two AT commands above, right after set APN command
In the actual code you can call the connect function as follows
After the above changes, my module connects ok. |
Thanks for the feedback @varna9000! Why don't you create a pull request with these few lines of code to get the credit you deserve for adding this functionality? |
@sarusso Thanks, will do. |
Hi,
When I try this code the error popping up on the step modem.connect(apn='iew.be')
Traceback (most recent call last):
File "", line 16, in
File "SIM800L.py", line 293, in connect
File "SIM800L.py", line 276, in get_ip_addr
File "SIM800L.py", line 183, in execute_at_command
GenericATError: Got generic AT error
I use a LILYGO ESP32 with SIM800L.
The text was updated successfully, but these errors were encountered: