Java-library to communicate with the AVM FritzBox by using the TR-064 protocol.
This project uses the build tool gradle.
Compile the project with gradle.
> ./gradlew clean build
You can find the JAR file in directory build/libs/FritzTR064.jar
This library depends on:
Get all the posibel Actions:
FritzConnection fc = new FritzConnection("192.168.1.1","<username>","<password>");
fc.init();
fc.printInfo();
The next Example shows how you can get the number of connected Wlan Devices:
FritzConnection fc = new FritzConnection("192.168.1.1","<username>","<password>");
fc.init();
Service service = fc.getService("WLANConfiguration:1");
Action action = service.getAction("GetTotalAssociations");
Response response = action.execute();
int deviceCount = response.getValueAsInteger("NewTotalAssociations");
For more examples see: The Example Folder
The examples in src/test/java/de/mapoll/javaAVMTR064
uses logback for debug output.
To see the HTTP traffic change the log level in src/test/resources/logback-test.xml
:
<!-- change log level here to get more output -->
<logger name="org.apache.http" level="debug" />
<!-- change log level here to get more output -->
<logger name="org.apache.http.wire" level="debug" />
- AVM API Description (German)
- Original Project