Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micropython-consentiumthings-0.0.9.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file micropython-consentiumthings-0.0.9.tar.gz.

File metadata

File hashes

Hashes for micropython-consentiumthings-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0537d5df780f8faf7364ce9dae978f2652dadd9e244906abc5915c7faf38563f
MD5 4e87a858e5a5d89c311c54181ca54fc1
BLAKE2b-256 d3bb3c9a4f852575522961595fd8b4160bae109cde276628e38811a90ac6de4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page