The Pico LTE SDK for MicroPython handles the cellular connection of the Pico LTE and Pico LTE 2, so that a program sends data in a few lines. Install it as in the quickstart; the source and the examples are in the pico_lte_micropython-sdk repository.
Features
- Applications: built-in connections to AWS IoT Core, Azure IoT Hub, ThingSpeak, Slack, Telegram, scriptr.io and the Google Sheets API, each in fewer than 40 lines of code.
- Modules: HTTPS, MQTTS and GPS, to build a connection where no application exists.
- Your own applications: new application modules on the SDK’s structure; see Contributing.
- Configuration: the connection parameters in one file,
config.json(Prepare Pico LTE configuration file).
Examples
- Prepare Pico LTE configuration file config.json and the parameters of each application.
- Pico LTE button, LED, PWM, Qwiic and NeoPixel The board’s own components, without the cellular connection.
- Send HTTP requests from Pico LTE GET, POST and PUT to Webhook.site.
- Publish and subscribe to MQTT from Pico LTE With MQTTHQ as the broker.
- Send message from Pico LTE to Telegram Through a Telegram bot.
- Send message from Pico LTE to Slack Through an incoming webhook.
- Send Pico LTE data to ThingSpeak over MQTT Publish to and subscribe to a channel.
- Send data from Pico LTE to scriptr.io To a script made with Creatr.
- Send GPS data The board’s position to a web server or Telegram.
- Connect Pico LTE to AWS IoT Core HTTPS to the device shadow, MQTT publish and subscribe.
- Connect Pico LTE to Azure IoT Hub MQTT to the device twin and cloud-to-device messages.
- Use Google Sheets API from Pico LTE Create spreadsheets, add, delete and read data.
Contributing
Report a problem or propose a feature as an issue in the repository, with all the details; the maintainers label it. Before you send code, read the contributing guidelines:
- Follow PEP 8, and check the code with a Python linter before the pull request.
- Write commit messages with the types
feat,refactor,fix,docsorchore, and title the pull request the same way. - Make many small commits: pull requests are squashed when merged.
- Test the change on a Pico LTE and report the result in the pull request.
- Explain the change in the pull request: why, a feature or a fix, what it changes, what else needs a change, and the results.
To add a service as a new application, start from examples/__sdk__/create_your_own_method.py, which shows the state manager model the applications use.