Issue with Printing data from Web server using Arduino and ESP8266

Completed Posted 2 years ago Paid on delivery
Completed

I want to print web server data received from [login to view URL] using arduino and esp8266 through AT commands. Manually its printing data when sending AT commands one by one but in coding its not printing data.

void InitWifiModule() {

sendData("AT+RST\r\n", 2000, DEBUG); //reset the Serial1 module.

delay(1000);

sendData("AT+CWLAP\r\n", 1500, DEBUG); //Check availabe WiFi APs

delay(1000);

// if (WiFi_Connect() == 1) {

// [login to view URL]("ESP8266 connected to WiFi");

// [login to view URL]();

// }

// sendData("AT+CWMODE=1\r\n", 1500, DEBUG); //set the Serial1 WiFi mode to station mode.

// delay(1000);

sendData("AT+CIFSR\r\n", 1500, DEBUG); //Show IP Address, and the MAC Address.

delay(1000);

sendData("AT+CIPMUX=1\r\n", 1500, DEBUG); //Multiple conections.

delay(1000);

sendData("AT+CIPSTART=0,\"TCP\",\"[login to view URL]\",80\r\n", 1500, DEBUG);

// sendATcmd("AT+CIPSTART=0,\"TCP\",\"" + host + "\"," + port, 20, "OK");

sendData("AT+CIPSEND=0,16", 1500, DEBUG);

[login to view URL]("\r\nSending out data…");

sendData("GET / HTTP/1.1", 1500, DEBUG); //GET /[login to view URL] HTTP/1.1

[login to view URL](); //some extra carriage return

while ([login to view URL]()){

[login to view URL]("Got reponse from ESP8266");

String inData = [login to view URL]('\n');

[login to view URL]("Got reponse from ESP8266: " + inData);

}

}

int WiFi_Connect() {

String msg = String("");

label:

msg = sendData("AT+CWJAP=\"ESP_157C71\",\"\"", 2000, DEBUG); //connect to the WiFi network.

delay(3000);

if ([login to view URL]("CONNECTED") >= 0) {

[login to view URL]("GET OK");

[login to view URL]();

return 1;

} else {

[login to view URL]("NOT GET OK");

[login to view URL]();

sendData("AT+CWLAP\r\n", 1500, DEBUG); //Check availabe WiFi APs

goto label; //If NOT GET OK GOTO label

return 0;

}

}

Arduino C Programming C++ Programming Linux Microcontroller

Project ID: #35028416

About the project

4 proposals Remote project Active 2 years ago

Awarded to:

sararagheb92

Hello I hope you are fine I developed app like that using esp32 and WiFi and MQTT protocol I see you esp8 and arduino ide I understood you can print one by one but you can’t print multi data I can solve the issue I More

$5 USD / hour
(4 Reviews)
2.7

4 freelancers are bidding on average $8/hour for this job

anshsparkle

HhI I am experienced in and I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your replyyy

$5 USD / hour
(2 Reviews)
1.8
umarzaki1000

Hi, there.. I am a arduino developer and having many years of experience in arduino development. I have read your request please give me some more data so i can check the error

$2 USD / hour
(0 Reviews)
0.0