1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net/eddystone.h
2018-04-06 11:18:53 +02:00

64 lines
1.5 KiB
C

/*
* Copyright (C) 2018 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_eddystone Eddystone
* @ingroup net
* @brief General values defined by the BLE Eddystone beacon format
*
* @see https://github.com/google/eddystone/blob/master/protocol-specification.md
* @{
*
* @file
* @brief Constants defined by the Eddystone specification
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef NET_EDDYSTONE_H
#define NET_EDDYSTONE_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Collection of general Eddystone constants
* @{
*/
#define EDDYSTONE_NAMESPACE_LEN (10U)
#define EDDYSTONE_INSTANCE_LEN (6U)
/** @} */
/**
* @name URL scheme prefix values
* @{
*/
#define EDDYSTONE_URL_HTTP_WWW (0x00) /**< `http://www.URL` */
#define EDDYSTONE_URL_HTTPS_WWWW (0x01) /**< `https://www.URL` */
#define EDDYSTONE_URL_HTTP (0x02) /**< `http://URL` */
#define EDDYSTONE_URL_HTTPS (0x03) /**< `https://URL` */
/** @} */
/**
* @name Eddystone frame types
* @{
*/
#define EDDYSTONE_UID (0x00)
#define EDDYSTONE_URL (0x10)
#define EDDYSTONE_TLM (0x20)
#define EDDYSTONE_EID (0x30)
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* NET_EDDYSTONE_H */
/** @} */