@Override public void start() { this.getGroupContextManager().log(LOG_NAME, this.getContextType() + " Provider Started"); if (!gcm.getBluewaveManager().isScanning()) { startedScan = true; } gcm.getBluewaveManager().startScan(scanInterval); context.registerReceiver(intentReceiver, filter); }
@Override public void sendContext() { sendContext( this.getSubscriptionDeviceIDs(), new String[] { "DEVICES=" + new Gson().toJson(gcm.getBluewaveManager().getNearbyDevices(getRefreshRate())) }); }