Skip to content

Java API for Buffalo AirStation device (WZR-1750DHP right now)

License

Notifications You must be signed in to change notification settings

ffalcinelli/airstation-java-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buffalo AirStation Java API

Build Status Coverage Status

This project is a simple java wrapper to manage Buffalo AirStation without using the browser.

The only supported model is WZR-1750DHP since it's the only one I own, it may work with other models too.

Quick start

It's simple like this

AirStation airStation = new AirStation("http://192.168.11.1");
try {
    airStation.login("admin", "password");
    System.out.println(airStation.getDevice().toString(4));
} catch (Exception e) {
    e.printStackTrace();
} finally {
    try {
        airStation.close();
    } catch (IOException e) {
        e.printStackTrace();
    }
}

will return a JSON like

{
    "SUB_VERSION": "1.02",
    "BOOT_VERSION": "6.30.163-1.00",
    "VERSION": "2.29",
    "VENDOR": "BUFFALO INC",
    "COPYRIGHT": "Copyright © 2013-2014 Buffalo Inc.",
    "MODEL": "WZR-1750DHP",
    "REGION": "EU"
}

Each method has an asynchronous version accepting an AsyncCallback<T> instance:

airStation.getDevice(new AsyncCallback<JSONObject>() {
            @Override
            public void onFailure(Throwable t) {
                System.err.println(t.getMessage());
            }

            @Override
            public void onSuccess(JSONObject data) {
                System.out.println(data.toString(4));
            }
        });

Development

Development is still in progress, right now just a basic set of functionalities have been remapped.

API Reference Documentation

The API Reference Documentation for AirStationLink can be found here.

About

Java API for Buffalo AirStation device (WZR-1750DHP right now)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published