1
廣告數據對於iPhone而言是可讀格式,但對於android而言,它是十進制格式。如何閱讀和解釋Android的廣告數據包。如何從BLE讀取廣告數據Ionic
this.scanner = this.ble.scan(["00EDSE-0000-00AE-9VVQ-9125475145125"], 1).subscribe((response) => {
console.log("success scan.." + JSON.stringify(response));
this.ble.connect(response.id).subscribe((response) => {
this.toast.show("Successfully paired", '2000', 'bottom').subscribe((toast) => {
console.log(toast);
this.spinnerDialog.hide();
});