LAN

1. set up LAN named ()

Set up a LAN with a specified name

示例:

When HaloCode starts up, set up a LAN which named "mesh1".


2. join LAN named ()

Join the specified LAN named

示例:

When HaloCode starts up, set up and join a LAN named "mesh1".


3. broadcast () on LAN

broadcast a specific message on LAN

示例:

When HaloCode starts up, set up and join a LAN named "mesh1",and then broadcast "message" on LAN.

4. broadcast () on LAN with value ()

Broadcast the specified message with the specified value on LAN.

Example:

When HaloCode starts up, set up and join a LAN named "mesh1", and then broadcast "message" with the value "1" on LAN.


5. when receiving LAN broadcast ()

When the specified LAN broadcast is received, run the script.

Example:

When HaloCode receives LAN broadcast "message", all the LEDs will light up green.


6. LAN message () value received

Report the value sent with the specified LAN broadcast.

Example:

When HaloCode receives LAN broadcast "message", if the value received with the message is "1", all the LEDs will light up green.


results matching ""

    No results matching ""