Questions tagged [web-server]

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

Filter by
Sorted by
Tagged with
45
votes
11answers
7k 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
2answers
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
1answer
515 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 ...
4
votes
2answers
973 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 ...
3
votes
1answer
11k 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
1answer
3k 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 ...
3
votes
2answers
437 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
2answers
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
1answer
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
1answer
2k 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
2answers
16k 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 ...
2
votes
2answers
1k 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", ...
2
votes
2answers
15k 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* ...
2
votes
2answers
972 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
3answers
1k 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
1answer
164 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
2answers
7k 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
1answer
631 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. ...
2
votes
1answer
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
0answers
224 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 ...
2
votes
0answers
2k views

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 ...
2
votes
0answers
4k views

Arduino Ethernet shield server and client at the same time

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. ...
1
vote
2answers
509 views

Using a web server with Arduino

So I am not new to arduino, however, I am new with web servers. I am working on a project that can control a robotic arm that is at one location and I can be at my house. I know basic HTML, Basic CSS, ...
1
vote
1answer
38 views

Webpage values wont update

I've been trying to run the following esp32 LED PWM code to change the LED's brightness, and show the current PWM duty on the webpage, but the PWM values on the webpage won't change until I hit the ...
1
vote
1answer
92 views

Mega <> esp8266 comms sending baffling data

I have Wemos Mega-ESP8266 board. I have uploaded a simple WebSocket server on the ESP... #include <ESP8266WiFi.h> #include <WebSocketsServer.h> const char* ssid = "SKYNET"; const ...
1
vote
3answers
4k views

client.connect() fails except the first time

I am communicating with the Web server's database via Arduino GSM shield + GPRS connectivity void loop() { if (client.connect(server, port)) { ....... } else { ...
1
vote
1answer
148 views

Error Compiling sketch for Arduino Uno(ld return 1)

I have got an telnet server with esp8266 + SoftwareSerial+ UNO, and here I want to on led with command ON . will be 1 or 2. It is for recive 1 or 2 numbered pins. And I extract pin from request with ...
1
vote
2answers
171 views

ESP8266 Webserver not reachable after 2 minutes from reset

I have a Keyes Espressif ESP8266 NodeMCU, I have two LEDs that I want to control which are connected to the ESP. When I open the webpage http://10.0.0.5/5 after uploading the sketch it works fine. If ...
1
vote
3answers
116 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. ...
1
vote
1answer
1k views

How to HTTP post a data to Node express API from a Arduino esp8226?

I am HTTP posting a data to this web API https://morning-cliffs-85779.herokuapp.com/api/users from an Arduino connected to esp8226. I am using the wifiesp library to HTTP_POST data. The REST APIs are ...
1
vote
1answer
296 views

How to establish a connection between an Arduino and a web server via ESP8266 [duplicate]

I'm working on a IOT project where three or more IOT device communicates with a web server. The IoT device will have Arduino UNO which is connected to a ESP8266 so internet access is available. ...
1
vote
1answer
4k views

Arduino Web Server: Receiving response from web form

I am using an Arduino Mega and I have a basic webpage built using EthernetServer for the connection and EthernetClient to write the HTML to the client. I have a simple web form: client.println("<...
1
vote
1answer
4k views

Getting POST data into a char array

I'm using Energia to program TI's CC3200 MCU. Since Energia is based off the Arduino IDE, I'm hoping someone can help me here. I'm trying to get the CC3200 to act as a Webserver which when ...
1
vote
5answers
3k views

Create own apache web server on Arduino Uno… just like you can on a raspberry pi?

I was wondering if I could create my own apache web server on my Arduino Uno, just like I did on my raspberry pi - https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md Anyone ...
1
vote
1answer
645 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 ...
1
vote
2answers
2k views

Sending A String from a Website to Arduino

I'm quite new to Arduino and have looked at many tutorials featuring an Arduino requesting data from a web server through a Wifi Shield, but haven't seen one featuring the sending of data from a ...
1
vote
1answer
48 views

Is there any way to separate this short code into its own function? (webserver, trying to use client.print outside of main loop)

I have an arduino webserver that uses the following code: client.println(F("HTTP/1.1 200 OK")); client.println(F("Content-Type: text/html")); client.println(); client.println(F("<HTML><HEAD&...
1
vote
1answer
822 views

Arduino web server: redirect to mobile site on SD card?

Is there any way to have an Arduino web server redirect the client to a file on the SD card only if the client is using a mobile browser? (My arduino server is already successfully serving pages on ...
1
vote
5answers
478 views

Web Server Options

I want to give my project a simple web GUI to change config options. I know I could get a shield and write some horrible HTML in C but I'm wondering if there is a better way. Is there another IC I ...
1
vote
3answers
913 views

arduino webserver serves single web page to WAN/Internet very very slowly

I have an arduino web server running from a mega 2560 and a wiznet ethernet shield. It serves the single page just fine (and very fast) to the LAN (192.168.1.50), but serves the same page very, very, ...
1
vote
1answer
28 views

HTTP myphp request error RFID

This program is a program which readings of rfid are saved to myphp database. I have a problem when running the code The wifi is connected but when the code doesn't save im assuming that the problem ...
1
vote
1answer
5k views

How to pass JsonObject from ArduinoJson to ESP8266WebServer object?

I am learning the ArduinoJson.h library and creating jsonOject: JsonObject& prepareResponse(JsonBuffer& jsonBuffer) { JsonObject& root = jsonBuffer.createObject(); JsonArray& ...
1
vote
2answers
688 views

WeMOS creating soft access point from old code even when new code doesn't have it

In the past I uploaded the code below: #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <DHT.h> #define DHTTYPE DHT22 // DHT 11 #...
1
vote
1answer
2k views

Can't connect to my Arduino via W5100 Ethernet shield

I recently bought a W5100 Ethernet shield and I'm trying to run this simple example, which is a little improvement of the basic WebServer sketch provided by Arduino.cc #include <SPI.h> #include ...
1
vote
1answer
2k views

Webserver on Arduino: Refresh issues

I am using W5100 Ethernet Shield Network Module with arduino Uno as a webserver to trigger four relays connected to it. The relays may be toggled through the four buttons attached to it physically, ...
1
vote
1answer
839 views

Server checkbox not working properly

I am trying to make an arduino alarm clock to which you can send alarm clock times over the web. This is the HTML code <input type="checkbox" name="alarm1" id="alarm1">1</button> It's ...
1
vote
1answer
2k views

ESP8266 Web Server Crash + Arduino IDE

I am working on HTTP GET Request. I have created ESP wifi as web server. It creates a access point with IP address : 192.168.4.1 When my android app is connected to web server, it sends values every ...
1
vote
1answer
553 views

Got Trouble with ESP8266 and Arduino Yun using REST control

Sorry about my English. I'm a new bie in program Arduino and interested in ESP8266. I'm trying to use ESP8266 control Arduino Yun using REST API. Like you know, we using web browser as http://<...
1
vote
2answers
3k views

Uploading Temperature data (DHT22) to Thingspeak with an ENC28J60

So, I've gotten my module working pretty well. It logs data from the DHT22 and sends it to a 192 address on my LAN. However, I'd like to log and graph the data. I figured thingspeak is a decent ...
1
vote
1answer
59 views

How to handle a ESP8266 webserver only to the access point?

I'm developing a application that needs to be somewhat secure, so to configure the parameters it handles a GPIO interrupt (from a button) to open a server, that lets you configure it. The problem is ...