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.0b2.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file ws_sim868-1.0.0b2.tar.gz
.
File metadata
- Download URL: ws_sim868-1.0.0b2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6450ea8db74b1e7d87d38751c82b68ab0805a67f9f56c919d816cdfa2ef3e2 |
|
MD5 | 51b54697343bf8491bd89270ee534243 |
|
BLAKE2b-256 | abb25b152f8d6237463860041137a5f799f46bd18f6c282bca2329d626ac0313 |
File details
Details for the file ws_sim868-1.0.0b2-py3-none-any.whl
.
File metadata
- Download URL: ws_sim868-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca36806c6837f60ad7920dac45bc199d40d7ff9e0294bdef09070c93d841be64 |
|
MD5 | bba2b7d3a38d632f08b5fa409c35a1f1 |
|
BLAKE2b-256 | 8839fae5b8af2caa1ed281436c38d0c8dffc0362a924f039774b040dfff6b82f |