mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
UI input for dhcp host name
This commit is contained in:
@@ -440,6 +440,7 @@ function performConnect(conntype){
|
|||||||
stopRefreshAPInterval();
|
stopRefreshAPInterval();
|
||||||
|
|
||||||
var pwd;
|
var pwd;
|
||||||
|
var dhcp-name $("#dhcp-name").val();;
|
||||||
if (conntype == 'manual') {
|
if (conntype == 'manual') {
|
||||||
//Grab the manual SSID and PWD
|
//Grab the manual SSID and PWD
|
||||||
selectedSSID=$('#manual_ssid').val();
|
selectedSSID=$('#manual_ssid').val();
|
||||||
@@ -463,7 +464,7 @@ function performConnect(conntype){
|
|||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
cache: false,
|
cache: false,
|
||||||
headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd },
|
headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd, 'X-Custom-host_name': dhcp-name },
|
||||||
data: { 'timestamp': Date.now()},
|
data: { 'timestamp': Date.now()},
|
||||||
error: function (xhr, ajaxOptions, thrownError) {
|
error: function (xhr, ajaxOptions, thrownError) {
|
||||||
console.log(xhr.status);
|
console.log(xhr.status);
|
||||||
|
|||||||
@@ -69,6 +69,10 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1>Enter Details</h1>
|
<h1>Enter Details</h1>
|
||||||
</header>
|
</header>
|
||||||
|
<h2>DHCP host name</h2>
|
||||||
|
<section id="wifi-list">
|
||||||
|
<input id="dhcp-name" type="text" placeholder="" value="squeezeamp">
|
||||||
|
</section>
|
||||||
<h2>Manual Connection</h2>
|
<h2>Manual Connection</h2>
|
||||||
<section>
|
<section>
|
||||||
<input id="manual_ssid" type="text" placeholder="SSID" value="">
|
<input id="manual_ssid" type="text" placeholder="SSID" value="">
|
||||||
@@ -82,8 +86,12 @@
|
|||||||
|
|
||||||
<div id="connect">
|
<div id="connect">
|
||||||
<header>
|
<header>
|
||||||
<h1>Enter Password</h1>
|
<h1>Connect to network</h1>
|
||||||
</header>
|
</header>
|
||||||
|
<h2>DHCP host name</h2>
|
||||||
|
<section id="wifi-list">
|
||||||
|
<input id="dhcp-name" type="text" placeholder="" value="squeezeamp">
|
||||||
|
</section>
|
||||||
<h2>Password for <span id="ssid-pwd"></span></h2>
|
<h2>Password for <span id="ssid-pwd"></span></h2>
|
||||||
<section>
|
<section>
|
||||||
<input id="pwd" type="password" placeholder="Password" value="">
|
<input id="pwd" type="password" placeholder="Password" value="">
|
||||||
|
|||||||
Reference in New Issue
Block a user