@@EmbeddedGate hi, thanks for responding. There is no error while uploading the code. I have checked wifiscan code also but result is 'no network found' I checked with baudrate and com port but still issue persist.
Does this code on Arduino IDE work for ESP32? If not, do you have any exemples of getting data from ESP32 and showing on an app made with App Inventor?
Thanks very much my dear for this nice video. Please, can you tell me how to use two sensors and get the two sensors reading in the Mit app. Please, I am waiting for your reply urgently. Thanks for your understanding and love
@@EmbeddedGate My dear, thanks very much for your reply. I am waiting for the video. How I wish the video will be out this week. I need the video urgently. I am wishing you all the best!!!
Hello, Greetings, Congratulations for the tutorial. Mine is giving error on the android app: error 1101 Unable to get response with the specified URL : 192.168.4.1 Could you help me?
@@EmbeddedGate Hello Friend, thanks for answering me, Yes my smartphone is connected to the nodemcu network, the serial monitor is no problem, the webpage is also no problem, only on the smartphone that does not read the potentiometer.
Simplicity, briefness and apprehansibility are the great attributes that attracted me to elate this video.
Thank you for comment.
Thanks for the video!!!!! this was the idea i have been looking for.
Thank you for this video it helps me a lot. Awesome. keep on uploading.
Awesome, very helpful
Very thanks to share your video!
Great Job dude .....very good video
Hi, thanks for very nice video. I followed same instructions in video, but not able to see Wemos D1 mini as Access point. Please suggest.
Is there any error in program?
@@EmbeddedGate hi, thanks for responding. There is no error while uploading the code. I have checked wifiscan code also but result is 'no network found' I checked with baudrate and com port but still issue persist.
Awesome!! Everything working as shown. How can i have more sensors reading?
Does this code on Arduino IDE work for ESP32?
If not, do you have any exemples of getting data from ESP32 and showing on an app made with App Inventor?
Yes, this code works with esp32.
Thx for the project ,can you tell me how to display multiple sensors pls .
thanks
Many Libraries are not available and not running, what is the problem?
What is the error?
I've updated the Libraries, but still "ESPAsyncTCP.h" not available, and other libraries in your code!
@@ramishawamreh9070 Share your mail id.
Thanks very much my dear for this nice video. Please, can you tell me how to use two sensors and get the two sensors reading in the Mit app. Please, I am waiting for your reply urgently. Thanks for your understanding and love
Hello. Thanks for the comment. It is possible to read multiple values using the MIT app inventor. I will make a video for that.
@@EmbeddedGate My dear, thanks very much for your reply. I am waiting for the video. How I wish the video will be out this week. I need the video urgently. I am wishing you all the best!!!
#include "ESPAsyncWebServer.h" library error, i tried everything
from where did you get that IP? is it the IP from program?
Base Address of nodemcu.
Sir how to send multiple values?
Already, the video is available on my channel.
how about control slider with Acces Point?
take reference to this video,
ruclips.net/video/K_B07hq2FfQ/видео.html
sir. can u help me code sync data between esp8266webserver and app inventor
Yes. tell me about your project.
@@EmbeddedGate #include
//#include
#include
ESP8266WebServer webServer(80);
char* ssid = "I-van Sary";
char* pass = "hoilamgi";
//=========Biến chứa mã HTLM Website==//
const char MainPage[] PROGMEM = R"=====(
HOME PAGE
body {text-align:center;}
h1 {color:#663322;}
a {text-decoration: none;color:#FFFFFF;}
.bt_on {height:200px; width:400px; margin:40px 0;background-color:#33FF33;border-radius:500px;}
.bt_off {height:200px; width:400px; margin:40px 0;background-color:#BBBBBB;border-radius:500px;}
ESP8266 Web Server
Trạng thái trên chân D1:
ON
OFF
Trạng thái trên chân D2:
ON
OFF
//-----------Tạo đối tượng request----------------
function create_obj(){
td = navigator.appName;
if(td == "Microsoft Internet Explorer"){
obj = new ActiveXObject("Microsoft.XMLHTTP");
}else{
obj = new XMLHttpRequest();
}
return obj;
}
var xhttp = create_obj();
//-----------Thiết lập dữ liệu và gửi request-------
function getdata(url){
xhttp.open("GET","/"+url,true);
xhttp.onreadystatechange = process;//nhận reponse
xhttp.send();
}
//-----------Kiểm tra response--------------------
function process(){
if(xhttp.readyState == 4 && xhttp.status == 200){
//------Updat data sử dụng javascript----------
ketqua = xhttp.responseText;
document.getElementById("reponsetext").innerHTML=ketqua;
}
}
//------------Kiểm tra trạng thái chân D1 D2------
function getstatusD1D2(){
xhttp.open("GET","getstatusD1D2",true);
xhttp.onreadystatechange = process_json;
xhttp.send();
}
//-----------Kiểm tra response-------------------------------
function process_json(){
if(xhttp.readyState == 4 && xhttp.status == 200){
//------Update data sử dụng javascript-------------------
var trangthaiD1D2_JSON = xhttp.responseText;
var Obj = JSON.parse(trangthaiD1D2_JSON);
document.getElementById("trangthaiD1").innerHTML = Obj.D1;
document.getElementById("trangthaiD2").innerHTML = Obj.D2;
}
}
//---Ham update duu lieu tu dong---
setInterval(function() {
getstatusD1D2();
}, 1000);
)=====";
//=========================================//
// Set your Static IP address
IPAddress local_IP(192, 168, 1, 124);
// Set your Gateway IP address
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(8, 8, 8, 8); //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional
void setup() {
pinMode(D1,OUTPUT);
pinMode(D2,OUTPUT);
//digitalWrite(D1,HIGH);
//digitalWrite(D2,HIGH);
WiFi.begin(ssid,pass);
if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
Serial.println("Failed to configure");
}
Serial.begin(115200);
Serial.print("Connecting");
while(WiFi.status()!=WL_CONNECTED){
delay(500);
Serial.print("...");
}
Serial.println(WiFi.localIP());
webServer.on("/",mainpage);
webServer.on("/onD1",on_D1);
webServer.on("/offD1",off_D1);
webServer.on("/onD2",on_D2);
webServer.on("/offD2",off_D2);
webServer.on("/getstatusD1D2",get_statusD1D2);
webServer.begin();
}
void loop() {
webServer.handleClient();
}
//==========Chương trình con=================//
void mainpage(){
String s = FPSTR(MainPage);
webServer.send(200,"text/html",s);
}
void on_D1(){
digitalWrite(D1,HIGH);
webServer.send(200,"text/html","CHÂN D1 ĐÃ ON");
}
void off_D1(){
digitalWrite(D1,LOW);
webServer.send(200,"text/html","CHÂN D1 ĐÃ OFF");
}
void on_D2(){
digitalWrite(D2,HIGH);
webServer.send(200,"text/html","CHÂN D2 ĐÃ ON");
}
void off_D2(){
digitalWrite(D2,LOW);
webServer.send(200,"text/html","CHÂN D2 ĐÃ OFF");
}
void get_statusD1D2(){
String d1,d2;
if(digitalRead(D1)==0){
d1 = "OFF";
}else{
d1 = "ON";
}
if(digitalRead(D2)==0){
d2 = "OFF";
}else{
d2 = "ON";
}
String s = "{\"D1\": \""+ d1 +"\",\"D2\": \""+ d2 +"\"}";
webServer.send(200,"application/json",s);
}
Error compiling for board NodeMCU 10 (ESP-12 Module)
Try to upload simple code check esp board is working or not.
How can i add ESPAsyncTCP.h and Hash.h library file
No need to install it. They are available in ESP library.
@@EmbeddedGate but i got error " ESPAsyncTCP.h: No such file or director "
@@ajaykumar-wy6fb . Install file.
@@EmbeddedGate I tried to install but can't get that file
Hello, Greetings,
Congratulations for the tutorial.
Mine is giving error on the android app:
error 1101 Unable to get response with the specified URL
: 192.168.4.1
Could you help me?
Hello Carlos. The same error arrived when I making this project. Make sure before starting the APP your mobile is connected to NodeMCU.
@@EmbeddedGate
Hello Friend, thanks for answering me,
Yes my smartphone is connected to the nodemcu network, the serial monitor is no problem, the webpage is also no problem, only on the smartphone that does not read the potentiometer.
@@carloscarrera2302 . Hello Carlos. please share your mail-id.
@@EmbeddedGate carloscarrera47@gmail.com
thank!