Questions tagged [web-server]

A web-server is a system which delivers data such as web-pages to a client system.

A web-server delivers data to clients across a network. The most common data is web-content, such as text or HTML files, plus any associated images, stylesheets (CSS), and scripts. Typically, the client is a web-browser, and the delivery occurs via the Hypertext Transfer Protocol (HTTP).

In addition to delivering static web-page data, the web-server may also process it in some way. For example, it may add sensor readings into the page. The page may also include a form which enables the user to submit data back to the server. When the server receives this data, it can act on it in some way, such as updating an internal database, or even controlling connected equipment.

To use an Arduino as a webserver, some kind of networking hardware is required, such as Ethernet or Wifi. This may be built-in to the board (e.g. the Arduino Ethernet), or added using external hardware (e.g. the Ethernet Shield). More information is available in this tutorial.

This tag should be used for questions about using an Arduino as a web-server.

253 questions
49
votes
11 answers

Is an Arduino capable of running 24/7?

I'm making a simple Arduino web server and I want to keep it turned on all the time. So it must endure to stay working continuously. I'm using an Arduino Uno with a Ethernet Shield. It's powered with a simple outlet power supply 5V @ 1A. My…
Butzke
  • 802
  • 1
  • 7
  • 21
9
votes
2 answers

How do I use Arduino and node.js?

I am new to Arduino, however I have experience in web development, lately I have been using, meteor js and the mean stack for different projects. However, I am open to trying any language for development. What I am trying to do is build a simple…
Anders Kitson
  • 93
  • 1
  • 3
7
votes
3 answers

How to allow cross-domain requests on ESP8266WebServer

I am using a Raspberry Pi running Chrome (handling the user interface) and connecting via ajax to an Arduino D1 compatible using the IP address as follows: $.ajax({ type: "GET", url: "http://10.1.1.100/myfunc?id=5", …
Chiwda
  • 252
  • 1
  • 3
  • 11
7
votes
1 answer

Serving binary file with ESP8266WebServer

I am currently using a Nodemcu ESP8266-12E with the Arduino IDE in order to control my boiler. Everything is working fine, however I haven't figured out yet how to serve binary files, eg. images. (I am hosting them on a server at the…
Force
  • 173
  • 1
  • 5
7
votes
1 answer

On Arduino Due webserver, there is a 5 second delay on Windows, only when connected via native port

My Due webserver was working perfectly fine for months when connected to Linux via the native port. But when connected to Windows 10 via the native port, if the Arduino webserver is idle for about 5 minutes (when no client calls a webpage), then…
Jerry
  • 533
  • 1
  • 6
  • 21
6
votes
4 answers

How to assign text stored in a local file to a string at compile time

I'm developing a program that uses the HTML server in the WiFi101 library. My hardware does not have SD card storage so all source html needs to be stored as strings in the sketch at compile time. To aid in development I want to keep my html files…
Geordie
  • 195
  • 1
  • 7
5
votes
3 answers

WebSocketsServer.h: No such file or directory

I'm trying use the NodeMCU WebSocket. I downloaded the required libraries from: https://github.com/Links2004/arduinoWebSockets and pasted them in my Arduino libraries folder. I uploaded my code but got this error: WebSocketsServer.h: No such file…
Zainab Shah Khan
  • 53
  • 1
  • 1
  • 4
5
votes
3 answers

Multiple client server over wifi

Trying to setup a server on Arduino to support multiple clients, I am able to support one but I don't want to flush that client to make another connection. #include const char* ssid = "your-ssid"; const char* password =…
user28203
  • 61
  • 1
  • 1
  • 4
5
votes
2 answers

How to receive data from my server database to a variable in my Arduino?

I am learning to work with the client - server communication. I am able to communicate with my server and able to store values in the table. But I want to receive one of the specific data from the database. Here I want to get the 'abc' value from…
Manihatty
  • 395
  • 1
  • 5
  • 16
4
votes
0 answers

Sending data from Arduino UNO as a SOAP request

I have a servo motor on one end which can be turned ON and OFF with web service sending SOAP request. In the other end I have my Arduino UNO with ESP8266. Currently, I am able to send HIGH or LOW status from my Arduino to ESP8266. My query is:…
jerry_22
  • 41
  • 3
4
votes
2 answers

How can an Arduino Mega 2560+Wifi Shield 2.0 (SeeedStudio) receive data from database in a XAMPP server on my PC?

I'm trying to connect my Arduino Mega via Wifi to my XAMPP server. My main objective is get a value from my database and store it on a variable in Arduino code. With this new variable I'll be able to control the rest of the program... So I need your…
3
votes
1 answer

ESP32 AP Automatic Web Page

I've often encountered WiFi networks that require you to sign in through a web page that automatically opens after connecting to the access point, such as hotels. I'd like to implement something similar with an ESP32, where a web page opens…
Fromen
  • 71
  • 1
  • 5
3
votes
0 answers

ESP8266 Webserver does not respond

I am trying to reach the webserver running in my Wemos D1 Mini compatible board. I am trying one esp8266 example using Arduino examples "WifiManualServer" code below. I have replaced the SSI and password for my wifi network in the lines #define…
3
votes
1 answer

Where to define web server callback functions so they can access server object? (ESP8266WebServer library)

I want my ESP8266-based device to create an accesspoint that allows the user to input their home ssid and password. There is a device object that holds most of the data defined elsewhere. I'm trying to use the ESP8266WebServer library. It requires…
LearnDude
  • 31
  • 1
3
votes
0 answers

ESP32 HTTP Server request interrupts Telnet session

I have an ESP32 application that uses a web server as a user interface. For auditing and debugging during development I use Serial; however, that is impractical in the installed system. So, I decided to use Telnet (TCP/IP) to monitor what is…
1
2 3
16 17