Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:42 08 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ESP8266 BASIC Browser Based serial term

Author Message
mmiscool
Newbie

Joined: 05/11/2015
Location: United States
Posts: 12
Posted: 05:14pm 18 Aug 2016
Copy link to clipboard 
Print this post

Tested on ESP Basic 3.0.Alpha 40.
Alpha 39 had a bug in the Serial.read.chr() returning a number in stead of a character. this has been resolved and this short sweet mini browser to serial terminal is now working.

Only 23 lines of code!!!
https://www.youtube.com/watch?v=vsTsmD38oAk&feature=youtu.be

ESP BASIC CODE:
Textbox MyMsg
button "Send line", [send]
button "Send just txt", [send.txt]
print
serialbranch [serialin]
wait

[serialin]
bla$ = Serial.read.chr()
if bla$ == chr(13) then print
if bla$ == chr(10) then print
wprint bla$
if serial.available() <> 0 then goto [serialin]
return

[send]
Serialprintln MyMsg
wait

[send.txt]
serialprint MyMsg
wait
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025