![](/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
- Committer:
- isaackod
- Date:
- 2016-10-20
- Revision:
- 0:924cb994fc16
File content as of revision 0:924cb994fc16:
#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