Slide 109
Slide 109 text
Copyright © 2022 treastrain / Tanaka RyogaɹAll rights reserved.
σϦήʔτϝιουͰड͚औΔ
/%&'ܗࣜͰͳ͍σʔλͷ߹ʢ*40ʣ
102
extension MyTagReaderWriter {
func tagReader(session: NFCTagReaderSession,
didConnect iso7816Tag: NFCISO7816Tag) async throws {
let apdu = NFCISO7816APDU(instructionClass: 0x00, instructionCode: 0xB0,
p1Parameter: 0x00, p2Parameter: 0x00,
data: Data(), expectedResponseLength: 16)
let (response, sw1, sw2) = try await iso7816Tag.sendCommand(apdu: apdu)
// ...
session.alertMessage = “Done!"
session.invalidate()
}
}