Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Ask the Flomies › Reading NDEF with FloBLE +
I am having trouble reading the ndef record using Swift on iOS and the SDK 2.3 Pro beta. There is no .readerState so I can’t set it to .readData, it never calls didFindTag(withData. With the NFC reader on iPhone 7 it is so easy to get the ndef data, What am I missing?
Hi Wayne,
Instead of using readerState, now you send the APDUs manually yourself to get the data.
func readData() {
var fullResponse = ""
for currentPage in stride(from: 4, to: 16, by: 4) {
let st = String(format:"%02X", currentPage)
let apdu: String = "FF B0 00 \(st) 10"
flomioMW .sendApdu(apdu, toDevice: self.deviceUuid) { (response) in
guard let thisResponse = response?.replacingOccurrences(of: "90 00", with: "") else {return}
fullResponse.append(thisResponse)
}
}
}
Scott
You must be logged in to reply to this topic.