updated api definitions

This commit is contained in:
Peli de Halleux
2016-11-30 04:24:52 -08:00
parent adef3a6487
commit d873cbb6c3
6 changed files with 20 additions and 19 deletions

View File

@ -127,8 +127,8 @@ namespace bluetooth {
* @param url the url to transmit. Must be no longer than the supported eddystone url length
* @param power power level between 0 and 7, e.g.: 7
*/
//% blockId=eddystone_advertise_url block="advertise url %url|power %power"
//% parts=bluetooth weight=11
//% blockId=eddystone_advertise_url block="bluetooth advertise url %url|with power %power"
//% parts=bluetooth weight=11 blockGap=8
//% help=bluetooth/advertise-url
void advertiseUrl(StringData* url, int power) {
int8_t level = CALIBRATED_POWERS[min(7, max(0, power))];
@ -138,7 +138,7 @@ namespace bluetooth {
/**
* Stops advertising Eddystone end points
*/
//% blockId=eddystone_stop_advertising block="stop advertising"
//% blockId=eddystone_stop_advertising block="bluetooth stop advertising"
//% parts=bluetooth weight=10
//% help=bluetooth/stop-advertising
void stopAdvertising() {