public String getStatusSummary()

in tools/android-app/app/src/main/java/com/aws/iotfleetwise/FweApplication.java [407:443]


    public String getStatusSummary()
    {
        StringBuilder sb = new StringBuilder();
        synchronized (mSupportedSignalsLock) {
            if (isCar()) {
                if (mSupportedVehicleProperties != null) {
                    if (mSupportedVehicleProperties.size() == 0) {
                        sb.append("NONE");
                    } else {
                        sb.append("Supported vehicle properties: ")
                                .append(String.join(", ", mSupportedVehicleProperties));
                    }
                }
            }
            else {
                sb.append("Bluetooth: ")
                        .append(mElm327.getStatus())
                        .append("\n\n")
                        .append("Supported OBD PIDs: ");
                if (mSupportedPids == null) {
                    sb.append("VEHICLE DISCONNECTED");
                } else if (mSupportedPids.size() == 0) {
                    sb.append("NONE");
                } else {
                    for (int pid : mSupportedPids) {
                        sb.append(String.format("%02X ", pid));
                    }
                }
            }
        }
        sb.append("\n\n")
                .append("Location: ")
                .append(getLocationSummary())
                .append("\n\n")
                .append(Fwe.getStatusSummary());
        return sb.toString();
    }