Questions tagged [http]
Hypertext Transfer Protocol (HTTP) is an application level network protocol that is used for the transfer of content on the World Wide Web.
183
questions
0
votes
0
answers
27
views
How to send high priority http request with FreeRTOS?
I'm new with RTOS concept. Tried a few example, also have tried http request with FreeRTOS over WiFi and it works. Now I have project using ESP32 and SIM808 for GPS and SIM Card Module. SIM808 support ...
1
vote
0
answers
164
views
What can be the reason for a Stack canary watchpoint triggered (loopTask) on a https get() command?
I have a program that only do get and post to a controller via an ethernet port. My problem is that after a certain amount of loop in the program, i got this error:
Guru Meditation Error: Core 1 ...
1
vote
1
answer
66
views
HTTP POST request error on esp8266 to my localhost (error:-1)
I've looked around for solutions and tried but can't get this to work. I'm trying to send a POST request to a localapi. My code:
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#...
1
vote
1
answer
357
views
ArduinoHTTPClient POST multipart/form-data from SD card returning 400 Bad Request
I have been having trouble trying to send a small txt file to my server using the following function with TinyGSM. I know I am connected to the internet and reaching the web server, however, I keep ...
2
votes
0
answers
391
views
Receive data from ESP32 with HTTPClient
I need to receive data from sensors on the websites located on my PC (hosted with XAMPP).
When I was first using AsyncWebServer library and hosting them on ESP32 everything was working with a ...
1
vote
1
answer
206
views
stream a "big" array of measures to a server through wifi
I'm measuring accelerations at "high frequency" (4kHz) from an accelerometer (ADXL355/ADXL357) to an esp32. It's crucial that no sample is lost while performing a measure which last say 2 ...
2
votes
0
answers
93
views
Using HTTPClient with ESP not working
I have a program running on an esp8266 that attempts to fetch json data from an HTTPS endpoint that is hosted on aws amplify (data comes from a next.js app).
I can retrieve the data correctly when I ...
1
vote
0
answers
228
views
ESP32-CAM not sending base64 string as HTTP post request
in my recent project, I'm trying to detect motion and capture an image using the esp32 cam module and send it to the server via HTTP.
Once the image is captured it is converted to a base64 string and ...
1
vote
2
answers
408
views
ESP32 HTTP Request handles Go webserver response, but fails on node JS servers
I've set up an esp32 board (wemos d1 r32) to send a request to a server hosted on my local network. If I set up a very basic go server, the board handles the response fine (200 with the appropriate ...
0
votes
1
answer
875
views
EspAsyncWebServer process HTTPS to HTTP
I read this issue. But I didn't understand it.
Like the author I don't have an SSL certificate and I don't want to have one (because if I had one I could live with HTTPS!).
I just want to process any ...
1
vote
0
answers
367
views
ESP32-S3 - HttpClient only returns 200 status code no JSON payload data
I have a ESP-S3 board and am trying to get JSON data from our server. I am using the following code (see below) as a basis for mine.
This code works. If I change
http://jsonplaceholder.typicode.com/...
0
votes
0
answers
406
views
Stream data using Firebase Realtime Database rest api with nodeMCU client
I have data on firebase rtdb, which i want to listen in my nodemcu. I know there are libraries available like this one which provides listeners, but i want to do it using REST API streaming as ...
-1
votes
1
answer
1k
views
POST request (HTTPClient) with ESP8266 not working on localhost (http code = -1)
I've been looking around for a solution, but couldn't manage to find one. I'm looking to send a post request from an ESP8266 on a local API.
Here is my code :
#include <ESP8266WiFi.h>
#include &...
-2
votes
1
answer
150
views
Connect to 8Base API with TLS on Arduino Uno Wifi Rev2
I'm trying hit some endpoints on the 8Base API with the Arduino Uno Wifi Rev2. I was able to get this API call to work with Postman, but I've had no luck once I convert it to my Arduino code. In ...
-1
votes
1
answer
749
views
Use of ESPAsyncWebServer.h with ArduinoJson version 6 for Master-Client transactions
I want to communicate two (2) ESP32's via Json commands using ESPAsyncWeb.h. The master should have specific operations to execute and respond to the client, and the client should be able to send ...
1
vote
0
answers
575
views
ESP32 - SIM800 - HTTPS lwIP
I am using ESP32 and SIM800L for my project. The SIM800L does support SSL, TLS 1.0, and TLS 1.1. But web servers nowadays usually support only TLS 1.2 and 1.3. I heard, that the ESP32 HTTPS client can ...
1
vote
1
answer
242
views
MAX30100 and ESP8266 NodeMCU Serial Errors
This is my final year project and for some reason, the max30100 sensor defaults to static values once the HTTP post request has been performed.
#include <ESP8266WiFi.h>
#include <...
0
votes
1
answer
305
views
What GSM module I should use for HttpClient, ArduinoHttpClient, WebSockets etc.?
I need to use some API in my project. So I'm gonna use such libraries as listed in the title? What GSM/SIM module do I need for this purpose? I've checked 800L and similar - it only can use plain http,...
-1
votes
1
answer
1k
views
ESP32 Access Point using ESPAsyncWebServer, how to send multiple parameters between submenu and main (index) menu while still retaining page layout? [duplicate]
I am trying to figure out how to get requests (or whatever they are called) to display in the serial monitor, yet not change the HTML page bodies.
The user selects their choices in the submenu (...
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
0
answers
532
views
HTTPClient works with localhost but not server
I started to work with HTTPClient and the WiFly library to connect to an SSID and then send POST data to a server. When I was sending the data to my localhost, it was working on localhost, but when ...
1
vote
0
answers
432
views
ESP8266 How to run MQTT Client and Http Client in one loop
Scenario: Existing project: read soft serial then do http post
New project: MQTT player from other (MrDIY / MrDIY Audio Notifier · GitLab)
Objective: Combine together (Result: successful )
Issue: When ...
1
vote
1
answer
165
views
WiFi.h library, Issues with client.print()
I have an esp32 development board that I am trying to use to get Bitcoin price data using the Coinbase api.
On the Coinbase developers website, they give this example Curl command to get Bitcoin price ...
1
vote
1
answer
462
views
Simple GET request is failing silently
I'm trying to make a simple GET request to a server (which has a static IP but does not have a name). I'm using EtherCard library and a cheap ENC28J60 Ethernet Module. The basic configurations are OK (...
1
vote
0
answers
288
views
Error Performing HTTP GET request on google sheets (Apps Script) using TTGO T-CALL
I've tried using several libraries such as TinyGSM, SoftwareSerial, AT commands but I'm guessing the problem to be with my GET request url is https://script.google.com/macros/s/GAS_ID/exec?tag=1234&...
1
vote
1
answer
724
views
HTTPS GET request working on esp32 but not on esp8266
I'm trying to port my esp32 program to esp8266, and i've come across a problem where i can't get a response from a HTTPS GET request on esp8266, but on my esp32 the same code works fine.
The function ...
0
votes
1
answer
1k
views
How to send int array with ESP8266 http post request?
I'm reading RFID cards' UID with an ESP8266 and trying to send that information to my web server hosted on a Raspberry Pi. I'm currently storing the UID in an int array, but the http.POST(); function ...
1
vote
0
answers
828
views
Error 1,603,0 when http post request using arduino and sim900a by Json format
I want to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data and have an error.Can someone help me to solved the error 1,603,0 since I ...
0
votes
2
answers
2k
views
Arduino ESP8266 HTTPS Request returning empty response
I want to get some JSON data from a HTTPS secured Webserver using a ESP8266.
For some reason I'm getting an empty response, I believe there's an error parsing the GET request.
In Chrome I get the JSON ...
1
vote
0
answers
203
views
Http Client requests
I am working on a project where the ESP 8266 sends a very long string about 3000 chas over http as client. Likewise sensor data are determined. The loop repeats itself every 250ms. Now I noticed that ...
1
vote
1
answer
3k
views
SIM A9G: +CME ERROR: 53 failure
I'm using a SIM A9G. When I send HTTP GET command from the serial monitor, it responds. But, it doesn't work when included in the code.
#include <SoftwareSerial.h>
SoftwareSerial myserial(8, 7);...
1
vote
0
answers
764
views
Trying to improve speed of downloading files from server and writing to SPIFFS
update I have updated the code(second code segment) so that the null character is inserted into the array which solves the problem of writing past the end of the array. in order to stop the program ...
0
votes
1
answer
247
views
Whats wrong with my POST request?
Ive been trying to get POST working on my ESP8266. I followed this tutorial https://techtutorialsx.com/2016/07/21/esp8266-post-requests/ which works, but once i change the request URL to anything else ...
-3
votes
1
answer
102
views
How to put a condition on HTTP.POST?
I set my code to if it executes HTTP.POST, the count will reset / back to zero, but I noticed that even it returns other http code than 201 (-1 or 500), the count still resets.
How to put a condition ...
0
votes
1
answer
51
views
How to reset the count/data after HTTP.POST?
I have a project that records interrupts from a reed switch to nodemcu.
It records like this: 0.3,0.6,0.9,1.2 Then what I want to happen is to go back to zero when it successfully HTTP.POST to a ...
0
votes
1
answer
691
views
HTTP_GET not clarified in scope
I'm trying to do an async webserver with access point using an ESP32.
It's a little bit of a mix between This tutorial for AP and async and this tutorial since it's also with an async webserver and it ...
-1
votes
1
answer
70
views
HTTP-POST returns 400 when posting a value from the sensor
I'm trying to POST the data of total, but it returns 400. but when I try a sample data like
int httpResponseCode = http.POST("{\"amount\":\"total\"}"); (400)
into
int ...
1
vote
0
answers
46
views
Peculiar relay behavior from POST
I am trying to toggle on/off between two separate HTTP request.
One submit button to turn it on, and another separate submit button to turn it off.
I expect the device to launch in the off/low 0V ...
1
vote
1
answer
2k
views
Making HTTPS requests using ESP8266 AT commands
I am trying to make HTTPS GET/POST requests to the following server using AT commands.
AT+CIPSTART="TCP","54.166.71.140 ",443
I get errors when i use port 443 but on port 80 the ...
2
votes
0
answers
1k
views
GET/POST request via AT Commands
I am trying to send a simple GET/POST request to a dummy end point on https://requestbin.com/. I am using an ESP8266 module. I am using the arduino serial monitor to send these AT commands. I connect ...
3
votes
1
answer
2k
views
Arduino Library to make http post request with bearer authentication
I want to make an Http Post request with Bearer Authentication to my api using my Arduino Mkr Wifi 1010, but I couldn't find the appropriate library to do something like this (code generated with one ...
1
vote
3
answers
137
views
variable name standards, e.g best method to send motion_detect=true
I am working with some sensors and sending data to a public web server via http, I was thinking this server can be possibly used by more people to send their data and server displays a chart.
I was ...
0
votes
1
answer
543
views
Reading and Writing to a JSON File on the Desktop from Arduino?
I'm fairly new to Arduino. I'm working on a project where I'm making HTTP requests using a python code and this lets me read and write to a JSON file on my desktop. I have an Arduino with sensors that ...
3
votes
0
answers
490
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 ...
1
vote
1
answer
61
views
Frequency of Retrieving Data from Website
I have wrote a code that communicate with my website to retrieve data to power on or off a 5V relay. I'm running the code every second to make sure it is real time. Is there more efficient way to tell ...
1
vote
1
answer
216
views
Send JSON body with SIM900 board
I'm trying to send JSON, but i'm not able to set Content-Type header.
Other commands are successful:
[23:49:41:856] AT+SAPBR=3,1,"CONTYPE","GPRS"␍␊
[23:49:41:899] ␍␊
[23:49:41:899] ...
0
votes
1
answer
2k
views
esp32 http client response only 200 didn't receive the data after that
i am using esp32 as a client and using following example. So here i am getting header response only that is 200. I am not getting any response after that. here is the example
#include <WiFi.h>
#...
2
votes
5
answers
3k
views
ESP8266 not responding after random intervals of time
4th Update:
I bought an ESP32 (the successor to ESP8266) and am getting the same problem. I used the same code except used the Wifi.h library instead, also removed the ESP8266WiFiGratuitous.h code. I ...
0
votes
3
answers
2k
views
How to replace String objects with char arrays while still using string methods
I am running the following code on my ESP8266 (AI-Thinker ESP8266MOD).
I send an HTTP GET request and a pin is set to high for a 1/2 second.
However, after some time (sometimes 1hr, 2hrs, 12hrs, ...
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 ...