Added an EddystoneURLConfigService in addition to UriBeaconConfigService. Updated README and converted comments that used UriBeacon to EddystoneURL in the EddystoneService.h
Dependents: mbed_EddystoneURL_Beacon_ssci mbed_EddystoneURL_Beacon_ssci mbed_EddystoneURL_Beacon_ssci
Fork of BLE_API by
source/services/EddystoneURLConfigService.cpp@795:6401965b88ee, 2015-08-18 (annotated)
- Committer:
- roywant
- Date:
- Tue Aug 18 00:15:23 2015 +0000
- Revision:
- 795:6401965b88ee
- Child:
- 796:fc73c1ddcd09
Added EddystoneURLConfigService files (.h, .cpp) and updated comments in EddystoneService.h to remove UriBeacon references, and edited README to reflect changes.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
roywant | 795:6401965b88ee | 1 | /* mbed Microcontroller Library |
roywant | 795:6401965b88ee | 2 | * Copyright (c) 2006-2013 ARM Limited |
roywant | 795:6401965b88ee | 3 | * |
roywant | 795:6401965b88ee | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
roywant | 795:6401965b88ee | 5 | * you may not use this file except in compliance with the License. |
roywant | 795:6401965b88ee | 6 | * You may obtain a copy of the License at |
roywant | 795:6401965b88ee | 7 | * |
roywant | 795:6401965b88ee | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
roywant | 795:6401965b88ee | 9 | * |
roywant | 795:6401965b88ee | 10 | * Unless required by applicable law or agreed to in writing, software |
roywant | 795:6401965b88ee | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
roywant | 795:6401965b88ee | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
roywant | 795:6401965b88ee | 13 | * See the License for the specific language governing permissions and |
roywant | 795:6401965b88ee | 14 | * limitations under the License. |
roywant | 795:6401965b88ee | 15 | */ |
roywant | 795:6401965b88ee | 16 | |
roywant | 795:6401965b88ee | 17 | #include "ble/services/EddystoneURLConfigService.h" |
roywant | 795:6401965b88ee | 18 | |
roywant | 795:6401965b88ee | 19 | #define UUID_URI_BEACON(FIRST, SECOND) { \ |
roywant | 795:6401965b88ee | 20 | 0xee, 0x0c, FIRST, SECOND, 0x87, 0x86, 0x40, 0xba, \ |
roywant | 795:6401965b88ee | 21 | 0xab, 0x96, 0x99, 0xb9, 0x1a, 0xc9, 0x81, 0xd8, \ |
roywant | 795:6401965b88ee | 22 | } |
roywant | 795:6401965b88ee | 23 | |
roywant | 795:6401965b88ee | 24 | const uint8_t UUID_EDDYSTONE_URL_SERVICE[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x80); |
roywant | 795:6401965b88ee | 25 | const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x81); |
roywant | 795:6401965b88ee | 26 | const uint8_t UUID_LOCK_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x82); |
roywant | 795:6401965b88ee | 27 | const uint8_t UUID_UNLOCK_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x83); |
roywant | 795:6401965b88ee | 28 | const uint8_t UUID_URI_DATA_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x84); |
roywant | 795:6401965b88ee | 29 | const uint8_t UUID_FLAGS_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x85); |
roywant | 795:6401965b88ee | 30 | const uint8_t UUID_ADV_POWER_LEVELS_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x86); |
roywant | 795:6401965b88ee | 31 | const uint8_t UUID_TX_POWER_MODE_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x87); |
roywant | 795:6401965b88ee | 32 | const uint8_t UUID_BEACON_PERIOD_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x88); |
roywant | 795:6401965b88ee | 33 | const uint8_t UUID_RESET_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_BEACON(0x20, 0x89); |
roywant | 795:6401965b88ee | 34 | |
roywant | 795:6401965b88ee | 35 | const uint8_t BEACON_UUID[sizeof(UUID::ShortUUIDBytes_t)] = {0xAA, 0xFE}; |