📦 Archived documentation: r1 (committed 2026-07-24) View current documentation →

Structured Event Logging

The extended five-argument form of log(): title, description, a numeric type for grouping, a priority, and an attached value — particularly useful when reporting to a Grafana / InfluxDB cloud backend.

// Log a message (useful when using Grafana / influxdb cloud backend)

log(
  "Title",
  "Description / Message",
  3,     // type, 0 to 255, used for grouping alarm types
  2,     // message priority (0..255) user definable or use builtin alm.ok alm.info alm.warn alm.crit
  23.43  // alarm value, numeric value attached to alarm, user settable
);

while(run()){

  waitMS(1000);

}