Bit Radio
Send and receive data using the Bit Radio protocol.
Bit Radio
The Bit Radio protocol was originally developped by Lancaster University for the BBC micro:bit project.
This protocol does not contain any form of encryption, authentication or authorization. It’s purpose is solely for use as a teaching aid to demonstrate how simple communications operates, and to provide a sandpit through which learning can take place.
radio.sendNumber(0);
radio.sendValue("name", 0);
radio.sendString("");
radio.sendBuffer(pins.createBuffer(1));
radio.onReceivedNumber(function (receivedNumber) { });
radio.onReceivedValue(function (name, value) { });
radio.onReceivedString(function (receivedString) { });
radio.onReceivedBuffer(function (receivedBuffer) { });
radio.setGroup(0);
Advanced
radio.setTransmitPower(7);
radio.setFrequencyBand(50);
radio.setTransmitSerialNumber(false);
radio.raiseEvent(0, 0);
radio
See Also
send number,
send value,
send string,
send buffer,
on received number,
on received value,
on received string,
on received buffer,
set group,
set transmit power,
set transmit serial number,
raise event