Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
77499905
Commit
77499905
authored
6 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
sys/net: added generic Eddystone defines
parent
3b6c8f25
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/eddystone.h
+63
-0
63 additions, 0 deletions
sys/include/net/eddystone.h
with
63 additions
and
0 deletions
sys/include/net/eddystone.h
0 → 100644
+
63
−
0
View file @
77499905
/*
* 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 */
/** @} */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment