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.
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 is still in progress, right now just a basic set of functionalities have been remapped.
The API Reference Documentation for AirStationLink can be found here.