1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/skald_eddystone: explicitly config itvl

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

View File

@ -33,6 +33,7 @@
#define URL "bit.ly/2Ep11dm" #define URL "bit.ly/2Ep11dm"
/* calibrated TX power value */ /* calibrated TX power value */
#define TX_PWR (0U) #define TX_PWR (0U)
#define ADV_ITVL_MS 1000U
/* allocate two advertising contexts, one for Eddystone-URL and one for /* allocate two advertising contexts, one for Eddystone-URL and one for
* Eddystone-URI */ * Eddystone-URI */
@ -45,10 +46,11 @@ int main(void)
/* advertise the defined URI */ /* advertise the defined URI */
skald_eddystone_uid_t uid = { URI_NAMESPACE, URI_INSTANCE }; 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 */ /* 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; return 0;
} }