Back to Index

Definition: lorasend(port, expr[:bits], ...) — Allowed: numeric port and numeric expressions; bits are integer literals; Not allowed: string args.

Sends values over LoRa with optional bit-width hints. First argument is the port; subsequent expressions are packed into the payload, each optionally followed by :bits to limit size (default 32).

Example

// Send two 16-bit readings on port 2
lorasend(2, ain(1):16, ain(2):16);