//..............................................................................
//
// The example below defines an infinite loop which sends packets with
// ever-incrementing index. Don't let the *infinite* part scare you -- you can
// always abort the execution of a script with the 'Stop' button.
//
//..............................................................................

void main() {
	connect();

	for (size_t i = 0;; i++) {
		char const* p = $"packet $i\r\n"; // perl-like interpolating literals
		transmit(p); // omitting length means, use strlen()
		sys.sleep(1000); // wait one second and repeat
	}
}
