Project to use SF weather shield over cell link
Dependencies: MPL3115A2_for_weather_shield htu21d_for_weather_shield mbed
Diff: CELL_CTRL/cell_ctrl.h
- Revision:
- 0:924cb994fc16
diff -r 000000000000 -r 924cb994fc16 CELL_CTRL/cell_ctrl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CELL_CTRL/cell_ctrl.h Thu Oct 20 16:49:21 2016 +0000 @@ -0,0 +1,20 @@ +#ifndef CELL_H +#define CELL_H + +#include "mbed.h" + +#define BUFFER_SIZE 1024 +#define TIMEOUT_MS 1000 +#define PORT 9873 +#define INACTIVITY_TIMEOUT 20.0 +#define CONNECTION_TIMEOUT 20.0 +#define PACKET_SIZE 1428 +#define ADDRESS "52.36.17.98" + +//io connects with the modem, pc is for debugging +void cell_ctrl_init(Serial* io, Serial pc); +bool collectResponseString(Serial* io,char* buffer, int size, int timeout_ms, char terminator); +void cell_ctrl_rst(Serial* io, Serial pc, char* buffer); + + +#endif \ No newline at end of file