PIR sensor
Fork of WizFi310Interface_Legacy_newv2 by
Diff: Socket/Socket.cpp
- Revision:
- 2:3194ebe06182
- Parent:
- 0:774ff1e8b26b
diff -r e08ea0ee2788 -r 3194ebe06182 Socket/Socket.cpp --- a/Socket/Socket.cpp Tue May 02 00:31:36 2017 +0000 +++ b/Socket/Socket.cpp Mon Sep 18 08:11:28 2017 +0000 @@ -27,16 +27,18 @@ #include <cstring> Socket::Socket() { + _wizfi310 = NULL; _wizfi310 = WizFi310::getInstance(); if (_wizfi310 == NULL) error("Socket constructor error: no WizFi250 instance available!\r\n"); _blocking = true; - _timeout = 1500; + _timeout = 2500; _server = false; _cid = -1; _port = 0; + printf("Socket done\n"); } void Socket::set_blocking(bool blocking, unsigned int timeout) {