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.0b8.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17beda0a88f9fd0387a409f882967ac54a8efd1f73da3e1229712e40a8b58c47
|
|
| MD5 |
d2eb6e497e10aa6d310c19b5ed4e1423
|
|
| BLAKE2b-256 |
b9b35ca3d36efee46f6c3ce4c38ab70abc42dccce8df5833b089dd8474660395
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d557f7fe3a48e69b53c4c4fc6dcb528ab63b5e737f0181865f13c39f94685a0
|
|
| MD5 |
ffb64a274f98c2fb2ef731f885bfb547
|
|
| BLAKE2b-256 |
772d756f2e56a2e05169075eb29ed85ffd59eb18c4b14fe850ce2f7246637cd3
|