Xively Jumpstart Demo with WiFly module
Dependencies: C12832_lcd LM75B MMA7660 WiflyInterface libxively mbed-rtos mbed
Deprecated
This is an mbed 2 example. For an mbed-os WiFi example, see:
[Repository '/teams/mbed-os-examples/code/mbed-os-example-wifi/docs/tip/' not found]
Revision 9:c5dc85d192e2, committed 2013-10-14
- Comitter:
- Ilya Dmitrichenko
- Date:
- Mon Oct 14 11:58:41 2013 +0100
- Parent:
- 8:81743e1228a7
- Child:
- 10:86ffba646df1
- Commit message:
- Add user config header as it's now required
(see https://github.com/xively/libxively/issues/51)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
xi_user_config.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 11 12:46:15 2013 +0000 +++ b/main.cpp Mon Oct 14 11:58:41 2013 +0100 @@ -4,12 +4,6 @@ #define XI_FEED_ID 128488 // set Xively Feed ID (numerical, no quoutes #define XI_API_KEY "T4KXAH_dasgw1PWBPc3fdsfsdgsdy-dUc4ND0g" // set Xively API key (double-quoted string) -#include "app_board_io.h" - -#define XI_DEBUG_PRINTF lcd_printf -#define XI_DEBUG_OUTPUT 1 -#define XI_DEBUG_ASSERT 0 - #include "xively.h" #include "xi_err.h"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xi_user_config.h Mon Oct 14 11:58:41 2013 +0100 @@ -0,0 +1,24 @@ +#ifndef __XI_USER_CONFIG_H__ +#define __XI_USER_CONFIG_H__ + +// The following settings should lower memory footprint. +// The library currently allows one to send batch datapoint +// and feed updates, but it's not needed in most use cases +#define XI_MAX_DATAPOINTS 1 +// The number of channels can be increased if needed +#define XI_MAX_DATASTREAMS 5 + +// Below are optimisations that reduce some minor functionality +#define XI_OPT_NO_ERROR_STRINGS + +// If you wish to enable assertions, set this to 1 +#define XI_DEBUG_ASSERT 0 +// If you wish to disable debug output, set this to 0 +#define XI_DEBUG_OUTPUT 1 + +// On the mbed app board we can use the LCD for debug output, +// but one may wish to modify this and write to file instead +#include "app_board_io.h" +#define XI_DEBUG_PRINTF lcd_printf + +#endif /* __XI_USER_CONFIG_H__ */