|
@@ -15,12 +15,14 @@
|
|
|
|
|
|
#include "settings_api.h"
|
|
#include "settings_api.h"
|
|
#include "rtc.h"
|
|
#include "rtc.h"
|
|
|
|
+#ifndef BT6702_SERVICE
|
|
#include "snmp_api.h"
|
|
#include "snmp_api.h"
|
|
-#include "settings_api.h"
|
|
|
|
#include "snmp.h"
|
|
#include "snmp.h"
|
|
|
|
+#include "megatec.h"
|
|
|
|
+#endif
|
|
#include "sntp.h"
|
|
#include "sntp.h"
|
|
#include "common_config.h"
|
|
#include "common_config.h"
|
|
-#include "megatec.h"
|
|
|
|
|
|
+#include "settings_api.h"
|
|
//#include "d_inouts.h"
|
|
//#include "d_inouts.h"
|
|
#include "gpio.h"
|
|
#include "gpio.h"
|
|
#if defined HARDWARE_BT6702
|
|
#if defined HARDWARE_BT6702
|
|
@@ -53,7 +55,7 @@ extern WEB_PARAMS_t sTempWebParams;
|
|
* @brief Флаг подтверждения новых сетевых параметров пользователем
|
|
* @brief Флаг подтверждения новых сетевых параметров пользователем
|
|
*/
|
|
*/
|
|
extern bool fConfirmWebParams;
|
|
extern bool fConfirmWebParams;
|
|
-
|
|
|
|
|
|
+#ifndef BT6702_SERVICE
|
|
|
|
|
|
// ************************************************************************** //
|
|
// ************************************************************************** //
|
|
// Параметры UPS
|
|
// Параметры UPS
|
|
@@ -163,7 +165,7 @@ void GetAlarmStr(char *str, uint8_t *len)
|
|
*len = strlen(str);
|
|
*len = strlen(str);
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#endif
|
|
// ************************************************************************** //
|
|
// ************************************************************************** //
|
|
// Параметры даты и времени
|
|
// Параметры даты и времени
|
|
|
|
|
|
@@ -324,6 +326,7 @@ void GetDOUT1StatusStr(char *str, uint8_t *len)
|
|
// ************************************************************************** //
|
|
// ************************************************************************** //
|
|
// Информация
|
|
// Информация
|
|
|
|
|
|
|
|
+#ifndef BT6702_SERVICE
|
|
/**
|
|
/**
|
|
* @brief Время работы устройства
|
|
* @brief Время работы устройства
|
|
*/
|
|
*/
|
|
@@ -347,7 +350,7 @@ void GetWorkTimeStr(char *str, uint8_t *len)
|
|
sprintf(str, "%d дн. %d ч. %d мин.", day, hour, min);
|
|
sprintf(str, "%d дн. %d ч. %d мин.", day, hour, min);
|
|
*len = strlen(str);
|
|
*len = strlen(str);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#endif
|
|
/**
|
|
/**
|
|
* @brief Модель устройства
|
|
* @brief Модель устройства
|
|
*/
|
|
*/
|
|
@@ -420,6 +423,7 @@ void GetCommentsStr(char *str, uint8_t *len)
|
|
strncpy(str, sSettings.sInfo.comments, *len);
|
|
strncpy(str, sSettings.sInfo.comments, *len);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifndef BT6702_SERVICE
|
|
/**
|
|
/**
|
|
* @brief Модель UPS
|
|
* @brief Модель UPS
|
|
*/
|
|
*/
|
|
@@ -437,7 +441,7 @@ void GetUPSVersionStr(char *str, uint8_t *len) // +
|
|
*len = strlen(UPS.vertion);
|
|
*len = strlen(UPS.vertion);
|
|
strncpy(str, UPS.vertion, *len);
|
|
strncpy(str, UPS.vertion, *len);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#endif
|
|
// ************************************************************************** //
|
|
// ************************************************************************** //
|
|
// Настройки аутентификации
|
|
// Настройки аутентификации
|
|
|
|
|
|
@@ -806,6 +810,7 @@ void SetWriteCommunity(char *str)
|
|
strcpy(sSettings.sSnmp.writeCommunity, str);
|
|
strcpy(sSettings.sSnmp.writeCommunity, str);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifndef BT6702_SERVICE
|
|
/**
|
|
/**
|
|
* @brief IP SNMP менеджера
|
|
* @brief IP SNMP менеджера
|
|
*/
|
|
*/
|
|
@@ -857,7 +862,7 @@ void SetLocation(char *str)
|
|
strcpy(sSettings.sSnmp.sysLocation, str);
|
|
strcpy(sSettings.sSnmp.sysLocation, str);
|
|
SNMP_SetSysLocation(sSettings.sSnmp.sysLocation);
|
|
SNMP_SetSysLocation(sSettings.sSnmp.sysLocation);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#endif
|
|
/**
|
|
/**
|
|
* @brief Установить комментарий
|
|
* @brief Установить комментарий
|
|
*/
|
|
*/
|