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.0b7.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.0b7.tar.gz.
File metadata
- Download URL: ws_sim868-1.0.0b7.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 |
b90b2f02ee985612e95a31df87aba8fc03d1b13a4e077a3bf673f226c78d72c8
|
|
| MD5 |
0b83b416d7039bf92ad9172f60f08142
|
|
| BLAKE2b-256 |
58dbb3116f29e6ac6fa65ffa3fb462d438e320204ec0dfea9b84e71395c779f3
|
File details
Details for the file ws_sim868-1.0.0b7-py3-none-any.whl.
File metadata
- Download URL: ws_sim868-1.0.0b7-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 |
06f2ab8c743e4a429ecdee768263087c948be4dd0a4f6e3c60d3ef8d54adc2ed
|
|
| MD5 |
d888e074684404ebfbb62adf10406d8f
|
|
| BLAKE2b-256 |
c9c0457c481f1076e4af99b34c2612738ecf52552734f71293040370a206616c
|