Skip to content

Java API for the Fritzbox TR-064 protokoll

License

Notifications You must be signed in to change notification settings

a-brandt/FritzTR064

 
 

Repository files navigation

FritzTR064

Java-library to communicate with the AVM FritzBox by using the TR-064 protocol.

This project uses the build tool gradle.

Create FritzTR064.jar

Compile the project with gradle.

> ./gradlew clean build 

You can find the JAR file in directory build/libs/FritzTR064.jar

Dependencies

This library depends on:

Quickstart

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

Debuging

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" />

Resorces

About

Java API for the Fritzbox TR-064 protokoll

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%