http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com
Explore... Chat... Share...
Moderator: Mmiscool
b = 3
ssid = "My_router"
password = "password123"
print "SSID:"
textbox ssid
print "PASSWORD:"
textbox password
button "Connect", [connect_to_ap]
wait
[connect_to_ap]
wifi.connect( ssid, password) 'Should there be a space before "ssid"?
delay 5000
Timeout = 0
Do
delay 3000
Timeout = Timeout + 1
Bla = telnet.client.connect(“54.252.17.121”, 4801) 'Connect to the server
If Timeout = 10 then
Bla = 1
End if
Loop until Bla > 0
Timer 20000, [Report] 'send a data report every 20 seconds
Wait
[Report]
io(po,1,1) 'Turn on LED to indicate that the report is being sent
Bla = telnet.client.write(78;68;48;12;34;56;07;30;11111;22222;33333;44444;55555;60666;12345;54321;b;13;10)
'Send a 32 byte report to the server consisting of 9 single byte values (+CR/LF terminator) and 8 16-bit values (Loendian?).
'Should the numbers be sent as a string or is this numeric format better?
Timeout = 0
Do 'Wait for acknowledgement that data was sent successfully.
Timeout = Timeout + 1
If Timeout = 10000 then 'Make sure that it doesn't get stuck in an infinite loop
Bla = 2
End if
Loop until Bla > 0
if Bla = 2 then
io(po,2,1) 'Turn on error LED to indicate that no acknowledgement was received
delay 1000
io(po,2,0) 'Turn off error LED
goto [connect_to_ap]
end if
io(po,1,0) 'Turn off report LED
Wait
end
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]