mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-24 13:52:14 +01:00
36 lines
543 B
Java
36 lines
543 B
Java
|
package cc.arduino.packages;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
import processing.app.helpers.PreferencesMap;
|
||
|
|
||
|
public interface Discovery {
|
||
|
|
||
|
/**
|
||
|
* Set discovery preferences
|
||
|
*
|
||
|
* @param options
|
||
|
*/
|
||
|
public void setPreferences(PreferencesMap options);
|
||
|
|
||
|
/**
|
||
|
* Start discovery service
|
||
|
*
|
||
|
* @throws Exception
|
||
|
*/
|
||
|
public void start() throws Exception;
|
||
|
|
||
|
/**
|
||
|
* Stop discovery service
|
||
|
*/
|
||
|
public void stop();
|
||
|
|
||
|
/**
|
||
|
* Return the list of discovered ports.
|
||
|
*
|
||
|
* @return
|
||
|
*/
|
||
|
public List<BoardPort> discovery();
|
||
|
|
||
|
}
|