Tuyamcu raw access (#1048)

* working/?

* winnermicro fix

* ENABLE_DRIVER_TUYAMCU fx

* some fixes, some unfiished

* extra check
This commit is contained in:
openshwprojects
2024-01-24 11:18:29 +01:00
committed by GitHub
parent 717c9081d7
commit 55e2a66f7d
10 changed files with 218 additions and 2 deletions

View File

@ -2573,8 +2573,11 @@ const char* g_obk_flagNames[] = {
"[TuyaMCU] Use queue",
"[HTTP] Disable authentication in safe mode (not recommended)",
"[MQTT Discovery] Don't merge toggles and dimmers into lights",
"[TuyaMCU] Store raw data",
"error",
};
"error",
};
int http_fn_cfg_generic(http_request_t* request) {
int i;
char tmpA[64];
@ -2611,7 +2614,10 @@ int http_fn_cfg_generic(http_request_t* request) {
CFG_Save_IfThereArePendingChanges();
// 32 bit type
hprintf255(request, "<h4>Flags (Current value=%i)</h4>", CFG_GetFlags());
// 64 bit - TODO fixme
//hprintf255(request, "<h4>Flags (Current value=%lu)</h4>", CFG_GetFlags64());
poststr(request, "<form action=\"/cfg_generic\">");
for (i = 0; i < OBK_TOTAL_FLAGS; i++) {