![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A cute tiny piece of code implementing an IoT NAND device, demonstrating how to setup and advertise a cute GATT (NAND) service. The code has been tested on a Nordic nRF51822-DK.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate_IDB0XA1 by
bricks/types.h
- Committer:
- hux
- Date:
- 2018-05-19
- Revision:
- 26:dce30a5341bb
- Parent:
- 23:2e73c391bb12
File content as of revision 26:dce30a5341bb:
// types.h - declaring some common types // // The type identifiers are all begining with capital letter in order to leave // the lower capital identifiers free for 'overloaded' variable or characteristic // identifiers. // #ifndef _TYPES_H_ #define _TYPES_H_ #define SIZE_OBJECTNAME 40 #define SIZE_INIBUFFER SIZE_OBJECTNAME typedef uint8_t ObjectId[6]; typedef char ObjectName[SIZE_OBJECTNAME]; // use UTF8S coded characters typedef uint8_t Bool; typedef uint8_t Digital; typedef uint8_t DateTime[10]; typedef uint8_t Buffer[10]; typedef uint8_t IniBuffer[SIZE_INIBUFFER]; #endif // _TYPES_H_