Versão limpa em 04/09/2014. Telnet funcionando.
Dependencies: EthernetInterface mbed-rtos mbed NTPClient
Revision 26:7e215fc0c118, committed 2015-03-27
- Comitter:
- mlucas82
- Date:
- Fri Mar 27 20:37:41 2015 +0000
- Parent:
- 25:e64a10acfd41
- Child:
- 27:7664225b6036
- Commit message:
- Added ntpClient to initialization ( To-do: resolve bug that resets whenever has an event in "Http_post" )
Changed in this revision
Codes/Http_post.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Codes/Http_post.cpp Fri Mar 27 16:27:55 2015 +0000 +++ b/Codes/Http_post.cpp Fri Mar 27 20:37:41 2015 +0000 @@ -88,7 +88,7 @@ else break; } - if (i != MAXTRIES ) + if ((i != MAXTRIES )&&0) Thread::wait(Settings::get_DelaySend()); else{ //printf("Reset\n");
--- a/main.cpp Fri Mar 27 16:27:55 2015 +0000 +++ b/main.cpp Fri Mar 27 20:37:41 2015 +0000 @@ -35,6 +35,8 @@ #include "PmedLog.h" +#include "NTPClient.h" + //__attribute((section("AHBSRAM0"),aligned)) char LargeBuffer[1024]; EthernetInterface eth; @@ -160,6 +162,8 @@ time_t tempo = time(NULL); if ((tempo+60) < 1420077600) set_time(1420077600); + ntpClient.setTime("192.168.103.101"); + DisplayRAMBanks(); /*