Skip to content

Commit 8a24c2d

Browse files
committed
Update example
1 parent 5f8ebda commit 8a24c2d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ Blynk for Business: http://www.blynk.io
4040

4141
```py
4242
import BlynkLib
43-
import time
44-
45-
BLYNK_AUTH = 'YourAuthToken'
4643

4744
# Initialize Blynk
48-
blynk = BlynkLib.Blynk(BLYNK_AUTH)
45+
blynk = BlynkLib.Blynk('YourAuthToken')
4946

5047
# Register Virtual Pins
5148
@blynk.VIRTUAL_WRITE(1)
@@ -57,8 +54,8 @@ def my_read_handler():
5754
# this widget will show some time in seconds..
5855
blynk.virtual_write(2, time.ticks_ms() // 1000)
5956

60-
# Start Blynk (this call should never return)
61-
blynk.run()
57+
while True:
58+
blynk.run()
6259
```
6360

6461
## Installation

0 commit comments

Comments
 (0)