mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 05:09:49 +03:00
MY_CONFIG_SERVER
This commit is contained in:
@@ -755,6 +755,11 @@ void saveFlash(short n, char* str)
|
||||
void loadFlash(short n, char* str)
|
||||
{}
|
||||
|
||||
#ifndef MY_CONFIG_SERVER
|
||||
#define CONFIG_SERVER "lazyhome.ru"
|
||||
#else
|
||||
#define CONFIG_SERVER QUOTE(MY_CONFIG_SERVER)
|
||||
#endif
|
||||
int getConfig (int arg_cnt, char **args)
|
||||
//(char *tokens)
|
||||
{
|
||||
@@ -763,7 +768,7 @@ int getConfig (int arg_cnt, char **args)
|
||||
int returnCode =0;
|
||||
char ch;
|
||||
char URI [32];
|
||||
char server[32] = "ri48.ru/tid";
|
||||
char server[sizeof(CONFIG_SERVER)+21] = CONFIG_SERVER;
|
||||
if (arg_cnt>0) {
|
||||
strncpy(server,args[1],sizeof(server)-1);
|
||||
saveFlash(0,server);
|
||||
|
||||
@@ -42,6 +42,7 @@ platform = atmelavr
|
||||
board = megaatmega2560
|
||||
framework = arduino
|
||||
;lib_ldf_mode = chain+
|
||||
build_flags = !echo -n "-DPIO_SRC_REV="$(git rev-parse --short HEAD)
|
||||
lib_deps =
|
||||
https://github.com/anklimov/Arduino-Temperature-Control-Library.git
|
||||
https://github.com/anklimov/DS2482_OneWire
|
||||
|
||||
Reference in New Issue
Block a user