Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
JBtje edited this page Jun 5, 2015 · 2 revisions

Syntax

ADVERT|SCAN GENERAL|LIMITED

ADVERT|SCAN NAME "<name>"

ADVERT|SCAN "<service uuid>"

ADVERT|SCAN CUSTOM "<sequence of 2-digit hex values>"

ADVERT|SCAN END

Description

With the ADVERT command the BTLE chip's advertising information can be changed, e.g. what other devices see

Example

NEW
10 // "A Simple iBeacon service"
20 DIM M(5)
30 // "Major (0-65535)"
40 M(0) = 0
41 M(1) = 2
50 // "Minor (0-65535)"
60 M(2) = 0
61 M(3) = 4
70 // "Power"
80 M(4) = 0xC8
90 ADVERT GENERAL
100 ADVERT CUSTOM "FF 4C 00 02 15" "74 27 8B DA B6 44 45 20 8F 0C 72 0E AF 05 99 35" M "00"
110 ADVERT END
120 // SET A NAME IN THE SCAN RESPONSE
130 SCAN NAME "iBeacon"
140 SCAN END
AUTORUN ON

The above code changes the advertising name of the BTLE chip to "iBeacon"

Clone this wiki locally