Skip to content

kalipsoaqua/blynk-hardware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

blynk-virtual-hardware

Works on Python 3

Install blynk client:

blynk = blynklib.Hardware()

Decorator @blynk.route(name, pin):

name - pin name, example: vr, vw, dw,dr,ar,aw

pin  - pin number, example: 1,2,3,...

Decorator @blynk.timer(timer):

timer - how many milliseconds to execute a function

Send to server:

blynk.send(name, pin, value)

blynk.sendarray({ 'vw': [(pin, val), (pin, val), (pin, val)],  })

blynk.sendarray({ 'aw': [(pin, val), (pin, val), (pin, val)],  })

blynk.sendarray({ 'dw': [(pin, val), (pin, val), (pin, val)],  })

Connect to Server BLYNK (True, False):

blynk.connect():

Log in to the server (True, False):

blynk.auth(TOKEN):

Run loop client:

while True:

    blynk.run()

About

Client HardWare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages