 }
 
 
-String switchTypeReturnJson(String msg, String refType){
-  String body = stringJson("msg", msg) + ","
+String switchTypeReturnJson(String refType){
+  String body = stringJson("msg", "OK") + ","
     + stringJson("type", refType);
 
   return wrapBrace(body);

  return before + body + after;
}



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

  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(AI_REF_TBL[i].key);
    }
  }
  ref.replace("?type=", "");
