![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Project to use SF weather shield over cell link
Dependencies: MPL3115A2_for_weather_shield htu21d_for_weather_shield mbed
CELL_CTRL/cell_ctrl.h@0:924cb994fc16, 2016-10-20 (annotated)
- Committer:
- isaackod
- Date:
- Thu Oct 20 16:49:21 2016 +0000
- Revision:
- 0:924cb994fc16
First commit. Cell not fully implemented yet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
isaackod | 0:924cb994fc16 | 1 | #ifndef CELL_H |
isaackod | 0:924cb994fc16 | 2 | #define CELL_H |
isaackod | 0:924cb994fc16 | 3 | |
isaackod | 0:924cb994fc16 | 4 | #include "mbed.h" |
isaackod | 0:924cb994fc16 | 5 | |
isaackod | 0:924cb994fc16 | 6 | #define BUFFER_SIZE 1024 |
isaackod | 0:924cb994fc16 | 7 | #define TIMEOUT_MS 1000 |
isaackod | 0:924cb994fc16 | 8 | #define PORT 9873 |
isaackod | 0:924cb994fc16 | 9 | #define INACTIVITY_TIMEOUT 20.0 |
isaackod | 0:924cb994fc16 | 10 | #define CONNECTION_TIMEOUT 20.0 |
isaackod | 0:924cb994fc16 | 11 | #define PACKET_SIZE 1428 |
isaackod | 0:924cb994fc16 | 12 | #define ADDRESS "52.36.17.98" |
isaackod | 0:924cb994fc16 | 13 | |
isaackod | 0:924cb994fc16 | 14 | //io connects with the modem, pc is for debugging |
isaackod | 0:924cb994fc16 | 15 | void cell_ctrl_init(Serial* io, Serial pc); |
isaackod | 0:924cb994fc16 | 16 | bool collectResponseString(Serial* io,char* buffer, int size, int timeout_ms, char terminator); |
isaackod | 0:924cb994fc16 | 17 | void cell_ctrl_rst(Serial* io, Serial pc, char* buffer); |
isaackod | 0:924cb994fc16 | 18 | |
isaackod | 0:924cb994fc16 | 19 | |
isaackod | 0:924cb994fc16 | 20 | #endif |