   if(at >= 0){
     String portsQuery = query.substring(at + 1);
     if(!isInt(portsQuery)){
-      return NgReturnJson("Illegal query.", query);
+      return NgReturnJson(ILLEGAL_QUERY, query);
     }
     ai_stream_info.ports = strToUInt64(portsQuery);
   }


String checkPortQuery(String portQuery){
  if(!isInt(portQuery)){
    return NgReturnJson("Illegal port number.", portQuery);
  }
  return NULL;
}

  if(valQuery.startsWith("val=")){
    valQuery.replace("val=","");
  }else{
    return NgReturnJson(VAL_IS_NOT_SPECIFIED, valQuery);
  }

  // HIGH, LOWのチェックはdoWriteTask用
