How to display value of block on screen


#1

i want to create my own device, and i don’t know how to display value of block on screen, such as time value of timer


#2

sorry, I can read Eglish only… Can you send me a English verion?


#3

Hi duongthelongnv,

Please try this:

In the extension builder, please first check the option:

“This block comes with a checkbox for reading value”

Then in the “love mode handler” section, please return something (like a string, you can also pass in variables) in the code:

And now it will work (if the device is connected):

Please make sure your device is connected, and only in that mode, the live mode handler will work.

Best,

Allen