1
1
/* mbed Microcontroller Library
2
- * Copyright (c) 2006-2015 ARM Limited
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright (c) 2006-2015 ARM Limited
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
#ifndef MBED_BLE_IBEACON_H__
17
17
#define MBED_BLE_IBEACON_H__
18
18
28
28
* number generally used to determine the location of devices or physical objects
29
29
* near a mobile phone user.
30
30
*
31
- * iOS scans for iBeacon devices in a background task and notifies Apps
32
- * subscribed to a specific region when the area is entered or left . Apps may
31
+ * iOS scans for iBeacon devices in a background task and notifies apps
32
+ * that subscribe to a specific region when a device enters or leaves an area . Apps may
33
33
* use this information to display context-aware content to users.
34
34
*
35
35
* As an example, a museum can deploy an app that informs the user when one of
48
48
* of iBeacons in relevant touristic locations it operates. The UUID may
49
49
* identify a place managed by the city. The major ID would identify the place;
50
50
* it can be a museum, a historic monument, a metro station and so on. The minor ID
51
- * would locate a specific spot within a specific city place. It can be a
51
+ * would identify a specific spot within a specific city place. It can be a
52
52
* piece of art, a ticket dispenser or a relevant point of interest.
53
53
*
54
54
* Each iBeacon device is physically attached to the spot it locates and
78
78
*
79
79
* @attention If you are interested in manufacturing iBeacons, you must obtain a
80
80
* license from Apple. More information at https://developer.apple.com/ibeacon/.
81
- * The licence also grant access to the iBeacons technical specification.
81
+ * The license also grant access to the iBeacons technical specification.
82
82
*
83
83
* @note More information at https://developer.apple.com/ibeacon/Getting-Started-with-iBeacon.pdf
84
84
*
@@ -88,9 +88,9 @@ MBED_DEPRECATED_SINCE(
88
88
" mbed-os-5.11" ,
89
89
" This service is deprecated, and no replacement is currently available."
90
90
)
91
- class iBeacon
92
- {
91
+ class iBeacon {
93
92
public:
93
+ #if !(DOXYGEN_ONLY)
94
94
/* *
95
95
* Data buffer of a location UUID.
96
96
*/
@@ -116,12 +116,12 @@ class iBeacon
116
116
uint16_t companyID;
117
117
118
118
/* *
119
- * Packet ID; Equal to 2 for an iBeacon.
119
+ * Packet ID; equal to 2 for an iBeacon.
120
120
*/
121
121
uint8_t ID;
122
122
123
123
/* *
124
- * Length of the remaining data presents in the payload.
124
+ * Length of the remaining data present in the payload.
125
125
*/
126
126
uint8_t len;
127
127
@@ -131,7 +131,7 @@ class iBeacon
131
131
uint8_t proximityUUID[16 ];
132
132
133
133
/* *
134
- * Beacon Major group ID.
134
+ * Beacon major group ID.
135
135
*/
136
136
uint16_t majorNumber;
137
137
@@ -150,11 +150,11 @@ class iBeacon
150
150
* Assemble an iBeacon payload.
151
151
*
152
152
* @param[in] uuid Beacon network ID. iBeacon operators use this value
153
- * to group their iBeacons into a single network, a single region and
153
+ * to group their iBeacons into a single network, a single region, and
154
154
* identify their organization among others.
155
155
*
156
156
* @param[in] majNum Beacon major group ID. iBeacon exploitants may use
157
- * this field to divide the region into subregions, their network into
157
+ * this field to divide the region into subregions, and their network into
158
158
* subnetworks.
159
159
*
160
160
* @param[in] minNum Identifier of the Beacon in its subregion.
@@ -181,25 +181,25 @@ class iBeacon
181
181
memcpy (proximityUUID, uuid, sizeof (LocationUUID_t));
182
182
}
183
183
};
184
-
184
+ # endif // #if !(DOXYGEN_ONLY)
185
185
public:
186
186
/* *
187
187
* Construct an iBeacon::Payload and register it into Gap.
188
188
*
189
189
* @param[in] _ble The BLE interface to configure with the iBeacon payload.
190
190
*
191
191
* @param[in] uuid Beacon network ID. iBeacon operators use this value
192
- * to group their iBeacons into a single network, a single region and
192
+ * to group their iBeacons into a single network, a single region, and
193
193
* identify their organization among others.
194
194
*
195
- * @param[in] majNum Beacon major group ID. iBeacon exploitants may use
196
- * this field to divide the region into subregions, their network into
195
+ * @param[in] majNum Beacon major group ID. iBeacon fleet operators may use
196
+ * this field to divide the region into subregions, and their network into
197
197
* subnetworks.
198
198
*
199
199
* @param[in] minNum Identifier of the Beacon in its subregion.
200
200
*
201
- * @param[in] txP Measured transmit power of the beacon at 1
202
- * meter. Scanners use this parameter to approximate the distance
201
+ * @param[in] txP Measured transmit power of the beacon at distance of
202
+ * one meter. Scanners use this parameter to approximate the distance
203
203
* to the beacon.
204
204
*
205
205
* @param[in] compID ID of the beacon manufacturer.
0 commit comments