Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem SNTPClient WIZnetInterface httpServer_ntpsetting mbed
Fork of PetfeederWebServer by
Diff: main.cpp
- Revision:
- 23:17bcb0c6105c
- Parent:
- 21:a5e91b90d7a3
- Child:
- 25:3fc1c4fa6b15
--- a/main.cpp Mon Nov 16 23:56:27 2015 +0000
+++ b/main.cpp Thu Feb 18 00:36:57 2016 +0000
@@ -4,13 +4,13 @@
#include "HTTPServer.h"
#include "SDFileSystem.h"
-#ifdef TARGET_WIZWIKI_W7500
+#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P)
//Choose one of file system.
SDFileSystem local(SD_MOSI, SD_MISO, SD_CLK, SD_SEL, "local");//PB_3, PB_2, PB_1, PB_0
//LocalFileSystem local("local");
#endif
-#ifdef TARGET_WIZWIKI_W7500
+#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P)
uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x00, 0x01, 0x02};
#endif
@@ -28,7 +28,7 @@
HTTPFsRequestHandler::mount("/local/", "/");
svr.addHandler<HTTPFsRequestHandler>("/");
-#ifdef TARGET_WIZWIKI_W7500
+#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P)
#ifdef DHCP
eth.init(mac_addr); //Use DHCP
