mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:09:46 +01:00
examples/skald_eddystone: explicitly config itvl
This commit is contained in:
parent
f10a28a7f7
commit
4afda0d6f3
@ -33,6 +33,7 @@
|
||||
#define URL "bit.ly/2Ep11dm"
|
||||
/* calibrated TX power value */
|
||||
#define TX_PWR (0U)
|
||||
#define ADV_ITVL_MS 1000U
|
||||
|
||||
/* allocate two advertising contexts, one for Eddystone-URL and one for
|
||||
* Eddystone-URI */
|
||||
@ -45,10 +46,11 @@ int main(void)
|
||||
|
||||
/* advertise the defined URI */
|
||||
skald_eddystone_uid_t uid = { URI_NAMESPACE, URI_INSTANCE };
|
||||
skald_eddystone_uid_adv(&_ctx_uid, &uid, TX_PWR);
|
||||
skald_eddystone_uid_adv(&_ctx_uid, &uid, TX_PWR, ADV_ITVL_MS);
|
||||
|
||||
/* also advertise the defined short-URL */
|
||||
skald_eddystone_url_adv(&_ctx_url, EDDYSTONE_URL_HTTPS, URL, TX_PWR);
|
||||
skald_eddystone_url_adv(&_ctx_url, EDDYSTONE_URL_HTTPS, URL, TX_PWR,
|
||||
ADV_ITVL_MS);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user