use of org.eclipse.kura.net.wifi.WifiSecurity in project kura by eclipse.
the class WifiAccessPointImpl method toString.
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("ssid=").append(this.ssid);
if (this.hardwareAddress != null && this.hardwareAddress.length > 0) {
sb.append(" :: hardwareAddress=").append(NetworkUtil.macToString(this.hardwareAddress));
}
sb.append(" :: frequency=").append(this.frequency).append(" :: mode=").append(this.mode);
if (this.bitrate != null && this.bitrate.size() > 0) {
sb.append(" :: bitrate=");
for (Long rate : this.bitrate) {
sb.append(rate).append(" ");
}
}
sb.append(" :: strength=").append(this.strength);
if (this.wpaSecurity != null && this.wpaSecurity.size() > 0) {
sb.append(" :: wpaSecurity=");
for (WifiSecurity security : this.wpaSecurity) {
sb.append(security).append(" ");
}
}
if (this.rsnSecurity != null && this.rsnSecurity.size() > 0) {
sb.append(" :: rsnSecurity=");
for (WifiSecurity security : this.rsnSecurity) {
sb.append(security).append(" ");
}
}
return sb.toString();
}
Aggregations