-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add decoding of 3 data items from connected device for local display …
…with settings for data extraction / conversion (based on sscanf), slope / offset and name. Add SPIFFs file system support for user update of web pages Add NeoPixel support Start on simple IO command evaluator Add configurable connected device baud rate Use EEPROM.put to save config data Start on ePaper display support Tried to improve selection of TFT display
- Loading branch information
1 parent
0c9f15d
commit ef2faaa
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!doctype html> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="microajax.js"></script> | ||
<html> | ||
<head> | ||
<title>ESP8266 IOT Serial to Web</title> | ||
<style> | ||
body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #000088; } | ||
</style> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<pre><div id='log'></div></pre> | ||
<p> | ||
<form id='msg' action='data' method='get'> | ||
<input id='txt' name='text' type='text'></input><input id='crlf' type='checkbox' checked>+cr?</input> | ||
</form></p> | ||
<p><a href="/admin.html">Settings</a> <!-- <a href="/file?start=1">Stream</a> --> </p> | ||
<script type='text/javascript' src='/jquery-3.3.1.min.js'></script> | ||
|
||
<script type='text/javascript'> | ||
$('#msg').submit(function(){ | ||
var clientmsg = $('#txt').val(); | ||
if ($('#crlf').is(':checked')) clientmsg+='\r'; | ||
var log=$('#log'); | ||
log.html(log.html()+'<b>'+clientmsg+'</b>'); | ||
$.get('data', {text: clientmsg}, function(html){ | ||
log.html(log.html()+html); | ||
}); | ||
$('#txt').attr('value', ''); | ||
loadLog(); //instantly pick up any response. | ||
return false; | ||
}); | ||
function loadLog(){ | ||
var log=$('#log'); | ||
$.ajax({ | ||
url: 'data', | ||
cache: false, | ||
success: function(html){ | ||
log.html(log.html()+html); | ||
}, | ||
}); | ||
}; | ||
setInterval (loadLog, 2500); | ||
</script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters