Hexiwear library for communicating with the on-board KW40Z BLE device. KW40Z handles also the touch buttons.
Dependents: Hexi_Buttons_Example Hexi_Click_Relay-v2_Example Hexi_Click_Relay-v3_Example Hexi_Catch-the-dot_Game ... more
Diff: Hexi_KW40Z.h
- Revision:
- 3:9e92f113c671
- Parent:
- 2:bb66c19c3c04
- Child:
- 6:23323e8aeda4
- Child:
- 7:f363aea73f45
--- a/Hexi_KW40Z.h Mon Sep 19 05:45:31 2016 +0000
+++ b/Hexi_KW40Z.h Tue Sep 20 01:04:31 2016 +0000
@@ -154,7 +154,8 @@
typedef void (*button_t)(void);
typedef void (*alert_t)(uint8_t *data, uint8_t length);
-typedef void (*passkey_t)(uint8_t *data);
+//typedef void (*passkey_t)(uint8_t *data);
+typedef void (*passkey_t)(void);
typedef void (*notifications_t)(uint8_t eventId, uint8_t categoryId);
typedef struct name
@@ -200,7 +201,7 @@
void SendTemperature(uint16_t celsius);
void SendHumidity(uint16_t percentage);
void SendPressure(uint16_t pascal);
- void SendHearRate(uint8_t rate);
+ void SendHeartRate(uint8_t rate);
void SendSteps(uint16_t steps);
void SendCalories(uint16_t calories);
void SendAlert(uint8_t *pData, uint8_t length);
@@ -213,6 +214,12 @@
uint8_t GetAdvertisementMode(void);
uint8_t GetLinkState(void);
hexiwear_version_t GetVersion(void);
+
+ uint32_t GetPassKey(void);
+
+
+
+
private:
RawSerial device;
@@ -239,6 +246,7 @@
uint8_t activeTsiGroup;
uint8_t advertisementMode;
uint8_t linkState;
+ uint32_t bondPassKey;
MemoryPool<hostInterface_packet_t, 16> mpool;
Queue<hostInterface_packet_t, 16> queue;