eddystone.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
35 #ifndef NET_SKALD_EDDYSTONE_H
36 #define NET_SKALD_EDDYSTONE_H
37 
38 #include "net/eddystone.h"
39 #include "net/skald.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
48 typedef struct __attribute__((packed)) {
49  uint8_t namespace[EDDYSTONE_NAMESPACE_LEN];
50  uint8_t instance[EDDYSTONE_INSTANCE_LEN];
52 
63  const skald_eddystone_uid_t *uid, uint8_t tx_pwr);
64 
76  uint8_t scheme, const char *url, uint8_t tx_pwr);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* NET_SKALD_EDDYSTONE_H */
83 
skald_eddystone_uid_adv
void skald_eddystone_uid_adv(skald_ctx_t *ctx, const skald_eddystone_uid_t *uid, uint8_t tx_pwr)
Advertise Eddystone-UID data.
skald_eddystone_uid_t::EDDYSTONE_NAMESPACE_LEN
namespace EDDYSTONE_NAMESPACE_LEN
10-byte namespace
Definition: eddystone.h:49
skald_ctx_t
Advertising context holding the advertising data and state.
Definition: skald.h:144
eddystone.h
Constants defined by the Eddystone specification.
skald.h
Skald's basic interface.
skald_eddystone_url_adv
void skald_eddystone_url_adv(skald_ctx_t *ctx, uint8_t scheme, const char *url, uint8_t tx_pwr)
Advertise Eddystone-URL data.
skald_eddystone_uid_t
Unique and opaque 16-byte beacon id format used by Eddystone.
Definition: eddystone.h:48