仕倫 林 / Mbed OS 12_1

Dependencies:   X_NUCLEO_IKS01A2

Revision:
2:5da515ba10ff
Parent:
1:b12ac7b02a21
--- a/source/ESS2.h	Wed Apr 29 16:18:37 2020 +0000
+++ b/source/ESS2.h	Thu Apr 30 14:28:59 2020 +0000
@@ -53,9 +53,9 @@
 
                 GattCharacteristic *charTable[] = {  &winddirectionchar, &pressurechar };
 
-                GattService      EnvironmentalService(0x181A, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
+                GattService      EnvironmentalService2(0x181A, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
-        ble.gattServer().addService(EnvironmentalService);
+        ble.gattServer().addService(EnvironmentalService2);
     }