Modified for W5500 Ethernet initialize
Dependencies: GMMP_mbed_Ethernet_Reinit NTPClient WIZnet_Library mbed
Fork of ThingPlug_Ethernet_Example by
Revision 4:68258ee33896, committed 2015-08-12
- Comitter:
- hkjung
- Date:
- Wed Aug 12 02:15:55 2015 +0000
- Parent:
- 3:cbe46126a906
- Child:
- 5:dc12a979116c
- Commit message:
- Modified for W5500 Ethernet initialize
Changed in this revision
--- a/GMMP_mbed.lib Mon Aug 10 02:05:55 2015 +0000 +++ b/GMMP_mbed.lib Wed Aug 12 02:15:55 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/SKTelecom_ThingPlug/code/GMMP_mbed/#0c4e3edf2918 +https://developer.mbed.org/users/hkjung/code/GMMP_mbed/#6b4536e1962f
--- a/config.h Mon Aug 10 02:05:55 2015 +0000 +++ b/config.h Wed Aug 12 02:15:55 2015 +0000 @@ -28,7 +28,8 @@ // Some Ethernet Shields (ex.W5500) do NOT have MAC address. use your cell phone number instead. // 010-1234-5678 -> {0x00, 0x10, 0x12, 0x34, 0x56, 0x78}; -#define DEFAULT_MAC_ADDR {0x00, 0x10, 0x12, 0x34, 0x56, 0x78} //MAC Address +//#define DEFAULT_MAC_ADDR {0x00, 0x10, 0x12, 0x34, 0x56, 0x78} //MAC Address +#define DEFAULT_MAC_ADDR {0x00, 0x08, 0xDC, 0x1D, 0x6A, 0x0B} // [WIZnet] Eric's MAC address #1 /* * GMMP configuration starts here @@ -40,8 +41,11 @@ /* * Gateway/Device configuration starts here */ -#define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "01012345678" +//#define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "01012345678" +//#define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "STMicro" +//#define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STM32" +#define THINGPLUG_GMMP_DEVICE_SERIAL_NUM "0008DC1D6A0B" #define THINGPLUG_GMMP_DEVICE_MANUFACTURER_ID "STMicro" -#define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STM32" +#define THINGPLUG_GMMP_SUB_DEVICE_MANUFACTURER_ID "STMicro" #endif /* CONFIG_H_ */
--- a/main.cpp Mon Aug 10 02:05:55 2015 +0000 +++ b/main.cpp Wed Aug 12 02:15:55 2015 +0000 @@ -299,7 +299,7 @@ int setup(void) { - pc.baud(9600); + //pc.baud(9600); g_t.start(); @@ -434,6 +434,8 @@ } int main() { + + pc.baud(115200); if( setup() < 0 ) return 0;