Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python SDK for IoT device to work with IFRA IoT Platform

Notifications You must be signed in to change notification settings

ifraiot/ifra-python-sdk

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ifra-python-sdk

Install Package with pip

pip install ifra-sdk

Example Code

import ifra_sdk.client as ifra
import time


# Create new client
client = ifra.IfraSDK("<CHANNEL>","<DEVICE_ID>","<DEVICE_SECRET>")

counter=0
while True:
    
    #Append counter sensor
    client.addSensor("counter",'times', counter)

    #Send data
    client.send()

    #Sleep 1 sec
    time.sleep(1)  

    #Increase counter +1
    counter=counter+1

About

Python SDK for IoT device to work with IFRA IoT Platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.