Wi-Fi

 

1. connect to Wi-Fi () password ()

Connect to the specified Wi-Fi network.

1.png

 

Example:

2.png

When Halocode starts up, connect to Wi-Fi "Maker-guest".


2. Wi-Fi is connected?

If the Wi-Fi is connected, the report condition is met.

3.png

 

Example:

4.png

When Halocode starts up, connect to Wi-Fi "Maker-guest". If the Wi-Fi is successfully connected, all the LEDs will light up green.


3. recognize () for () seconds

Recognize the specified language (Chinese or English) for the specified seconds.

5.png

 

Example:

6.png

When the button is pressed, Halocode will recognize Chinese for 3 seconds.


4. speech recognition result

Report the result of speech recognition.

7.png

 

Example:

8.png

When Halocode starts up, if the speech recognition result includes "red", all the LEDs will light up red.


5. broadcast user cloud message ()

Broadcast the specified user cloud message.

9.png

 

Example:

0.png

When the button is pressed, Halocode will broadcast user cloud message "message".


6. broadcast user cloud message () with value ()

Broadcast the specified user cloud message with the specified value.

01.png

 

Example:

02.png

When the button is pressed, Halocode will broadcast user cloud message "message" with value "1".


7. when receiving user cloud message ()

When receiving the specified user cloud message, run the script.

03.png

 

Example:

04.png

When Halocode receives the user cloud message "message", all the LEDs will light up green.


8. user cloud message () value received

Report the value received with the specified user cloud message.

05.png

 

Example:

00.png

When Halocode receives the user cloud message "message", if the value received is "1", all the LEDs will light up green.


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.