Skip to content

Instantly share code, notes, and snippets.

final String payload = "ce815a358bed057c3bdb5032a6246b6d5cb6113e705611cb81afe60aa2490126.f2a2b89f3eb8e17d2b612f2cafec30e5672a500cda8b81f21ff44489ececa885010f010b10112713011510110125000a00.13b2c3b7bafb1cb6be4aa252e2b2b7b853d7ae2ce9ae5dbb1834bf4f9d9ea3180201";
//hämta adapter och skapa Qlocx-SDK
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
final QlocxInterface qlocxInterface = new QlocxInterface(adapter);
//öppna lås med payload från Sesam
qlocxInterface.open(payload, new QlocxInterface.Callback() {
@Override
public void openResult(byte[] result) {