1#include <BTstack.h> 2#include <stdio.h> 3#include <SPI.h> 4 5/* EXAMPLE_START(iBeacon): iBeacon Simulator 6 * 7 * @section Setup 8 * 9 * @text After BTstack.setup(), iBeaconConfigure() configures BTstack 10 * to send out iBeacons Advertisements with the provided Major ID, 11 * Minor ID and UUID. 12 */ 13/* LISTING_START(iBeaconSetup): iBeacon Setup */ 14UUID uuid("E2C56DB5-DFFB-48D2-B060-D0F5A71096E0"); 15void setup(void){ 16 Serial.begin(9600); 17 BTstack.setup(); 18 BTstack.iBeaconConfigure(&uuid, 4711, 2); 19 BTstack.startAdvertising(); 20} 21/* LISTING_END(iBeaconSetup) */ 22 23void loop(void){ 24 BTstack.loop(); 25} 26