MicroPython IoT lib
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 = ""
ssid = ""
psk = ""
board = ThingsUpdate(key=api_key)
board.initWiFi(ssid,psk)
while True:
sensor_val = [1, 2, 3, 4, 5, 6, 7]
info_buff = ["a", "b", "c", "d", "e", "f", "g"]
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
Close
Hashes for micropython-consentiumthings-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ff28e4d46749dd56d0cb8b5408f23d33990518f9db178508e069f4bfce67c2 |
|
MD5 | b88d6d4cc44dc6d05680764d1b20f40d |
|
BLAKE2b-256 | ebca0640ea35f3f96e817af487401f2e4d83a3f8b2ff0a8958f1cfd76c08e7a4 |