Skip to main content

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


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.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micropython_consentiumthings-0.0.4-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for micropython-consentiumthings-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dd94d4201ceb6bfbe8ed861fa6375197aea5e89032f854be2be7c22316bba1dc
MD5 4c62be535555d01c01c2b42ed9ca57bd
BLAKE2b-256 f4f445a8b9feac0179757c224440bbc7ae18b5d0bca91c31a9e501f620f694a0

See more details on using hashes here.

File details

Details for the file micropython_consentiumthings-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for micropython_consentiumthings-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2daccc8709c9bba355649d2557e9346fce15021845f502f2f33fd4ba3dfeed11
MD5 ccdbd893aa7115b8386a17b496184e91
BLAKE2b-256 3d9005e5f22be034527e242ec4bfb84304e8750a15575ae5ade0ca7cc26623a8

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