Loading...
Searching...
No Matches
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
42extern "C" {
43#endif
44
48typedef struct __attribute__((packed)) {
49 uint8_t namespace[EDDYSTONE_NAMESPACE_LEN];
50 uint8_t instance[EDDYSTONE_INSTANCE_LEN];
52
64 const skald_eddystone_uid_t *uid, uint8_t tx_pwr,
65 uint32_t adv_itvl_ms);
66
79 uint8_t scheme, const char *url, uint8_t tx_pwr,
80 uint32_t adv_itvl_ms);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* NET_SKALD_EDDYSTONE_H */
Constants defined by the Eddystone specification.
void skald_eddystone_url_adv(skald_ctx_t *ctx, uint8_t scheme, const char *url, uint8_t tx_pwr, uint32_t adv_itvl_ms)
Advertise Eddystone-URL data.
void skald_eddystone_uid_adv(skald_ctx_t *ctx, const skald_eddystone_uid_t *uid, uint8_t tx_pwr, uint32_t adv_itvl_ms)
Advertise Eddystone-UID data.
Skald's basic interface.
Advertising context holding the advertising data and state.
Definition skald.h:74
Unique and opaque 16-byte beacon id format used by Eddystone.
Definition eddystone.h:48
namespace EDDYSTONE_NAMESPACE_LEN
10-byte namespace
Definition eddystone.h:49