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 › FloBLE SDK
Tagged: FloBLE SDK NDEF
Hi,
I’ve got a FloBLE device purchased from your webshop (P/N: ACR1255U-J1)
I’m able to get events being handled using the:
– (void)didFindATagUUID:(NSString *)UUID fromDevice:(NSString *)deviceId, method.
I’m wondering if you’ve got a working example where the iOS SDK is using the method
– (void)didFindADataBlockWithNDEF:(NSDictionary *)ndef fromDevice:(NSString *)device; ?
I’ve got a mifare ultralight nfc tag with an ndef message written to it. I’d like to fetch the data as well as write ndef messages to the tag.
Thanks!
Hi André
– (void)didFindADataBlockWithNDEF:(NSDictionary *)ndef fromDevice:(NSString *)device;
You need to call the method getDataBlocks on the FmDevice.
[_device getDataBlocks];
Simply presenting your mifare ultralight nfc tag with an ndef message and calling that method should trigger didFindADataBlockWithNDEF and provide you with the message. It is not stable at the moment and some beta testers have found issues where it can freeze the app. I am beginning work on this so it will be resolved ASAP. I will message you when the SDK is updated.
Making the Flomio demo app from the README in the SDK should suffice as a working example.
Regarding writing an NDEF message to the tag, you will need to do this manually using APDUs which can be quite difficult. You will need to use the FmDevice found in ‘didUpdateConnectedDevices’ and then use
FmDevice *device = connectedDevices[[index intValue]];
[device sendApduCommand: apdu];
For testing, many Android devices have in built NFC readers and can be used to write NDEF tags using NXPs app, TagWriter.
Cheers,
Scott
You must be logged in to reply to this topic.