You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make a couple of drop-down lists for configuring my device. I followed the example here OnDemandConfigPortal.ino
I can present a drop-down of the four options as provided in the example, but I cannot work out how to read the selected option back.
My callback is
void saveParamCallback(){
Serial.println("[CALLBACK] saveParamCallback fired");
Serial.print("getValue: ");
Serial.println(custom_html_inputs.getValue()); // Seem to get no return.
Serial.print("getID: ");
Serial.println(custom_html_inputs.getID()); // Seem to get no return.
Serial.print("getLabel ");
Serial.println(custom_html_inputs.getLabel()); // Seem to get no return.
Serial.print("getCustomHTML ");
Serial.println(custom_html_inputs.getCustomHTML()); // I just get the html I provided back, can't see the selection.
// wm.stopConfigPortal();
}
This results in this output, note I have selected Option 1
I am trying to make a couple of drop-down lists for configuring my device. I followed the example here OnDemandConfigPortal.ino
I can present a drop-down of the four options as provided in the example, but I cannot work out how to read the selected option back.
My callback is
This results in this output, note I have selected Option 1
The text was updated successfully, but these errors were encountered: