This node only ever uploads to MQTT — nothing from a broker is injected into the mesh.
+
Node statusPeriodic health/stats to the status topic
-
Packet metadataDecoded packet summaries
+
Publish packetsMaster switch for all packet traffic below
-
Raw packetsFull undecoded frames
+
Add raw framesAlso send the full hex frame to the raw topic
-
RX from MQTTAccept downlink packets
+
Received packetsReport packets heard over the air
-
-
+
+
+
Report packets this node sends.
@@ -469,6 +489,11 @@ function cfgVal(k){ // map a `set` key to its current value string, from st.cfg
case"tx":return String(r.tx);case"af":return String(r.af);
case"rxdelay":return String(r.rxdelay);case"txdelay":return String(r.txdelay);
case"cad":return r.cad?"on":"off";case"radio.rxgain":return r.rxgain?"on":"off";
+ case"repeat":return r.repeat?"on":"off";
+ case"flood.max":return String(r.flood_max);
+ case"flood.max.advert":return String(r.flood_max_advert);
+ case"flood.max.unscoped":return String(r.flood_max_unscoped);
+ case"loop.detect":return r.loop_detect;
case"advert.interval":return String(r.advert_interval);
case"flood.advert.interval":return String(r.flood_advert_interval);
case"wifi.ssid":return w.ssid;case"wifi.pwd":return w.pwd;case"wifi.powersave":return w.powersave;
@@ -504,7 +529,7 @@ function loadConfig(){
var lab=el.closest(".f");var ch=lab&&lab.querySelector(".chip");if(ch)ch.remove();
});
$$("[data-rg]").forEach(function(el){el.value=String(c.radio[el.dataset.rg]);el.classList.remove("dirty")});
- st.orig.radio=radioCombo();
+ st.orig.radio=radioCombo();afHint();
for(var i=1;i<=st.nslots;i++){refreshSlotFields($("#app-slots"),i);refreshSlotFields($("#wz-slots"),i)}
updateSaveBar();
});
@@ -512,8 +537,17 @@ function loadConfig(){
function markDirty(k,v,el){
if(v===st.orig[k]){delete st.dirty[k]}else{st.dirty[k]=v}
if(el)el.classList.toggle("dirty",k in st.dirty);
+ if(k==="af")afHint();
updateSaveBar();
}
+// The CLI's `dutycycle` is not its own pref — it just writes airtime_factor as
+// 100/(dc)-1. Showing the equivalent duty cycle beside `af` gives the number
+// operators actually reason about without a second field fighting over one pref.
+function afHint(){
+ var e=$("#af-dc");if(!e)return;
+ var af=parseFloat($('[data-k="af"]').value);
+ e.textContent=isFinite(af)&&af>=0?"≈ "+(Math.round(1000/(af+1))/10)+"% duty cycle":"";
+}
document.addEventListener("input",function(ev){
var el=ev.target;
if(el.dataset.k){