inorder to update the AT firware i toggle the switch 5,6,7 ON and rest all off after i finished the update i toggled the switch 7 off and 5,6 ON so that CH340 connect to ESP8266 .then i uploaded the sketch
One cause of that would be if you are trying to upload to the Uno instead of the ESP8266.
By switching the same switches, etc. on the board as you did when you updated the AT firmware.
You should be aware that what you're doing is uploading a new firmware to the ESP8266. The AT firmware will be erased and you will no longer be able to control the ESP8266 via AT commands unless the sketch you're uploading happens to implement that communication system. If that's not your intent then you need to explain exactly what you're trying to accomplish.
gourish:
i need to enter some random text on to the site and that text need to be displayed on the display connected to board.
The web development part is complex. Do you have some web development experience?
The page would be on a webserver or on the Arduino?
To send text from web page, HTML FORM or AJAX is used. To receive it, a WebServer must be running on Arduino. See WebClient example in esp8266 examples.
With your board the WebServer can run on esp8266 or in Atmega.
The page would be on a webserver or on the Arduino?
right now it will be on arduino ie RobotDyn
The web development part is complex. Do you have some web development experience?
i am intermediate kind off web devloper.
till now i m already done with uploading the sketch in the ESP8266 and successfully able to retrieve the message sent from the webpage by the client.
now i only need to display this message on my LED p10 display.
here is the code:-
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
ESP8266WiFiMulti wifiMulti; // Create an instance of the ESP8266WiFiMulti class, called 'wifiMulti'
ESP8266WebServer server(80); // Create a webserver object that listens for HTTP request on port 80
void handleRoot(); // function prototypes for HTTP handlers
void handleLogin();
void handleNotFound();
void setup(void){
Serial.begin(115200); // Start the Serial communication to send messages to the computer
delay(10);
Serial.println('\n');
wifiMulti.addAP("DIGISOL", "edot2017"); // add Wi-Fi networks you want to connect to
Serial.println("Connecting ...");
while (wifiMulti.run() != WL_CONNECTED) { // Wait for the Wi-Fi to connect: scan for Wi-Fi networks, and connect to the strongest of the networks above
delay(250);
Serial.print('.');
}
Serial.println('\n');
Serial.print("Connected to ");
Serial.println(WiFi.SSID()); // Tell us what network we're connected to
Serial.print("IP address:\t");
Serial.println(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
if (MDNS.begin("esp8266")) { // Start the mDNS responder for esp8266.local
Serial.println("mDNS responder started");
} else {
Serial.println("Error setting up MDNS responder!");
}
server.on("/", HTTP_GET, handleRoot); // Call the 'handleRoot' function when a client requests URI "/"
server.on("/login", HTTP_POST, handleLogin); // Call the 'handleLogin' function when a POST request is made to URI "/login"
server.onNotFound(handleNotFound); // When a client requests an unknown URI (i.e. something other than "/"), call function "handleNotFound"
server.begin(); // Actually start the server
Serial.println("HTTP server started");
}
void loop(void){
server.handleClient(); // Listen for HTTP requests from clients
}
void handleRoot() { // When URI / is requested, send a web page with a button to toggle the LED
server.send(200, "text/html",
"<form action=\"/login\" method=\"POST\"><input type=\"text\" name=\"data\" placeholder=\"Enter text to display\">
<input type=\"submit\" value=\"Display\"></form>");
}
void handleLogin() { // If a POST request is made to URI /login
String message = "";
if( ! server.hasArg("data") || server.arg("data") == NULL ){ // If the POST request doesn't have username and password data
server.send(400, "text/plain", "400: Invalid Request"); // The request is invalid, so send HTTP status 400
return;
}
message += server.arg("username"); //Get the name of the parameter
Serial.println(message);
}
void handleNotFound(){
server.send(404, "text/plain", "404: Not found"); // Send HTTP status 404 (Not Found) when there's no handler for the URI in the request
}