Skip to main content

Python package to control the Waveshare GSM/GPRS/GNSS Pi HAT

Project description

ws_sim868

Interface module for the Waveshare GSM/GPRS/GNSS Pi Hat

PyPI - License GitHub Actions Workflow Status PyPI - Version

Features

  • HTTP GET and POST requests
  • Automatically start Modem if turned off
  • Receive GNSS Location

Instalation

pip install ws-sim868

Overview

Examples:

HTTP Get Request

from ws_sim868.modemUnit import ModemUnit
import time

if __name__ == "__main__":
    m = ModemUnit()
    m.apn_config('super', '', '')
    m.network_start()
    res = m.http_get("http://example.com")
    print(res)

    while True:
        time.sleep(0.5)

Get Location

from ws_sim868.modemUnit import ModemUnit
import time

if __name__ == "__main__":
    m = ModemUnit()
    m.gnss_start()

    while True:
        time.sleep(3)
        print(m.get_gnss_loc())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ws_sim868-1.0.0b8.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ws_sim868-1.0.0b8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file ws_sim868-1.0.0b8.tar.gz.

File metadata

  • Download URL: ws_sim868-1.0.0b8.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for ws_sim868-1.0.0b8.tar.gz
Algorithm Hash digest
SHA256 17beda0a88f9fd0387a409f882967ac54a8efd1f73da3e1229712e40a8b58c47
MD5 d2eb6e497e10aa6d310c19b5ed4e1423
BLAKE2b-256 b9b35ca3d36efee46f6c3ce4c38ab70abc42dccce8df5833b089dd8474660395

See more details on using hashes here.

File details

Details for the file ws_sim868-1.0.0b8-py3-none-any.whl.

File metadata

  • Download URL: ws_sim868-1.0.0b8-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for ws_sim868-1.0.0b8-py3-none-any.whl
Algorithm Hash digest
SHA256 0d557f7fe3a48e69b53c4c4fc6dcb528ab63b5e737f0181865f13c39f94685a0
MD5 ffb64a274f98c2fb2ef731f885bfb547
BLAKE2b-256 772d756f2e56a2e05169075eb29ed85ffd59eb18c4b14fe850ce2f7246637cd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page