This Program is based on the configuration of ThingSpeak using ARMmbed

Dependencies:   Adafruit_GFX WIZnetInterface mbed

Fork of Tweeting_Machine_HelloWorld_WIZwiki-W7500 by IOP

Revision:
1:5f4bd210e2f0
Parent:
0:8548416648df
Child:
2:16c044e2f30d
--- a/main.cpp	Thu Oct 15 00:18:52 2015 +0000
+++ b/main.cpp	Wed May 11 00:51:18 2016 +0000
@@ -2,8 +2,8 @@
 #include "EthernetInterface.h"
 #include "Adafruit_SSD1306.h"
 
-//#define TOKEN "3252156354-fG0b1utXYAg5IqeJNMSJFlenx1rgSRXm5wgk21l"
-#define TOKEN "UserToken"
+#define TOKEN "3252156354-fG0b1utXYAg5IqeJNMSJFlenx1rgSRXm5wgk21l"
+//#define TOKEN "UserToken"
 
 // an SPI sub-class that provides a constructed default
 class I2CPreInit : public I2C
@@ -24,7 +24,8 @@
 {
         int phy_link;
         printf("Wait a second...\r\n");
-        uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x03, 0x04, 0x02}; 
+        //--------- Have to modify the mac address-------------
+        uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x03, 0x04, 0x22}; 
         
         EthernetInterface eth;
         eth.init(mac_addr); //Use DHCP