VNG board

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Mon Dec 01 14:31:18 2014 +0000
Parent:
206:49646c933822
Child:
208:88a3a58769bf
Commit message:
Synchronized with git rev 94cb946f
Author: Rohit Grover
raname to URIBeaconConfigService.

Changed in this revision

services/URIBeacon2Service.h Show annotated file Show diff for this revision Revisions of this file
--- a/services/URIBeacon2Service.h	Mon Dec 01 14:31:18 2014 +0000
+++ b/services/URIBeacon2Service.h	Mon Dec 01 14:31:18 2014 +0000
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef __BLE_URI_BEACON_2_SERVICE_H__
-#define __BLE_URI_BEACON_2_SERVICE_H__
+#ifndef __BLE_URI_BEACON_CONFIG_SERVICE_H__
+#define __BLE_URI_BEACON_CONFIG_SERVICE_H__
 
 #include "BLEDevice.h"
 
@@ -31,7 +31,7 @@
 const uint8_t beaconPeriodCharUUID[]         = UUID_INITIALIZER_LIST(0x20, 0x88);
 const uint8_t resetCharUUID[]                = UUID_INITIALIZER_LIST(0x20, 0x89);
 
-class URIBeacon2Service {
+class URIBeaconConfigService {
 public:
     enum TXPowerModes_t {
         TX_POWER_MODE_LOWEST = 0,
@@ -55,7 +55,7 @@
      *                 transmitted. A value of zero disables UriBeacon
      *                 transmissions.
      */
-    URIBeacon2Service(BLEDevice &bleIn, const char *uriDataIn, uint8_t flagsIn = 0, int8_t effectiveTxPowerIn = 0, uint16_t beaconPeriodIn = 1000) :
+    URIBeaconConfigService(BLEDevice &bleIn, const char *uriDataIn, uint8_t flagsIn = 0, int8_t effectiveTxPowerIn = 0, uint16_t beaconPeriodIn = 1000) :
         ble(bleIn),
         payloadIndex(0),
         serviceDataPayload(),
@@ -98,7 +98,7 @@
         GattService         beaconControlService(URIBeacon2ControlServiceUUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
         ble.addService(beaconControlService);
-        ble.onDataWritten(this, &URIBeacon2Service::onDataWritten);
+        ble.onDataWritten(this, &URIBeaconConfigService::onDataWritten);
     }
 
     bool configuredSuccessfully(void) const {
@@ -374,4 +374,4 @@
     GattCharacteristic  resetChar;
 };
 
-#endif /* #ifndef __BLE_URI_BEACON_2_SERVICE_H__*/
\ No newline at end of file
+#endif /* #ifndef __BLE_URI_BEACON_CONFIG_SERVICE_H__*/
\ No newline at end of file