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
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad5dc72b031aa1b839fa36fe8f1a3d8f37476402246b2edc659d88d969a4ccb2 |
|
MD5 | 5f9cf7b0e55529b3f983bc4389e66367 |
|
BLAKE2b-256 | 79a140b2c02e9c16e686beee1d69d5bcd9358ef1fe34bd3fe11c47dc6074840c |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb166b50ae3e59df96e9ce32d0c292149b7a0f1f29664449ea9ecfcc23b87933 |
|
MD5 | c06748b668faa6286b6a5bc54913ba5f |
|
BLAKE2b-256 | d696deb51d6d2429a6caa761ecd40a9a15d8171524772f47dc14ccd3f70d0f11 |