public void start(List<String> beaconTypes) { this.beaconTypes = beaconTypes; startMeshbluListeners(); if (!meshblu.isRegistered()) { Log.d(TAG, "Device is not registered, registering now"); SaneJSONObject properties = new SaneJSONObject(); properties.putOrIgnore("type", "device:beacon-blu"); properties.putOrIgnore("online", "true"); meshblu.register(properties); } else { Log.d(TAG, "Device is registered, starting..."); startBeaconMonitoring(); getDevice(); } }