Timeline for How to connect ESP8266-01 (AT-commands) to its web server using AJAX
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 23, 2018 at 11:17 | comment | added | abu-ahmed al-khatiri | as mentioned in your question "I want to get the data (distance) to print in the web server(page) in real-time(no refresh)". I THINK you will display data to Web Page and MY ajaxcreated.h will works!. if you're using APP INVENTOR, the AJAX will not work! | |
Nov 21, 2018 at 14:48 | comment | added | Xiaomy | anyone can help me about this ESP8266WebServer server(80); is error because I am using AT commands? because once I delete it the "server" methods are error too. Is there any alternatives here? | |
Nov 21, 2018 at 13:08 | comment | added | Xiaomy | @abu-ahmedal-khatiri can you help me here sir? chat.stackexchange.com/rooms/85432/… | |
Nov 21, 2018 at 13:06 | comment | added | Xiaomy | ah so your example @abu-ahmedal-khatiri will work sir? | |
Nov 21, 2018 at 13:02 | comment | added | abu-ahmed al-khatiri | like a mentioned @Majenko answered "To use these kind of constructs you have to program the ESP8266, not the Arduino, and then you don't have the AT commands available." ,why you need AT Commands if you can store data to AJAX script directly? | |
Nov 21, 2018 at 12:55 | comment | added | Xiaomy | @Majenko I used AT commands because when I program ESP8266 (directly) it's not working and always got error about it, so I switch on AT commands. | |
Nov 21, 2018 at 12:55 | comment | added | abu-ahmed al-khatiri |
i cannot see on your code. you need to make a index.h to store data on AJAX see my header and include it to your sketch see my sketch
|
|
Nov 21, 2018 at 12:32 | comment | added | Xiaomy | @abu-ahmedal-khatiri I also add that earlier but still error | |
Nov 21, 2018 at 12:31 | comment | added | abu-ahmed al-khatiri |
try to add a include ESP8266WebServer server(80);
|
|
Nov 21, 2018 at 12:29 | answer | added | Majenko | timeline score: 1 | |
Nov 21, 2018 at 12:25 | comment | added | Majenko | Looks like you're confusing ESP8266 native code for Arduino code. | |
Nov 21, 2018 at 12:24 | comment | added | Xiaomy | I already edited it sir :) sir do you have any idea about it? | |
Nov 21, 2018 at 12:21 | history | edited | Xiaomy | CC BY-SA 4.0 |
added 383 characters in body
|
Nov 21, 2018 at 12:20 | comment | added | Majenko | Do you actually have a question? And is it related to Arduino, and not Javascript or HTML? | |
Nov 21, 2018 at 12:17 | history | asked | Xiaomy | CC BY-SA 4.0 |