// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef __ESP_EDDYSTONE_PROTOCOL_H__ #define __ESP_EDDYSTONE_PROTOCOL_H__ #include "stdbool.h" #include "stdint.h" /* Eddystone definitions */ #define EDDYSTONE_SERVICE_UUID 0xFEAA #define EDDYSTONE_FRAME_TYPE_UID 0x00 #define EDDYSTONE_FRAME_TYPE_URL 0x10 #define EDDYSTONE_FRAME_TYPE_TLM 0x20 #define EDDYSTONE_FRAME_TYPE_EID 0x30 #define EDDYSTONE_UID_FRAME_LEN 0x17 #define EDDYSTONE_TLM_FRAME_LEN 0x11 #define EDDYSTONE_URL_MAX_LEN 18 /* Eddystone UID frame */ typedef struct { int8_t ranging_data; /*= 0x00 && ch <= 0x20) || (ch >= 0x7f && ch <= 0xff); } #endif /* __ESP_EDDYSTONE_PROTOCOL_H__ */