Bluetooth Low Energy and Stepper Motor enabled device, compatible with the BlueST Protocol.

Dependencies:   X_NUCLEO_IHM01A1

Bluetooth Low Energy and Stepper Motor enabled device, compatible with the BlueST Protocol.

Revision:
1:84935552ca4d
Parent:
0:f87cdc08dcd1
Child:
2:b51fb6efcd55
--- a/source/CustomService.h	Tue Apr 17 14:59:28 2018 +0000
+++ b/source/CustomService.h	Thu May 10 12:18:51 2018 +0000
@@ -87,12 +87,12 @@
         memset (packed_state_command, 0, MAX_DATA_LENGTH);
         STORE_LE_16(packed_state_command, time_stamp);
         packed_state_command[2] = current_state;
-        ble.gattServer().write(state_command.getValueHandle(), (uint8_t *) &packed_state_command, STATE_DATA_LENGTH, 0);
+        ble.gattServer().write(state_command.getValueAttribute().getHandle(), (uint8_t *) &packed_state_command, STATE_DATA_LENGTH, 0);
     }
 
     GattAttribute::Handle_t getValueHandle() const
     {
-        return state_command.getValueHandle();
+        return state_command.getValueAttribute().getHandle();
     }
 
 private: