Skip to main content

FLAG SET

Syntax​

FLAG SET <n>

Description​

Raises event flag n (1–64). Flags are a simple signalling mechanism between programs and between boards: a producer raises a flag with FLAG SET, a consumer reads it with FLAG TAKE (read and clear) or FLAG PEEK (read only). See Event Flags.

Response​

OK FLAG SET

Errors​

ReplyCondition
ERR FLAG SET bad_argMissing argument or flag outside 1–64.

Example​

flag_set.py
from hmcls_udp import Board

board = Board("192.168.1.11")
board.request("FLAG SET 3")