Merge pull request #316 from OwenBrotherwood/patch-1

Correction for max. length of advertised url to 17
This commit is contained in:
Peli de Halleux 2016-12-09 15:13:13 -08:00 committed by GitHub
commit 96d354a8a8

View File

@ -23,7 +23,7 @@ bluetooth.advertiseUrl("https://pxt.microbit.org/", 7, true);
### Parameters
* ``url`` - a [string](/reference/types/string) containing the URL to broadcast, at most 18 characters long
* ``url`` - a [string](/reference/types/string) containing the URL to broadcast, at most 17 characters long, excluding the protocol (eg: ``https://``) which gets encoded as 1 byte.
* ``power`` - a [number](/reference/types/number) representing the power level between 0 (short) and 7 (maximum range).
### Example: Broadcast a secret code