![]() |
Forum Index : Microcontroller and PC projects : ESP8266 BASIC Browser Based serial term
Author | Message | ||||
mmiscool Newbie ![]() Joined: 05/11/2015 Location: United StatesPosts: 12 |
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] 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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |