Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitAndroid authored Apr 2, 2019
1 parent a48b174 commit 64f74b0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@
headerMap.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36");

bleBeaconWrapper.getBeaconData(url,
DNAEntity.class, headerMap, 3000, new BleBeaconListener<BeaconResultEntity>() {
DNAEntity.class, headerMap, 3000, new BleBeaconListener<DNAEntity>() {
@Override
public void onResult(List<BeaconResultEntity> list) {
public void onBeaconDataResult(List<BeaconResultEntity> list) {
Log.d("BLE-RESPONSE", "Total : " + list.size());
for (int i = 0; i < list.size(); i++) {
Log.d("BLE-RESPONSE", "Inside : " + list.get(i).getResult().size());
Log.d("BLE-RESPONSE", "Inside : " + list.get(i).getBeaconDetail().getBluetoothAddress()
+ " | Accuracy : "+list.get(i).getBeaconDetail().getAccuracy());
}

}
Expand All @@ -46,5 +47,11 @@
public void onShowProgress() {
Log.d("BLE-RESPONSE", "onShowProgress");
}

@Override
public void onParsableDataResult(List<DNAEntity> parsableData) {
Log.d("BLE-RESPONSE", "onParsableDataResult");
//Your json parsable data list
}
});
</pre>

0 comments on commit 64f74b0

Please sign in to comment.