QuestionsCategory: General Questionhelp-esp8266-soft-ap-and-simple-auth-integration
zepjau Staff asked 2 years ago

In my ESP8266 i need insert data values from BMP180 into this html page: const char index_html[] PROGMEM = R\”rawliteral(<!DOCTYPE HTML><html><head><meta name=\”viewport\” content=\”width=device-width, initial-scale=1\”><style>html {font-family: Arial; display: inline-block; text-align: center;}h2 {font-size: 3.0rem;}p {font-size: 3.0rem;}body {max-width: 600px; margin:0px auto; padding-bottom: 25px;}.switch {position: relative; display: inline-block; width: 120px; height: 68px}.switch input {display: none}.slider {position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 34px}.slider:before {position: absolute; content: \”\”; height: 52px; width: 52px; left: 8px; bottom: 8px; background-color: #fff; -webkit-transition: .4s; transition: .4s; border-radius: 68px}input:checked+.slider {background-color: #2196F3}input:checked+.slider:before {-webkit-transform: translateX(52px); -ms-transform: translateX(52px); transform: translateX(52px)}</style></head><body><h3>Control 4 zonas</h3>%BUTTONPLACEHOLDER%<script>function toggleCheckbox(element) {var xhr = new XMLHttpRequest();if(element.checked){ xhr.open(\”GET\”, \”/update?relay=\”+element.id+\”&state=1\”, true); }else { xhr.open(\”GET\”, \”/update?relay=\”+element.id+\”&state=0\”, true); }xhr.send();}</script><form method=\”post\” action=\”/save\” >Encendido:<sp><input name=\”onTime\” type=\”text\” size=\”10\” value=\”5\” ><br><br>Apagado :<sp><input name=\”offTime\” type=\”text\” size=\”10\” value=\”8\” ><br><input type=\”submit\” name=\”clk_action\” value=\”accept\”></form></body></html>)rawliteral\”; How do it?. Regards.Javier.