Skip to content

Java API for the Fritzbox TR-064 protokoll

License

Notifications You must be signed in to change notification settings

nick-less/FritzTR064

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FritzTR064

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

Dependencies

Managed by maven

Quickstart

compile and package

mvn compile assembly:single

This command will produce a startable jar containing all dependencies.

start and query

java -jar target/FritzTR064-<x.x.x>-SNAPSHOT-jar-with-dependencies.jar fb-ip fb-password fb-user tr064-service service-action [paramName=paramValue]*

The above query feature is intended only for testing / toying.

Examples

Get all the possible 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

Resorces

Thanks

To Marin Pollmann[email protected] for fiddling out the SOAP stuff.

About

Java API for the Fritzbox TR-064 protokoll

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 100.0%