feat(mqtt): add mesh-chaun14 and wcmesh presets
Support "{pubkey}" username sentinel so brokers can auth with the
device public key without enlarging the prefs username field.
This commit is contained in:
1 parent
329d7f86c2
commit
ebca9bdd3e
6 files changed
+95
-19
No files matched your search
+1
-1
@@ -639,7 +639,7 @@ function refreshSlotFields(host,i){
|
||||
var def=null;st.presets.forEach(function(p){if(p.name===name)def=p});
|
||||
var needs=name==="custom"?"custom":(def?def.needs:"none");
|
||||
var showMap={token:needs==="token",username:needs==="userpass"||needs==="custom",
|
||||
password:needs==="userpass"||needs==="custom",server:needs==="custom",
|
||||
password:needs==="userpass"||needs==="password"||needs==="custom",server:needs==="custom",
|
||||
port:needs==="custom",topic:needs==="custom",audience:needs==="custom"};
|
||||
Object.keys(showMap).forEach(function(f){
|
||||
var w=card.querySelector(".sf-"+f);if(w)w.classList.toggle("hide",!showMap[f]);
|
||||
|
||||
Reference in new issue
Block a user