Questions tagged [web-server]
A web-server is a system which delivers data such as web-pages to a client system.
248
questions
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
215
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 ...
0
votes
1
answer
212
views
3 input (on/off/off with delay) to control 1device using ESP8266 as Web Server
I want to control one device in three ways : turn on / turn off / turn off with delay.
To do that i use an ESP8266 web server + android phone app.
The problem is that turn off with delay wont work.
It ...
1
vote
0
answers
57
views
how to set up an ESP8266 as a webserver
I would like to set up an esp8266, connected arduino as a webserver, specifically, one that has its own IP, and is stand alone, not connected to other networks, and offers its sensor info as the ...
0
votes
1
answer
218
views
ESP32 Cannot assign value to string. Getting wrong value
Hello I have problems with strings in my sketch. I assingn values to my string (for example tempStrReturn) in the functions setNr1, setNr2. If i pass the value 1 to the function i get "" or "...
0
votes
1
answer
324
views
How to connect multiple NodeMCUs and 1 PC over wifi and have PC control NodeMCUs? [duplicate]
I am trying to design a laser tag system using multiple NodeMCUs in the guns. I am trying to figure out how to connect and control them over WiFi. I also need a computer connected that will control ...
2
votes
1
answer
275
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 ...
4
votes
1
answer
901
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 ...
2
votes
1
answer
382
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'...
1
vote
0
answers
68
views
Parsing Data from local websever
i´m trying to build a little monitor of an ESP8266 and an OLED display that displayes the Status of a Robotarm.
The robotarm is controled by a RAMPSboard that has a webserver, so i can check the ...
-1
votes
2
answers
187
views
Arduino webserver POST receive varriables
I have been learning lower level data reading on internet communication
As a part of bigger project I am testing web interface.
So far I could get main website displayed and by seeing the web-address ...
1
vote
1
answer
516
views
How to display CAN BUS information on EPS32 web server?
I try to display the transmitted information from CAN bus on ESP32 web server. I saved the CAN.read() in a buffer receivedChars[i] and try to display the data by client.println(receivedChars[i]);}. ...
1
vote
1
answer
995
views
Serialize JSON as response to HTTP request
I'd like my ESP8266 to provide some JSON endpoints. I want to use ArduinoJson for serialisation. While this works in general if I serialize into a String and return this String afterwards, I was ...
1
vote
0
answers
786
views
How to get the body of an HTTP request?
I want to read a binary body datas from an HTTP POST request.
The context is that I'm making a LED strip controller and I'm currently using this code :
#include <WebServer.h>
#include <...
0
votes
1
answer
66
views
Can you make Arduino Uno send information through a WiFi module to a server?
A lot of tutorials are about how to control Arduino through WiFi, but I need my Arduino to send information about motion sensor activity to a server. Is that possible?
0
votes
2
answers
1k
views
ESP web server calling Javascript function
Is there a way to call Javascript functions from an ESP?
I don't want to call AJAX requests every few seconds; I want to update my values only when they change.
Can it by done?
0
votes
1
answer
168
views
Refreshing a web-page hangs after few times
I'm using a Nucleo F429ZI board and I wrote a sketch that enables a simple web-server:
#include <LwIP.h>
#include <STM32Ethernet.h>
const int WEB_PORT = 80;
EthernetServer server(...
1
vote
0
answers
96
views
Getting maxretry error when trying to ping using python requests or urllib3
I have written this code working on SimpleHost example from ESP8266Ping library,
the code works,
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <ESP8266WebServer.h>
#...
1
vote
0
answers
125
views
8266 get uint8_t PROGMEM array from uploaded file
I'm new programming arduino. I have connected an Adafruit thermal printer to an ESP8266 board.
I've the example code for use the board like a webserver that allow upload files. What i want is to ...
1
vote
0
answers
422
views
ESP8266 keeps restarting after a few hours of use and dead after 1 month of use
I have tried to make a water heater relay controlled by an ESP8266 (NodeMCU v1.0). The ESP8266 is connected to a central WiFi in my house, the ESP8266 also has its own WiFi so I use STA and AP mode ...
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 ...
1
vote
1
answer
966
views
ESP8266 Webserver ESP8266WebServer move Handler-Function in separate .h .c file
The plan is to create a bigger project and to split the ESP8266 webserver-code over several modules (.h .c files). The main problem is that the ESP8266WebServer server is not declared in the index.h ...
1
vote
0
answers
52
views
Extend Pyduino over wireless network
I followed a guide to control my arduino uno using a python web server API (flask), and it works like a charm using the COM port on my PC. I would like to extend this over the network with an ESP8266 ...
-1
votes
1
answer
42
views
command keeps echoing because web page tries refreshing
I want to execute a action only once when I press web page button but as the page tries refreshing the action gets executed in a loop.
I am using the wifimanualwebserver example for esp8266.
Please ...
0
votes
1
answer
390
views
Esp8266 + Atmega328p as flash
Being clear I'm not talking about How to flash ESP8266 using arduino.
I want to ask how can I use atmega328p as flash with esp8266 (instead of that 8 pin small chip on ESP-01) so that I can burn ...
1
vote
1
answer
1k
views
Control DC Motor with Arduino Uno WiFi Rev2 Html Slider Code
I would like to control my dc motor using the Arduino Uno WiFi Rev2 using an html range slider. Now I can control the motors speed and direction using push buttons just fine. My code is posted below ...
-1
votes
1
answer
381
views
how to convert date to timestamp? [duplicate]
How should I convert date format(dd-mm-yyyy) to timestamp value . Can anyone suggest code how to convert and where to put code .
-1
votes
1
answer
149
views
How do I send Sensor Data from one Arduino to another Arduino that is a Webserver to post it?
I have been looking for over 2 hours now and just cant get it figured out. Im very confused as to how to do this. The solution I thought I found was to use HTTP POST. But I just cant get it to work. ...
1
vote
0
answers
168
views
How to implement server.on() without any libraries?
I was trying to setup a web server with Arduino and ESP32, without using the ESP32 libraries.
Currently I'm able to display a webpage(a form with single submit button) from the server, with only using ...
2
votes
0
answers
395
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 ...
0
votes
1
answer
96
views
Nodemcu POST Response "-1"
Nodemcu device is returning HTTP response -1 for a POST request on django rest api.
I tried the below http request to Postman, and it works perfectly fine.
http://localhost:8000/api/datalogs/?plant=...
4
votes
3
answers
21k
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 ...
1
vote
0
answers
4k
views
Send Arduino data to PHP inorder to upload in MySQL database
I'm trying to send arduino data to my online web server using a Arduino Uno and a Ethernet shield. I used POST method for sending data and tried sending data to my sever (add.php) using a online POST ...
1
vote
1
answer
2k
views
Multiple WiFi client/server connections
I'm implementing a WiFi HTML web server using the WiFiNINA library, an Adafruit Airlift ESP32 coprocessor, and a Teensy 3.5. It's starting to work, but I have a couple of questions. This simplified ...
1
vote
0
answers
449
views
Creating global webserver without port forwarding
I'm setting up a "Smart House" project with Arduino+Esp01F(Serial Communication).
But I want to make it global server. For it I use WiFiEsp library. But for it I must Get any port (neither 80 nor 443),...
1
vote
0
answers
2k
views
Using ESP32-CAM (with ov2640 camera image sensor) to send image via USB
I was trying to obtain image from ESP32-CAM (with ov2640 camera image sensor).
I obtained the image through camera web server by connecting the ESP32-CAM and PC to same wifi network. A USB to TTL ...
1
vote
1
answer
1k
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
0
answers
128
views
Why sometimes parsed data is null in WiFiEsp?
I'm setting up web server with args. As host.com/?pin=9. I parsed the response by indexOf and substring functions. In first connection response has been successfully
parsed and number has been parsed ...
1
vote
0
answers
169
views
Creating WebServer with 5000 port with AT command(ESP-01f)
I'm setting webserver with toggle led. I want to create global webserver. I`m mean hat use server with global ip. For it I must use port too. global ip/local ip:port.
I want to create on 5000 port. I'...
0
votes
1
answer
183
views
How do I properly use the WiFi capabilities of ESP8266?
I am creating a project with an ESP8266 (Arduino IDE) which requires it to serve a webpage to a client. The module will be connected to a WiFi network by default, but when that WiFi network is not ...
1
vote
0
answers
446
views
ESP32 OTAWebUpdater only works on mobile
I'm experiencing something strange. I opened the default ESP32 example "OTAWebUpdater" in the ArduinoIDE and modified just the network part (I created a soft AP instead). The problem is, when I ...
0
votes
0
answers
206
views
WiFiServer Stops After Reconnection to WiFi
In the following code, the Arduino is reconnecting to the WiFi after several loops. The idea is to check and re-establish WiFi connection every 30 minutes or so.
However, the WiFiServer seems to ...
0
votes
1
answer
2k
views
Create one server in AP mode and another in station mode
I'm trying to connect one ESP8266 to WiFi as a WebServer in station mode and to another ESP8266 as a server (that has no web pages) in AP mode.
The problem is both servers are being created in AP ...
1
vote
0
answers
40
views
Connect Arduino and ESP8266 NodeMCU
I want to connect multiple sensors and see their measurements via ESP8266 Web Server. But, the problem is that ESP8266 has only one analog pin and I can't connect multiple sensors to it, so i need to ...
0
votes
1
answer
70
views
why arduino can not write to server?
i write a code for Arduino + SIM800 for connecting to server.
but it don't work!
SerialGsm.println("AT+CIPSEND=63\r\n");
delay( 1000 );
receive_message();
SerialGsm.print( "GET http://sasasas.ir.ir/...
0
votes
1
answer
2k
views
Sim800L Uploading issues, HTTPACTION returns 0, 302, 701
I'm using the Sim800L module and the NEO6M GPS Module in combination with an Arduino nano to create a simple tracking device. I get the data from the GPS and try to upload it to my site with some ...
1
vote
2
answers
2k
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 ...
0
votes
1
answer
523
views
Change css form color from esp32 if statement
I am fairly new to arduino and ESP though am very familiar with css and javascript.
I have an esp webserver that includes a button
client.print("<button style='background-color: #F30C0C; color:#...
1
vote
1
answer
50
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 ...
2
votes
1
answer
231
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 ...