Fixes #1356 Mac and Windows have case-insensitive filesystems, so the will find the internal (all-lowercase) "btstack.h" and not the library's "BTstack.h", causing compilation errors. Rename the library and header to avoid the issue.
25 lines
595 B
C++
25 lines
595 B
C++
#include <BTstackLib.h>
|
|
#include <stdio.h>
|
|
#include <SPI.h>
|
|
|
|
/* EXAMPLE_START(iBeacon): iBeacon Simulator
|
|
|
|
@section Setup
|
|
|
|
@text After BTstack.setup(), iBeaconConfigure() configures BTstack
|
|
to send out iBeacons Advertisements with the provided Major ID,
|
|
Minor ID and UUID.
|
|
*/
|
|
/* LISTING_START(iBeaconSetup): iBeacon Setup */
|
|
UUID uuid("E2C56DB5-DFFB-48D2-B060-D0F5A71096E0");
|
|
void setup(void) {
|
|
Serial.begin(9600);
|
|
BTstack.setup();
|
|
BTstack.iBeaconConfigure(&uuid, 4711, 2);
|
|
BTstack.startAdvertising();
|
|
}
|
|
/* LISTING_END(iBeaconSetup) */
|
|
|
|
void loop(void) {
|
|
BTstack.loop();
|
|
}
|