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

UDP Packet Transmission, SYSLOG

Streams JSON packets to a UDP/syslog target once per second.

// UDP Stream Example

while(run()){

      let payload = {
      batteryVoltage: 15.3,
      uptime: now()
    };

	udp.send("http://192.168.5.159:2115",string(payload));
	waitMS(1000);
}