mirthas/FritzTR064


Java API for the Fritzbox TR-064 protokoll

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.mirthas:FritzTR064:'
	}
	dependencies {
		implementation("com.github.mirthas:FritzTR064:")
	}
	<dependency>
	    <groupId>com.github.mirthas</groupId>
	    <artifactId>FritzTR064</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.mirthas" % "FritzTR064" % ""
        
        

                            
    :dependencies [[com.github.mirthas/FritzTR064 ""]]
        
        

Readme


FritzTR064

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

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

Resorces