Skip to content

ibaton/android-openhab-connect

Repository files navigation

Android Openhab Connect

Library for communicating with openhab server.

Supports both openhab 1.x and 2.x.

Download

allprojects {
	repositories {
		...
	  maven { url "https://jitpack.io" }
  }
}
dependencies {
  compile 'com.github.ibaton:android-openhab-connect:2.x.x'
}

Example

Requesting sitemap data as RX observable.

OHServer server = new OHServer();
server.setLocalurl("http://192.168.1.5:8080");

Connector.ServerHandler serverHandler = new Connector.ServerHandler(server, getContext());
Observable<List<OHSitemap>> listObservable = serverHandler.requestSitemapObservable();

About

Android library for communicating with openhab

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages