Skip to main content

MONITOR_ON / MONITOR_OFF

Syntax​

MONITOR_ON or MONITOR_OFF

Description​

Turns the periodic CPU telemetry on or off. While it is on, the device writes a telemetry line about once per second on its serial output (not on UDP). The lines are shown in the serial monitor section of the Serial Terminal panel, which can also plot them.

Each line has the form:

<index> <name> (<unit>): <value>

for example 12 CPU_idle (percent): 63.10.

Response​

OK MONITOR_ON
OK MONITOR_OFF

Example​

monitor.py
from hmcls_udp import Board

board = Board("192.168.1.11")
board.request("MONITOR_ON") # open the serial monitor of the app to watch the telemetry
# ...
board.request("MONITOR_OFF")