A MicroPython library for send sensor data to ConsentiumThings IoT server
Project description
ConsentiumThingsPy
Passing tests on ESP 8266 and ESP 32
Developed by Debjyoti Chowdhury from ConsentiumInc
Installing dependencies and main library
import upip
import network
station = network.WLAN(network.STA_IF)
station.active(True)
station.connect("", "")
station.isconnected()
print(station.ifconfig())
upip.install('micropython-urequests')
upip.install('micropython-consentiumthings')
Examples of How To Use
Creating A Server
from ConsentiumThings import ThingsUpdate
import utime
api_key = ""
board = ThingsUpdate(key=api_key)
board.initWiFi("", "")
sensor_val = [1, 2, 3, 4, 5, 6, 7]
info_buff = ["a", "b", "c", "d", "e", "f", "g"]
while True:
r = board.sendREST(sensor_val=sensor_val, info_buff=info_buff)
print(r.text)
utime.sleep(5)
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
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 micropython-consentiumthings-0.0.3.tar.gz.
File metadata
- Download URL: micropython-consentiumthings-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a6f14791b51839b664e5260880b17ea8d2ed25125c35b011229098dfe1c1dbc
|
|
| MD5 |
a77b0b8dfadd42557b7bc932baddaed7
|
|
| BLAKE2b-256 |
d49059919bbac932c008753f3caef71838ea40b9983333b03e468da4d2c26823
|
File details
Details for the file micropython_consentiumthings-0.0.3-py3-none-any.whl.
File metadata
- Download URL: micropython_consentiumthings-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2b97df038f2ace7384bb98a3290104835815188828241d82b8e811c36d894b4
|
|
| MD5 |
d6d7f670a7a4e0eb1562cdd8fa4c2373
|
|
| BLAKE2b-256 |
6555a1c2a4024450f625f5d910b25347c08ef8f86bfd3bca28311dd81c6c7160
|