Questions tagged [web-server]
A web-server is a system which delivers data such as web-pages to a client system.
247
questions
49
votes
11
answers
13k
views
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 ...
9
votes
2
answers
10k
views
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 ...
7
votes
3
answers
10k
views
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",
...
7
votes
1
answer
4k
views
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 ...
7
votes
1
answer
589
views
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 ...
6
votes
4
answers
4k
views
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. ...
5
votes
3
answers
27k
views
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 <ESP8266WiFi.h>
const char* ...
5
votes
2
answers
20k
views
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 ...
4
votes
1
answer
897
views
What does []() argument in function mean?
I am working in ESP8266 AsyncWebserver library and have been using this [](parameter) as an argument to some functions as shown below but does not really know what it means. Being a neophyte I am ...
4
votes
2
answers
1k
views
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 ...
4
votes
3
answers
20k
views
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 ...
4
votes
0
answers
2k
views
Sending data from Arduino UNO as a SOAP request [closed]
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 ...
3
votes
1
answer
13k
views
Arduino webserver: faster alternative to "indexof" for parsing GET requests?
I have a webserver successfully running on an Arduino Mega, but I'm trying to make sure it's parsing the GET requests in the fastest way possible. This is what the relevant code for the GET requests ...
3
votes
2
answers
450
views
Design Dilema -- What hardware?
I'm trying to build a smart thermostat for a particular application. I have the following design criteria and goals for the system:
Must be able to set up and monitor the device from either a mobile
...
3
votes
1
answer
13k
views
How do I get the request params from a ESPAsyncWebServer?
I currently have the following code
server.on("/on", HTTP_POST, [](AsyncWebServerRequest *request) {
Serial.println("ON hit.");
String message;
Serial.println(request->url());
if (...
3
votes
1
answer
784
views
Ethernet shield programming
This is first time programming with Ethernet shield . I want to test the web server application with my Arduino. I have an Arduino Uno, Ethernet shield, and a potentiometer. Below code being uploaded.
...
3
votes
1
answer
297
views
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 ...
3
votes
2
answers
1k
views
Connect Arduino Uno to video camera's web Server via Ethernet (not working)
I work with cameras in the film and TV industry. A project I have just started tinkering around with is building an Arduino Uno-based box that would automatically collect the metadata (settings, etc.) ...
3
votes
1
answer
1k
views
Bluetooth Master and Slave to track device's locations
I'm trying to create an app for my science fair that uses bluetooth to track people in a determined place.
I was thinking about one Arduino system to receive all the information and transmit through a ...
3
votes
1
answer
3k
views
How to read a Text file from server and store to a separate variable?
I am working on reading a text file from the server, using http://arduino.cc/en/Reference/GSMClientConnected. It gives me this code:
char path[]="/asciilogo.txt"
I want to store only the contents ...
3
votes
0
answers
941
views
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 ...
3
votes
0
answers
487
views
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 ...
3
votes
0
answers
242
views
Arduino UNO WiFi RestServer returning "not found"
I'm trying to run RestServer on my Arduino UNO WiFi, and I'm currently using the tutorial from Arduino: http://www.arduino.org/learning/tutorials/boards-tutorials/restserver-and-restclient
Everything ...
3
votes
0
answers
5k
views
Arduino Ethernet shield server and client at the same time [closed]
Hardware:
Arduino Mega 2560 Rev3
Ethernet Shield Rev3
A sensor
Goal:
Take value from sensor, upload it to ThingSpeak.
Host a web page on the Arduino.
Question:
I've done both things in the past. ...
2
votes
1
answer
130
views
How can I do web hosting having all the code of the site stored in a sd?
I am carrying out this project in which the arduino acts as web server and hosts a website in which I show the constantly updated temperature of a laboratory.
The problem is running all this code in ...
2
votes
5
answers
860
views
How to make better looking webpages on an Arduino webserver?
I have a Teensy 4.1 with ethernet, but I have other networked MCUs like a D1 mini, various ESP8266s and Arduino ethernet shields.
My question is: how I can make better looking web pages on these ...
2
votes
2
answers
2k
views
Is it possible to use AWS and Arduino Uno to upload data from Arduino to a website running on my localhost?
I was wondering if it's possible to send data from my Arduino Uno (e.g. from the temperature sensor) to the Amazon Web Service RDS or anything there, which will then upload the data to a website on my ...
2
votes
2
answers
774
views
ESP12E Soft WDT reset stack trace leads to libraries
Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server.
It runs smoothly when the web client is closed but when i leave the ...
2
votes
2
answers
15k
views
'content' is not captured
I try to make a variable that can be modified from the server, using and ESP8266.
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <...
2
votes
3
answers
2k
views
Ethernet shield/WebServer problem: 'server is at 0.0.0.0'. Any suggestions how to debug it?
Ethernet shield problem. When running the WebServer example sketch, the Serial Monitor shows that server is at 0.0.0.0. Any suggestions how to debug it?
2
votes
1
answer
2k
views
ESP32 Access Point and HTTP Web Server, how to send multiple parameters?
I made this minimal example in order to figure out how to get requests (or whatever they are called) to display in the serial monitor. However, none of the query parameters (in the URL) can be seen in ...
2
votes
1
answer
496
views
How do I get an HTTP_POST response?
I have a function for HTTP_POST responses but it is never called when I post to it. I get the webpage instead.
I call on it with
server.on("/",HTTP_POST,response);
But I only get the url in ...
2
votes
1
answer
465
views
Run function concurrent to server.available()
I have a Arduino UNO WiFi Rev2 board that runs WiFiServer serving as a web server. The server listens and accepts clients using server.available(). I also want a loop that controls a servo in ...
2
votes
1
answer
272
views
Securing ESP8266 connections
In my setup, I've got a number of ESP8266 devices around my home controlling various devices like my boiler and some lights.
They're all controlled by a central smart hub on a Raspberry Pi with a ...
2
votes
1
answer
1k
views
ESP8266 Webserver ESP8266WebServer variable html page (not as one const char)
The aim is to display a non-static html page depending on some variable condition.
The code I created hast the problem, that the esp8266 is ressetting in the moment I request the page.
const char ...
2
votes
1
answer
227
views
Creating WebServer ip:port on esp8266 module
I creating Clever House with wifi. For this I'm using ESP8266 as module connected to Arduino. They communicate with SoftwareSerial. And there's a problem with global webserver on ESP8266. That I think ...
2
votes
1
answer
676
views
Are there any Wi-Fi modules for the Arduino Uno that may connect to an external Wi-Fi Antenna?
I have an Arduino Uno I need to connect to Wi-Fi to make HTTP POST Requests to a Raspberry Pi Web Server.
The Arduino is located only about 30 feet from the AP, but there is a brick wall in the line ...
2
votes
1
answer
756
views
TCP or HTTP connection between web server and arduino
If arduino works as a client and tries to connect to web server (the server is mine), should I connect to it via TCP or HTTP connection? Data will be simple strings (20 chars at max) so TCP connection ...
2
votes
1
answer
2k
views
How to Set RTC in ES32 using NTP server?
I am working on ESP32 And want to set RTC from the NTP server. How can I get epoch value I have done this thing on CC3200 launchpad and used an NTP server library to obtain epoch value.
2
votes
1
answer
211
views
Latency in Websocket
I am using Websocket, for a communication from my mobile phone to a NodeMCU, and transmitting 4 channel, data, through 4 different Websocket Ports.
the NodeMCU control code is here:
// ============ By ...
2
votes
1
answer
379
views
Sending Variable to IFTTT via ESP32 using Asynchronous Web Server
I have been trying to send three variables to IFTTT from my ESP32 using Asynchronous Web Server. However, I couldn't set the "URL" that was supposed to be the response that will trigger my IFTTT. Here'...
2
votes
1
answer
13k
views
ESP32 in Arduino-IDE with FS.h and SPIFFS
I'm working on a webserver on ESP32 in Arduino IDE and would like to load an html-file. Tried to use SPIFFS.open from the library FS.h from github.
Errormessage says SPIFFS was not declared in this ...
2
votes
1
answer
2k
views
Wifi server to control led on and off from local webpage.. - ..if statement doesnt work...
Im a newbie on this arduino thing and I would like to build a curtain remotecontrolled from a local webpage with 2 buttons... a up an a down...
I got the connection via my phone the the local page ...
2
votes
0
answers
295
views
Using both FastLED and Webserver without glitches possible?
I'm using an ESP8266 to control a short strip of WS2812 LEDs. I also want some way of remote Control so I'm looking into using a Web UI with the ESPAsyncWebServer library.
However using that Webserver ...
2
votes
0
answers
314
views
How to fix this problem of invalid conversion from 'const char*' to 'char' [-fpermissive] [closed]
Im working with node mcu ESP 8266 and trying to make it a webserver but keep encountering this problem.
#include<ESP8266WiFi.h>
WiFiClient client;
WiFiServer server(80);
void ...
2
votes
0
answers
421
views
Controlling Offline ESP8266 from secure website
I want to control my ESP8266 device from my secure website via 2 different ways:
if ESP8266 is connected to internet, commands between website and device will sent over MQTT which as working ...
2
votes
0
answers
392
views
Delayed response from web server
I am trying to implement a web server in ESP8266 that will handle simple HTTP GET requests by initiating an operation (e.g. move a stepper motor to the requested position) and return a response when ...
2
votes
0
answers
2k
views
Arduino HTTP post image to external server
I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
2
votes
0
answers
845
views
Cant get rid of Soft WDT reset using ESP8266
Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly but after while i always get a watchdog timer reset. (If ...
2
votes
0
answers
840
views
HTTPS POST method fails in esp32
I was trying to connect with server but, I was unable to post the data. I have added the SSL key to connect with server that is happening but HTTPS POST is not. I tried the same method with http, I am ...