This commit is contained in:
cpq authored and robert committed 2023-08-07 06:18:49 -04:00
1 parent 519d4b0286
commit 70fc71c6f7
7 files changed
+194 -88

No files matched your search

+4 -3
View File
@@ -39,7 +39,8 @@ static void timer_fn(void *arg) {
static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (ev == MG_EV_HTTP_MSG) mg_http_reply(c, 200, "", "ok\n");
}
(void) ev_data, (void) fn_data;
}
int main(void) {
gpio_input(BUTTON_PIN);
@@ -55,7 +56,7 @@ int main(void) {
// Initialise Mongoose network stack
struct mg_tcpip_driver_same54_data driver_data = {.mdc_cr = 5};
struct mg_tcpip_if mif = {.mac = {2, 3, 4, 5, 6, 7},
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC()/*{2, 3, 4, 5, 6, 7}*/,
// Uncomment below for static configuration:
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
@@ -72,7 +73,7 @@ int main(void) {
MG_INFO(("Initialising application..."));
mg_http_listen(&mgr, "http://0.0.0.0", fn, NULL);
//web_init(&mgr);
// web_init(&mgr);
MG_INFO(("Starting event loop"));
for (;;) {