Rename the parameters for the sendValue block (#293)
This commit is contained in:
@ -188,7 +188,7 @@ namespace radio {
|
||||
/**
|
||||
* Broadcasts a name / value pair along with the device serial number
|
||||
* and running time to any connected micro:bit in the group.
|
||||
* @param name the field name (max 12 characters), eg: "data"
|
||||
* @param name the field name (max 12 characters), eg: "name"
|
||||
* @param value the numberic value
|
||||
*/
|
||||
//% help=radio/send-value
|
||||
|
@ -35,7 +35,7 @@ namespace radio {
|
||||
//% help=radio/on-data-packet-received
|
||||
//% mutate=true
|
||||
//% mutateText=Packet
|
||||
//% mutateDefaults="receivedNumber;receivedString,receivedNumber;receivedString"
|
||||
//% mutateDefaults="receivedNumber;receivedString:name,receivedNumber:value;receivedString"
|
||||
//% blockId=radio_on_packet block="on radio received" blockGap=8
|
||||
export function onDataPacketReceived(cb: (packet: Packet) => void) {
|
||||
onDataReceived(() => {
|
||||
|
2
libs/radio/shims.d.ts
vendored
2
libs/radio/shims.d.ts
vendored
@ -16,7 +16,7 @@ declare namespace radio {
|
||||
/**
|
||||
* Broadcasts a name / value pair along with the device serial number
|
||||
* and running time to any connected micro:bit in the group.
|
||||
* @param name the field name (max 12 characters), eg: "data"
|
||||
* @param name the field name (max 12 characters), eg: "name"
|
||||
* @param value the numberic value
|
||||
*/
|
||||
//% help=radio/send-value
|
||||
|
Reference in New Issue
Block a user