Package org.emrick.project
Class PlatformIOFunction
java.lang.Object
org.emrick.project.PlatformIOFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanbuildFilesystem(File projectDir, Consumer<String> outputConsumer) private static Stringprivate static Stringprivate static voidreadProcessOutput(Process process, Consumer<String> outputConsumer) static voiduploadFilesystem(File dataDirectory) Master Method to Upload the Filesystem to a boardprivate static voiduploadToPort(String port, File projectDir, Consumer<String> outputConsumer) static booleanMethod to verify if PlatformIO is installed and accessible
-
Constructor Details
-
PlatformIOFunction
public PlatformIOFunction()
-
-
Method Details
-
verifyInstallation
public static boolean verifyInstallation()Method to verify if PlatformIO is installed and accessible -
uploadFilesystem
Master Method to Upload the Filesystem to a board- Parameters:
dataDirectory- path to dataDirectory for PlatformIO
-
buildFilesystem
-
uploadToPort
-
detectSingleCOMPort
- Throws:
IOExceptionInterruptedException
-
getAvailableCOMPorts
- Throws:
IOExceptionInterruptedException
-
getActivationPath
-
readProcessOutput
private static void readProcessOutput(Process process, Consumer<String> outputConsumer) throws IOException - Throws:
IOException
-