This is boring
Diff: SPWFSA01.h
- Revision:
- 24:419285201dba
- Parent:
- 13:f21e4e73bbb6
- Child:
- 25:6b79352bc1fa
--- a/SPWFSA01.h Thu Nov 03 06:53:47 2016 +0000 +++ b/SPWFSA01.h Tue Nov 22 14:36:25 2016 +0000 @@ -25,8 +25,9 @@ class SPWFSA01 { public: - SPWFSA01(PinName tx, PinName rx, bool debug=false); - + + SPWFSA01(PinName tx, PinName rx, PinName reset=NC, PinName wakeup=NC, bool debug=false); + /** * Init the SPWFSA01 * @@ -130,12 +131,6 @@ */ bool close(int id); - /** - * Allows timeout to be changed between commands - * - * @param timeout_ms timeout of the connection - */ - void setTimeout(uint32_t timeout_ms); /** * Checks if data is available @@ -151,11 +146,15 @@ BufferedSerial _serial; ATParser _parser; DigitalInOut _wakeup; - DigitalInOut _reset; - + DigitalInOut _reset; char _ip_buffer[16]; char _mac_buffer[18]; bool dbg_on; +// int _timeout; // FIXME LICIO we have "virtual" socket tmo, module socket tmo, +// AT parser tmo, recv/send tmo, actually used the NetworksocketAPI socket tmo + unsigned int _recv_timeout; // see SO_RCVTIMEO setsockopt + unsigned int _send_timeout; // see SO_SNDTIMEO setsockopt + unsigned int socket_closed; }; -#endif //SPWFSA01_H \ No newline at end of file +#endif //SPWFSA01_H