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.0b4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

ws_sim868-1.0.0b4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ws_sim868-1.0.0b4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ws_sim868-1.0.0b4.tar.gz
Algorithm Hash digest
SHA256 ad5dc72b031aa1b839fa36fe8f1a3d8f37476402246b2edc659d88d969a4ccb2
MD5 5f9cf7b0e55529b3f983bc4389e66367
BLAKE2b-256 79a140b2c02e9c16e686beee1d69d5bcd9358ef1fe34bd3fe11c47dc6074840c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ws_sim868-1.0.0b4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for ws_sim868-1.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 fb166b50ae3e59df96e9ce32d0c292149b7a0f1f29664449ea9ecfcc23b87933
MD5 c06748b668faa6286b6a5bc54913ba5f
BLAKE2b-256 d696deb51d6d2429a6caa761ecd40a9a15d8171524772f47dc14ccd3f70d0f11

See more details on using hashes here.

Supported by

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