mongoose/examples/modbus-dashboard/net.h

28 lines
565 B
C
Raw Normal View History

2023-11-27 10:50:46 +08:00
// Copyright (c) 2023 Cesanta Software Limited
// All rights reserved
#pragma once
#include "mongoose.h"
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(HTTP_URL)
#define HTTP_URL "http://0.0.0.0:8000"
#endif
#if !defined(HTTPS_URL)
#define HTTPS_URL "https://0.0.0.0:8443"
#endif
2023-11-29 15:41:18 +08:00
void web_init(struct mg_mgr *mgr); // Initialise Web UI
bool web_load_settings(void *buf, size_t len); // Load from disk/flash
bool web_save_settings(void *buf, size_t len); // Save to disk/flash
#define SETTINGS_MAGIC 0xaabbccdd
2023-11-27 10:50:46 +08:00
#ifdef __cplusplus
}
#endif