A nice BLE demo program which allows remote switch of an LED via GATT interface.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_Button by
Diff: bricks/types.h
- Revision:
- 13:0563f1aa6a75
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bricks/types.h Sat Oct 21 19:56:15 2017 +0000 @@ -0,0 +1,24 @@ +// 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_ \ No newline at end of file