Java tutorial
//package com.java2s; import java.util.Locale; public class Main { /** * Get the mac address for mesh usage(For mesh require the BSSID uppercase and without colon). It is an inverse * method for getRawMacAddress * * @param bssid the bssid get from wifi scan * @return the mac address for mesh usage */ public static String getMacAddressForMesh(String bssid) { StringBuilder sb = new StringBuilder(); char c; for (int i = 0; i < bssid.length(); i++) { c = bssid.charAt(i); if (c != ':') { sb.append(c); } } return sb.toString().toUpperCase(Locale.US); } }