PIR sensor 2
Fork of PIRSensorWithTwitter by
Diff: WizFi310Interface.cpp
- Revision:
- 3:8d47f7e3f9d6
- Parent:
- 2:3194ebe06182
- Child:
- 4:460cb7603faf
--- a/WizFi310Interface.cpp Mon Sep 18 08:11:28 2017 +0000 +++ b/WizFi310Interface.cpp Thu Sep 28 08:49:46 2017 +0000 @@ -92,7 +92,8 @@ int WizFi310Interface::test_twitter() -{ +{ Timer timer; + timer.start(); // TCPSocketConnection(); int errConnect; char http_cmd[1000] = ""; @@ -111,7 +112,7 @@ } } - sprintf((char *)http_cmd,"GET http://arduino-tweet.appspot.com/update?token=904626807491530753-sOaChz44g9YFS7EuvRkR75l1W9T303K&status=hell\r\n"); + sprintf((char *)http_cmd,"GET http://arduino-tweet.appspot.com/update?token=3301685856-5P62Kt6NhZtqhxsBkVbOYRMpGhalWQjOfZKEEKM&status=SomebodyEnteredYourHome%d\r\n",timer.read_ms()); TCPconnection.send_all(http_cmd, sizeof(http_cmd));