   for(int i = 0; i < ARRAYSIZE(AI_REF_TBL); i++){
     if(ref.endsWith(AI_REF_TBL[i].key)){
       analogReference(AI_REF_TBL[i].value);
-      return switchTypeReturnJson("OK", AI_REF_TBL[i].key);
+      return switchTypeReturnJson(AI_REF_TBL[i].key);
     }
   }
   ref.replace("?type=", "");

  return before + body + after;
}



/**************************************************************************

  for(int i = 0; i < ARRAYSIZE(PIN_MODE_TBL); i++){
    if(valQuery == PIN_MODE_TBL[i].key){
      pinMode(port, PIN_MODE_TBL[i].value);
      return switchTypeReturnJson(valQuery);
    }
  }
  return NgReturnJson(ILLEGAL_TYPE);
}


/*
   {port_num}?val={value}
