Skip to content

Mongoose library arduino w5550 example

Example of configuring an HTTP server using the Mongoose library on an Arduino-based system.

Benjamin

Published June 05, 2023

Original author: Cesanta SoftwareOriginal source (new tab)

Mongoose library arduino w5550 example

Components

Hardware components Software Apps and online services

Project description

This code is an example of configuring an HTTP server using the Mongoose library on an Arduino-based system. Here's a look at the individual parts #define SS_PIN 3 // Slave select pin struct mg_mgr mgr; // Mongoose event manager struct mg_tcpip_spi spi = { NULL, // SPI data [](void *) { digitalWrite(SS_PIN, LOW); }, // begin transation [](void *) { digitalWrite(SS_PIN, HIGH); }, // end transaction [](void *, uint8_t c) { return SPI.transfer(c); }, // execute transaction }; struct mg_tcpip_if mif = {.mac = {2, 0, 1, 2, 3, 5}}; // network interface In this part, we are setting up SPI…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.