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.3.tar.gz (2.4 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.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for micropython-consentiumthings-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4a6f14791b51839b664e5260880b17ea8d2ed25125c35b011229098dfe1c1dbc
MD5 a77b0b8dfadd42557b7bc932baddaed7
BLAKE2b-256 d49059919bbac932c008753f3caef71838ea40b9983333b03e468da4d2c26823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for micropython_consentiumthings-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b97df038f2ace7384bb98a3290104835815188828241d82b8e811c36d894b4
MD5 d6d7f670a7a4e0eb1562cdd8fa4c2373
BLAKE2b-256 6555a1c2a4024450f625f5d910b25347c08ef8f86bfd3bca28311dd81c6c7160

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