Merge "Thread: simulate Thread on eth1 for tests" into main
This commit is contained in:
commit
99d5727954
1 changed files with 3 additions and 2 deletions
|
|
@ -80,9 +80,10 @@ public final class FullThreadDevice {
|
|||
*/
|
||||
public FullThreadDevice(int nodeId) {
|
||||
try {
|
||||
mProcess = Runtime.getRuntime().exec("/system/bin/ot-cli-ftd " + nodeId);
|
||||
mProcess = Runtime.getRuntime().exec("/system/bin/ot-cli-ftd -Leth1 " + nodeId);
|
||||
} catch (IOException e) {
|
||||
throw new IllegalStateException("Failed to start ot-cli-ftd (id=" + nodeId + ")", e);
|
||||
throw new IllegalStateException(
|
||||
"Failed to start ot-cli-ftd -Leth1 (id=" + nodeId + ")", e);
|
||||
}
|
||||
mReader = new BufferedReader(new InputStreamReader(mProcess.getInputStream()));
|
||||
mWriter = new BufferedWriter(new OutputStreamWriter(mProcess.getOutputStream()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue