GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aroliant/biot-python-client: :corn: Aroliant IoT Python Client API

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
biot
biot
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
sample.py
sample.py
 
 

Repository files navigation

IoT Python Client

Prerequisites

First you need to install socket.io python client

pip install socketio-client

Usage

Now download the client.py file from biot and include that in your python file/project

from biot.client import BIoTClient

DEVICE_ID = 1 		# Your Device ID
DEVICE_TOKEN = "" 	# Your Access Token

client = BIoTClient("<Server IP Address>", <port>, params={'token': DEVICE_TOKEN})

client.wait(2) # Give some time to connect to Server

def lightUpdate(status):
    print("Light update received" ,status);
    if status == 'true':
        # Turn your Device ON
        pass
    else:
        # Turn your Device ON
        pass
	

client.on_update(1, 'status', lightUpdate)

client.wait()

Run the program using python -u sample.py

About

🌽 Aroliant IoT Python Client API

www.aroliant.com/iot/

Topics

biotiotiot-frameworkiot-platformiot-python-clientpythonsocket

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.