Add API codes and WsnPort