on Received Buffer

Run part of a program when the Arcade receives a buffer over radio.

radio.onReceivedBuffer(function (receivedBuffer) {})

The data contained in receivedBuffer is put there as a data type. The data might be a number or a string. When using buffers though, the way the data is placed in the buffer must have a specific format. In particular, numbers must have a certain order when their individual bytes are placed into the buffer. The numbers must also be retrieved from the buffer using the order that they were placed in when set there. You can read more about number formats.

Parameters

  • receivedBuffer: The buffer that was sent in this packet or the empty string if this packet did not contain a string. See send buffer

See also

Bit Radio send buffer, number formats

radio