marking various radio functions as debug until API is stable

This commit is contained in:
Peli de Halleux 2016-05-10 16:42:18 -07:00
parent 60c3f1f427
commit 7d0101af25
2 changed files with 14 additions and 14 deletions

View File

@ -41,7 +41,7 @@ namespace radio {
* Broadcasts 4 numbers over radio to any connected micro:bit in the group. * Broadcasts 4 numbers over radio to any connected micro:bit in the group.
*/ */
//% help=radio/send-numbers //% help=radio/send-numbers
//% weight=59 //% weight=59 debug=true
//% blockId=radio_datagram_send_numbers block="send numbers|0: %VALUE0|1: %VALUE1|2: %VALUE2|3: %VALUE3" //% blockId=radio_datagram_send_numbers block="send numbers|0: %VALUE0|1: %VALUE1|2: %VALUE2|3: %VALUE3"
void sendNumbers(int value_0, int value_1, int value_2, int value_3) { void sendNumbers(int value_0, int value_1, int value_2, int value_3) {
if (radioEnable() != MICROBIT_OK) return; if (radioEnable() != MICROBIT_OK) return;
@ -55,10 +55,10 @@ namespace radio {
* @param name the field name (max 12 characters), eg: "data" * @param name the field name (max 12 characters), eg: "data"
* @param the numberic value * @param the numberic value
*/ */
//% help=radio/stream-value //% help=radio/send-value
//% weight=4 //% weight=4 debug=true
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value" //% blockId=radio_datagram_send_value block="send|value %name|= %value"
void streamValue(StringData* name, int number) { void sendValue(StringData* name, int number) {
if (radioEnable() != MICROBIT_OK) return; if (radioEnable() != MICROBIT_OK) return;
ManagedString n(name); ManagedString n(name);
@ -78,7 +78,7 @@ namespace radio {
* to the serial stream as JSON * to the serial stream as JSON
*/ */
//% help=radio/read-value-to-serial //% help=radio/read-value-to-serial
//% weight=3 //% weight=3 debug=true
void readValueToSerial() { void readValueToSerial() {
if (radioEnable() != MICROBIT_OK) return; if (radioEnable() != MICROBIT_OK) return;
PacketBuffer p = uBit.radio.datagram.recv(); PacketBuffer p = uBit.radio.datagram.recv();
@ -131,7 +131,7 @@ namespace radio {
* @param index index of the number to read from 0 to 3. 1 eg * @param index index of the number to read from 0 to 3. 1 eg
*/ */
//% help=radio/received-number-at //% help=radio/received-number-at
//% weight=45 //% weight=45 debug=true
//% blockId=radio_datagram_received_number_at block="receive number|at %VALUE" blockGap=8 //% blockId=radio_datagram_received_number_at block="receive number|at %VALUE" blockGap=8
int receivedNumberAt(int index) { int receivedNumberAt(int index) {
if (radioEnable() != MICROBIT_OK) return 0; if (radioEnable() != MICROBIT_OK) return 0;

View File

@ -9,7 +9,7 @@ declare namespace radio {
* Broadcasts 4 numbers over radio to any connected micro:bit in the group. * Broadcasts 4 numbers over radio to any connected micro:bit in the group.
*/ */
//% help=radio/send-numbers //% help=radio/send-numbers
//% weight=59 //% weight=59 debug=true
//% blockId=radio_datagram_send_numbers block="send numbers|0: %VALUE0|1: %VALUE1|2: %VALUE2|3: %VALUE3" shim=radio::sendNumbers //% blockId=radio_datagram_send_numbers block="send numbers|0: %VALUE0|1: %VALUE1|2: %VALUE2|3: %VALUE3" shim=radio::sendNumbers
function sendNumbers(value_0: number, value_1: number, value_2: number, value_3: number): void; function sendNumbers(value_0: number, value_1: number, value_2: number, value_3: number): void;
@ -19,17 +19,17 @@ declare namespace radio {
* @param name the field name (max 12 characters), eg: "data" * @param name the field name (max 12 characters), eg: "data"
* @param the numberic value * @param the numberic value
*/ */
//% help=radio/stream-value //% help=radio/send-value
//% weight=4 //% weight=4 debug=true
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value" shim=radio::streamValue //% blockId=radio_datagram_send_value block="send|value %name|= %value" shim=radio::sendValue
function streamValue(name: string, number: number): void; function sendValue(name: string, number: number): void;
/** /**
* Reads a value sent with `stream value` and writes it * Reads a value sent with `stream value` and writes it
* to the serial stream as JSON * to the serial stream as JSON
*/ */
//% help=radio/read-value-to-serial //% help=radio/read-value-to-serial
//% weight=3 shim=radio::readValueToSerial //% weight=3 debug=true shim=radio::readValueToSerial
function readValueToSerial(): void; function readValueToSerial(): void;
/** /**
@ -45,7 +45,7 @@ declare namespace radio {
* @param index index of the number to read from 0 to 3. 1 eg * @param index index of the number to read from 0 to 3. 1 eg
*/ */
//% help=radio/received-number-at //% help=radio/received-number-at
//% weight=45 //% weight=45 debug=true
//% blockId=radio_datagram_received_number_at block="receive number|at %VALUE" blockGap=8 shim=radio::receivedNumberAt //% blockId=radio_datagram_received_number_at block="receive number|at %VALUE" blockGap=8 shim=radio::receivedNumberAt
function receivedNumberAt(index: number): number; function receivedNumberAt(index: number): number;