Store the data from the terminal widget: Micropython Blynklib

Hi guys,

I am working on a small project in which I want to get some data (let say time duration for data acquisition from a sensor) from the terminal widget on Blynk app and want to store it in some other variable for further use.

import BlynkLib
import time
time.sleep(5)
auth = ‘BCf2gCpB20UyOofl3dUbeQcvFdwh8gFQ’
blynk = BlynkLib.Blynk(auth)
time.sleep(5)
blynk.virtual_write(0,"Strart data Collection(Y/N): ")

@blynk.on(“V0”)
def read(value):
print(value)
while True:
blynk.run()

I want to take this value from V0 pin and want to store in some variable.

Need help with this…

Thanks

@chandan_63, please edit your post and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.