diff --git a/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.c b/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.c index 6097df6..a9eaf70 100644 --- a/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.c +++ b/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.c @@ -8,6 +8,7 @@ #ifdef IP_WORK //NIC metrics for WORK PC +uint8_t DNS_2nd[4] = {192, 168, 0, 1}; // Secondary DNS server IP wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address .ip = {192, 168, 0, 199}, // IP address .sn = {255, 255, 255, 0}, // Subnet mask @@ -16,6 +17,7 @@ wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac add .dhcp = NETINFO_STATIC}; //Static IP configuration #else //NIC metrics for another PC (second IP configuration) +uint8_t DNS_2nd[4] = {192, 168, 1, 1}; // Secondary DNS server IP wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address .ip = {192, 168, 1, 199}, // IP address .sn = {255, 255, 255, 0}, // Subnet mask @@ -28,4 +30,8 @@ wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac add #ifdef FTPD_AUTH_EN const char ftpd_user[] = "user1234"; const char ftpd_pass[] = "open_sesame"; + +//My auth token for my android test application "m1284 + W5500": +uint8_t auth[] = "add_your_own_token_here"; // You should get your own Auth Token in the BLYNK App + #endif diff --git a/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.h b/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.h index 96e6021..ae29455 100644 --- a/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.h +++ b/20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD/globals.h @@ -13,6 +13,9 @@ #include #include "avr/wdt.h" // WatchDog +#include "Ethernet/socket.h" +#include "Ethernet/wizchip_conf.h" + //******************************* Fat FS declare related: BEGIN #include "string.h" @@ -79,13 +82,20 @@ extern char uart0_receive(void); extern void uart0_rx_flash(void); extern void ls_dir(char* path); //M644P/M1284p Users LEDS: -//LED1/PORTC.4- m644p/m1284p maxxir +//LED1/PORTC.4/20 - m644p/m1284p maxxir brd #define led1_conf() DDRC |= (1<