Blynk

Connect to the Blynk service to realize control and data collection through the mobile App.

from IoTcloud import blynk

blynk1.disconnect()

blynk1.email('', '', '')

blynk1.tweet('')

blynk1.notify('')

blynk1.set_property(0, '', '')

blynk1.virtual_sync(0)

blynk1 = blynk.Blynk(token='xxxxxxxxxxxxxxxxxxxxxxxxxx')

def blynk_read_v3(v_pin,value):
  print(value)
  blynk1.virtual_write(v_pin, "Hello!")

blynk1.handle_event('read v3', blynk_read_v3)

while True:
  blynk1.run()
On This Page