diff --git a/src/app/core/services/nfc/nfc/nfc.service.ts b/src/app/core/services/nfc/nfc/nfc.service.ts index 08210a7..e54362f 100644 --- a/src/app/core/services/nfc/nfc/nfc.service.ts +++ b/src/app/core/services/nfc/nfc/nfc.service.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; import { + Iso15693RequestFlag, NdefMessage, NfcTag, NfcTagTechType, @@ -108,6 +109,8 @@ export class NfcService { public async transceive( techType: NfcTagTechType, data: number[], + iso15693RequestFlags?: Iso15693RequestFlag[], + iso15693CommandCode?: number, ): Promise { const isSupported = await this.isSupported(); if (!isSupported) { @@ -120,6 +123,8 @@ export class NfcService { const { response } = await this.capacitorNfcService.transceive({ techType, data, + iso15693CommandCode, + iso15693RequestFlags, }); return response; } diff --git a/src/app/modules/transceive/pages/transceive/transceive.page.html b/src/app/modules/transceive/pages/transceive/transceive.page.html index 0fb991e..55260b4 100644 --- a/src/app/modules/transceive/pages/transceive/transceive.page.html +++ b/src/app/modules/transceive/pages/transceive/transceive.page.html @@ -34,6 +34,46 @@ [(ngModel)]="selectedCommand" > + @if (isIos && selectedTechType === techType.NfcV) { + + ISO 15693 Request Flags + + Address + CommandSpecificBit8 + DualSubCarriers + HighDataRate + Option + ProtocolExtension + Select + + + + ISO 15693 Command Code + + + } (); @@ -75,6 +83,8 @@ export class TransceivePage { this.transceiveResponse = await this.nfcService.transceive( this.selectedTechType, data, + this.selectedIso15693RequestFlags, + this.selectedIso15693CommandCode, ); await this.nfcService.close(); this.changeDetectorRef.detectChanges();