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.

Filter by
Sorted by
Tagged with
-1
votes
0answers
20 views

Help me get the float value of USD_PHP from {"USD_PHP":50.597975} HTTP response [closed]

I am working on a project of esp8266 bitcoin ticker which shows the value of bitcoin in INR So first I need to get the value of 1 USD to INR in float value please note that I need this code to run on ...
0
votes
0answers
41 views

Error in HTTP Get request using Node MCU

I am just trying to integrate IFTTT in my code by using HTTP get request using below code. #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> String url = "https://maker.ifttt....
1
vote
1answer
30 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
1answer
73 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
0answers
27 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
1answer
65 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 ...
1
vote
1answer
186 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
0answers
54 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
1answer
282 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
0answers
29 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
2answers
423 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
0answers
109 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
1answer
52 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
1answer
56 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
1answer
31 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
1answer
135 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
1answer
31 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
0answers
42 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
1answer
375 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 ...
1
vote
0answers
122 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
1answer
771 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
3answers
124 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
1answer
139 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
0answers
217 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
1answer
48 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
1answer
87 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
1answer
1k 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> #...
0
votes
3answers
1k 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
3answers
833 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, ...
1
vote
1answer
133 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 ...
1
vote
1answer
113 views

Arduino Nano IoT 33 Char Array size constraints

I would like to save data that I am receiving from API calls in a char array. The problem is the data is around 80KB however my Arduino IoT 33 has 32KB of memory. It will save data in a char array ...
0
votes
1answer
2k views

HTTP POST from Arduino/ESP8266/ESP32 How to send parameters (x-www-form-urlencoded)

EDIT: Thank you for the answer, also we had figured out how to do it Micropython too - I believe that it is relevant for the Arduino/ESP8266/ESP32 community to share this too. https://github.com/...
1
vote
1answer
203 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
0answers
46 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 ...
0
votes
1answer
165 views

random soft wdt reset while request

i am making post requests with esp8266 on nodeMCU. i have a messy code so i dont want to annoy you with showing it here. the problem is i get soft wdt reset time to time while making request. for ...
2
votes
1answer
1k views

AsyncWebServer giving wdt reset

I am using 3 Esp32 modules. One being master and other two being nodes. Nodes are connecting to the master's AP. Master is connected with GSM module to execute the web api. Master esp is having a ...
0
votes
1answer
115 views

Arduino HTTP Command - ESPEasy

I am new to Arduino and although I am starting with and creating some basic projects my end goal right now is to be able to turn my Sonoff on and off via a momentary switch attached to my Wifi enabled ...
0
votes
1answer
84 views

Http request in interrupt esp8266 not working

So i have this code that whenever i click a button a interrupt starts. In this interrupt i want to do a get request to a webserver. The thing is seperate the code, the interrupt code works and ...
1
vote
1answer
842 views

Arduino Firebase connection refused error

I am making a project for school where I have to send data from a sensor to a webpage. After doing some research I decided to use a Real-Time Firebase database. Security is not really important and I ...
1
vote
0answers
45 views

Send large files to API via HTTP

I am making a stream-based radio clock that needs to send snippets of the stream to an external API for music recognition using an ESP-WROOM-32 DevKit. The snippets that I record are 15 seconds long, ...
0
votes
1answer
239 views

esp8266 cant make more than one request at time

i am trying to make a get request, read that request and make another request with that read value. i havent shown it in this code but i want to make a request inside in a request. is it possible to ...
1
vote
0answers
197 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
1answer
189 views

I can't use buffer without printing in my Nodemcu esp8266

#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <WiFiClientSecureBearSSL.h> #define WIFI_SSID "ssid" #define WIFI_PASSWORD "password" void setup() { Serial....
0
votes
1answer
132 views

Sim900a AT+HTTPREAD does not get fully answer

changed the firmware on SIM900B try to send get request http://dummy.restapiexample.com/api/v1/employee/1 AT+HTTPACTION=0returned +HTTPACTION:0,200,98 but, when I try to read (AT+HTTPREAD or AT+...
1
vote
0answers
2k views

How to send JSON on a http POST request using an ESP8266?

I'm working on a project aimed on sending alerts via SMS. I signed up for a SMS service that works via HTTP requests (REST standard). I need, then, to send data as JSON, so that their server processes ...
-1
votes
1answer
98 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
0answers
331 views

Arduino Uno + Sim808 GPS dont work with GSM

I am trying to get GPS data and pass it through GSM (Http Get Request). The GPS codes part works fine alone, also HTTPRequest part lonely. But when i use them together , the module don't get GPS data ...
-1
votes
1answer
159 views

Http request change delay

i'm noob in coding i try to make some led blink ( with succes ) and now i would like to add http request to change delay. i have no error compiling the code but it dont work any idea ? Thanks ...
0
votes
1answer
76 views

Why doesn't data return when I use Sim808 http request

Why is it that when i use this code for http request on DFRobot_sim808 , I get 'fetch over' message, that means that no data is being returned? char strings: char http_cmd[] = " HTTP/1.0\r\n" ...
1
vote
0answers
68 views

Problem in fetching http get request after put float number

I have this codes that works correctly! #include <DFRobot_sim808.h> #include <SoftwareSerial.h> #define PIN_TX 7 #define PIN_RX 8 SoftwareSerial mySerial(PIN_TX,PIN_RX); ...