add EddyStone URL support #66

This commit is contained in:
hathach committed 2017-08-02 15:15:24 +07:00
1 parent c1a427a9eb
commit 3f8b6ca538
3 files changed
+10

No files matched your search

+2
View File
@@ -29,6 +29,8 @@
- Add BLEClientUart& reference pointer BLEClientUart's RX callback
- Add new BLEClientCts for client Current Time Service
- Add bufferTXD() to BLEUart service to handle consecutive small write()
- Add EddyStoneUrl support
- New example `Peripheral\eddystone_url`
### BLEAdvertising
@@ -281,6 +281,11 @@ bool BLEAdvertising::setBeacon(BLEBeacon& beacon)
return beacon.start(*this);
}
bool BLEAdvertising::setBeacon(EddyStoneUrl& eddy_url)
{
return eddy_url.start();
}
void BLEAdvertising::restartOnDisconnect(bool enable)
{
_start_if_disconnect = enable;
@@ -42,7 +42,9 @@
#include "BLEUuid.h"
#include "BLEService.h"
#include "services/BLEBeacon.h"
#include "services/EddyStone.h"
/* Advertising Guideline from Apple
* https://developer.apple.com/library/content/qa/qa1931/_index.html
@@ -108,6 +110,7 @@ public:
void setIntervalMS(uint16_t fast, uint16_t slow);
bool setBeacon(BLEBeacon& beacon);
bool setBeacon(EddyStoneUrl& eddy_url);
bool isRunning(void);