def get_available_devices(self):
        """
        Gets available devices using mbedls and self.available_edbg_ports.

        :return: List of connected devices as dictionaries.
        """
        connected_devices = self.mbeds.list_mbeds() if self.mbeds else []
        # Check non mbedOS supported devices.
        # Just for backward compatible reason - is obsolete..
        edbg_ports = self.available_edbg_ports()
        for port in edbg_ports:
            connected_devices.append({
                "platform_name": "SAM4E",
                "serial_port": port,
                "mount_point": None,
                "target_id": None,
                "baud_rate": 460800
            })
        for dev in connected_devices:
            dev['state'] = "unknown"

        return connected_devices
Gets available devices using mbedls and self.available_edbg_ports.

        :return: List of connected devices as dictionaries.