https://www.youtube.com/watch?v=vBESCO0UhYI
Download and install ELClient library.
https://github.com/jeelabs/el-client
Circuit:
Installation steps:
Circuit:
Installation steps:
HTML control | Value Type | Description | Form Submission |
---|---|---|---|
<p id="id"/> <div id="id"/> <tr id="id"/> <th id="id"/> <td id="id"/> <textarea id="id"/> |
String (HTML) | MCU can replace the inner HTML part of the control at LOAD/REFRESH queries. The string (sent by MCU) is handled as HTML, so <img...> will be displayed as an image on the page | NO |
<button id="id"/> | String | When button is pressed, a message is transmitted to MCU containing the id (BUTTON_PRESS) | NO |
<input name="id"/> | String Integer Float Boolean |
MCU can replace the value or checked properties of the HTML control in the form (LOAD/REFRESH). At form submission, the content of value will be transmitted to MCU (SET_FIELD). | YES |
<select name="id"/> | String | MCU can choose a value from the drop down (LOAD/REFRESH). At form submission the currently selected value will be transmitted to MCU (SET_FIELD) | YES |
<ul id="id"/> <ol id="id"/> |
JSON list ["1","2","3"] |
MCU can send a JSON list which is transformed to an HTML list ( <li/> ) (LOAD/REFRESH) | NO |
<table id="id"/> | JSON table [["1","2"], ["3","4"]] |
MCU sends a JSON table which is transformed to an HTML table (LOAD/REFRESH) | NO |