Download a stream of data to a peripheral over BLE.
Dependencies: BLE_API mbed nRF51822
A simple demonstration of downloading a stream onto a peripheral over BLE. There's a corresponding Python script to driver the client.
Logger.h@5:90b73268e270, 2014-12-09 (annotated)
- Committer:
- rgrover1
- Date:
- Tue Dec 09 09:05:43 2014 +0000
- Revision:
- 5:90b73268e270
- Parent:
- 0:4eaf82806f06
fix build issues; and update underlying libraries.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 0:4eaf82806f06 | 1 | #ifndef _H_LOGGER_H |
rgrover1 | 0:4eaf82806f06 | 2 | #define _H_LOGGER_H |
rgrover1 | 0:4eaf82806f06 | 3 | |
rgrover1 | 0:4eaf82806f06 | 4 | #define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console; |
rgrover1 | 0:4eaf82806f06 | 5 | * it will have an impact on code-size and power consumption. */ |
rgrover1 | 0:4eaf82806f06 | 6 | |
rgrover1 | 0:4eaf82806f06 | 7 | #if NEED_CONSOLE_OUTPUT |
rgrover1 | 0:4eaf82806f06 | 8 | #define DEBUG(...) { printf(__VA_ARGS__); } |
rgrover1 | 0:4eaf82806f06 | 9 | #else |
rgrover1 | 0:4eaf82806f06 | 10 | #define DEBUG(...) /* nothing */ |
rgrover1 | 0:4eaf82806f06 | 11 | #endif /* #if NEED_CONSOLE_OUTPUT */ |
rgrover1 | 0:4eaf82806f06 | 12 | |
rgrover1 | 0:4eaf82806f06 | 13 | #endif //_H_LOGGER_H |