Current News

Moderator: Mmiscool

User avatar
By Mmiscool
#48525 Just released a new build. The returngui command will tell the page to refresh.

Se example below.

Code: Select alllet cnt = 0
wprint "ESP8266 NodeMCU HowTo - Browser Refresh"
wprint "<HR>"
wprint htmlvar(cnt) & "<BR>"
timer 5000,[refresh]
wait

[refresh]
cnt = cnt + 1
'Connect via Putty COM6 to see the var gets updated
SERIALPRINTLN cnt
returngui
wait
User avatar
By jlbachiochi
#48527 trying to use serial2branch, TX2-pin4 and RX2-pin5 are tied together.

Code: Select allserial2begin 115200, 4, 5
sendstring="Something"
[loop]
cls
print "Sending "
wprint sendstring
print "Receiving "
wprint receivestring

receivestring="Nothing"
serial2println sendstring
serial2branch [serial2in]
timer 2000,[loop]
wait

[serial2in]
'serial2input receivestring
receivestring="Something"
return
User avatar
By joeygbsn
#48572 I'm having trouble using the connect command using 3.0 alpha 4. I need the esp to connect to my router and create its own access point. On 2.0 i was able to do this with the connect and ap commands. In converting my program to 3.0 i added a comma so the command is now
Connect ssid, password
The esp connects to my router during the first minute before the default program is run, but when the connect command is issued in the program the esp cannot connect and then will not make an access point either. When looking at the serial terminal I see it counting up and then failing. The program then runs, but i am only able to view the output through the serial terminal, as the esp has no access point and is not connected to my network. I am using nodemcu as my hardware. I am on my phone so i don't have access to my code, but the error was easily reproducible using the connect command. Thanks for your time.