1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:09:46 +01:00

examples/skald_ibeacon: explicitly configure itvl

This commit is contained in:
Hauke Petersen 2022-03-21 22:24:53 +01:00
parent 4afda0d6f3
commit ef925b5884

View File

@ -28,6 +28,7 @@
#define MAJOR (0x0023)
#define MINOR (0x0017)
#define TXPOWER (0U)
#define ADV_ITVL_MS 1000U
/* allocate a single advertising context */
static skald_ctx_t _ctx;
@ -38,7 +39,7 @@ int main(void)
/* this will configure the iBeacon and start advertising it */
skald_uuid_t uuid = { UUID };
skald_ibeacon_advertise(&_ctx, &uuid, MAJOR, MINOR, TXPOWER);
skald_ibeacon_advertise(&_ctx, &uuid, MAJOR, MINOR, TXPOWER, ADV_ITVL_MS);
return 0;
}