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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b878981aa754def3326036de3b3d47480ccef6a3e5a4151422491dc9b4e8f40 |
|
MD5 | 586fcdaf49ac30a163c75265a8a67e96 |
|
BLAKE2b-256 | 3fad188524b1ba632316633e4bb45165c7e6c53711f5757552f6ac21a63c7009 |