Giter Club home page Giter Club logo

pico_lte_micropython-sdk's People

Contributors

aydanurkayalar avatar bisguzar avatar electricalgorithm avatar ensarkarabudak avatar mehmetcy avatar ozgurkaraaslan avatar selengalp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pico_lte_micropython-sdk's Issues

register_network() not responding when registering from Belgium/Europe

Hi,
I have registered and activated my PicoLTE asset on the SixFab.com (and provided the required payment to get a positive balance).

I was trying to get the MQTT example at work but I got a connection issue on the Network.

>>> from pico_lte.utils.status import Status
>>> from pico_lte.core import PicoLTE
>>> from pico_lte.common import debug
>>> picoLTE  = PicoLTE()

Now, the red LED turns ON, the blue LED blinks shortly every 2 seconds.

Then, I call the register_network() which doens't return.

>>> picoLTE.network.register_network()

Some additional tests

I did located the debug module but have not been able to get more information from it.

>>> picoLTE.network.get_apn()
{'status': 0, 'response': ['+CGDCONT: 1,"IPV4V6","super","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0', 'OK'], 'value': 'super'}

>>> picoLTE.network.get_operator_information()
{'status': 0, 'response': ['+COPS: 0', 'OK'], 'value': '0'}

>>> picoLTE.network.base.get_all_cells()
{'response': 'timeout', 'status': 2}

I noticed that get_all_cells() takes time to respond (about 1 or 2 minutes) before returning a timeout.
It seems that the QueCTEL module cannot get registered on the mobile network.

Is there an easy way to spy the atcom messages exchange with the QueCTEL module ?

Cheers
Dominique

Add authentication example / hint in http documentation.

When scrolling through the documentation for HTTP(s) connection, it took me a while and some digging on GitHub to find out how to connect to an endpoint using basic authentication. I thought adding the username password to config.json is sufficient.

BUT, you need to run picoLTE.http.set_auth() additionally to set authentication.

picoLTE = PicoLTE()

picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
picoLTE.http.set_auth()
picoLTE.http.set_server_url()

debug.info("Sending a POST request.")

Maybe this can be added to the documentation, since one will usually use authentication with an public endpoint

https://docs.sixfab.com/docs/pico-lte-http-request-to-web-server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.