Added DNS resolver to [19_m1284p_WIZNET_blynk],

slightly optimized code. Tested on M644p - OK.
This commit is contained in:
maxxir
2019-03-12 22:12:23 +04:00
parent 271dfb17ce
commit ddef579714
10 changed files with 836 additions and 345 deletions

View File

@@ -29,9 +29,6 @@ static FATFS Fatfs; //File system object for each logical drive. >= 2
//******************************* Fat FS declare related: END
#define HTTPD_MAX_BUF_SIZE 2048 //For Mega1284p(16kb RAM)/Mega2560(8kb RAM)
//#define HTTPD_MAX_BUF_SIZE MAX_URI_SIZE+10 //For Mega644p(4kb RAM)/Mega128(4kb RAM) (ie. 512+10=522 bytes look at httpParser.h <_st_http_request> definition)
#define PRINTF_EN 1
#if PRINTF_EN
#define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args)
@@ -39,7 +36,9 @@ static FATFS Fatfs; //File system object for each logical drive. >= 2
#define PRINTF(...)
#endif
#define IP_WORK
#define SPRINTF(__S, FORMAT, args...) sprintf_P(__S, PSTR(FORMAT),##args)
//#define IP_WORK
extern unsigned long millis(void);
extern int freeRam (void);
@@ -61,5 +60,8 @@ extern const char compile_time[] PROGMEM;
extern const char str_prog_name[] PROGMEM;
extern wiz_NetInfo netInfo;
extern uint8_t DNS_2nd[4];
#define BLYNK_DATA_BUF_SIZE 1024
#endif /* GLOBALS_H_ */