-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSulServerConfigBLE.java
More file actions
55 lines (39 loc) · 1.46 KB
/
SulServerConfigBLE.java
File metadata and controls
55 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.github.protocolfuzzing.blefuzzer;
import com.beust.jcommander.Parameter;
import com.github.protocolfuzzing.protocolstatefuzzer.components.sul.core.config.SulServerConfig;
import java.io.PrintWriter;
public class SulServerConfigBLE implements SulServerConfig {
@Parameter(names = "-adapter", required = true,
description = "The serial port of the test adapter")
protected String serialPort = null;
@Parameter(names = "-mapper",
description = "Allows selecting a device specific mapper")
protected String mapper = null;
@Parameter(names = "-connect", required = true,
description = "The BLE MAC address of the target device")
protected String targetMacAddr = null;
public String getAdapterSerialPort() {
return serialPort;
}
public String getMapper() {
return mapper;
}
public String getTargetMacAddr() {
return targetMacAddr;
}
@Override
public String getHost() {
return targetMacAddr;
}
@Override
public void setHost(String host) {
this.targetMacAddr = host;
}
@Override
public void printRunDescriptionSelf(PrintWriter printWriter) {
printWriter.println("SulServerConfigBLE Parameters");
printWriter.println("BLE Adapter: " + getAdapterSerialPort());
printWriter.println("Mapper: " + getMapper());
printWriter.println("Target addr: " + getTargetMacAddr());
}
}