Skip to content

Commit 3f8b6ca

Browse files
committed
add EddyStone URL support #66
1 parent c1a427a commit 3f8b6ca

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
- Add BLEClientUart& reference pointer BLEClientUart's RX callback
3030
- Add new BLEClientCts for client Current Time Service
3131
- Add bufferTXD() to BLEUart service to handle consecutive small write()
32+
- Add EddyStoneUrl support
33+
- New example `Peripheral\eddystone_url`
3234

3335
### BLEAdvertising
3436

libraries/Bluefruit52Lib/src/BLEAdvertising.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ bool BLEAdvertising::setBeacon(BLEBeacon& beacon)
281281
return beacon.start(*this);
282282
}
283283

284+
bool BLEAdvertising::setBeacon(EddyStoneUrl& eddy_url)
285+
{
286+
return eddy_url.start();
287+
}
288+
284289
void BLEAdvertising::restartOnDisconnect(bool enable)
285290
{
286291
_start_if_disconnect = enable;

libraries/Bluefruit52Lib/src/BLEAdvertising.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242

4343
#include "BLEUuid.h"
4444
#include "BLEService.h"
45+
4546
#include "services/BLEBeacon.h"
47+
#include "services/EddyStone.h"
4648

4749
/* Advertising Guideline from Apple
4850
* https://developer.apple.com/library/content/qa/qa1931/_index.html
@@ -108,6 +110,7 @@ class BLEAdvertising : public BLEAdvertisingData
108110
void setIntervalMS(uint16_t fast, uint16_t slow);
109111

110112
bool setBeacon(BLEBeacon& beacon);
113+
bool setBeacon(EddyStoneUrl& eddy_url);
111114

112115
bool isRunning(void);
113116

0 commit comments

Comments
 (0)