Home › Forums › Ask the Flomies › Problems with SDK 2.3 Pro beta
-
AuthorPosts
-
December 7, 2017 at 5:21 pm #61790
I can’t get StopReader and SleepReader to work, that also means that I don’t know if StartReader will work because I can’t stop the reader. I also see from your Readme on the latest SDK that you can only read 16 bits of the Ndef record, what good is that? Also you SDK docs leave out a lot of information, example communicationStatus has values for Scanning 0, Connected 1 & Off 2, but are there others because these are not listed in your docs.
December 8, 2017 at 10:08 am #61798Hey,
What about start and stop reader are not working? We use them for multiple applications and they work for our needs.
I have added a convenience method to a beta SDK for you to read Ndef data:flomioMW.readNdef(deviceId) { (ndef) in for record in (ndef?.ndefRecords)! { let ndefRecord = record as! NdefRecord print(ndefRecord.payloadString) } }
You can try it with this beta: SDK v2.3 beta
The current size limit is 16 pages of Ndef data, which is 64 bytes.Communication Status is
typedef NS_ENUM(NSInteger, CommunicationStatus) { kScanning, //scanning for tags kConnected, //connected to bluetooth but not scanning kDisconnected //disconnected from bluetooth };
If you have anymore questions about areas which left out of the docs, please let me know.
- This reply was modified 6 years, 11 months ago by Scott.
December 8, 2017 at 3:57 pm #61804When I use flomioMW.stopReader(deviceSerialNumber) it still allows me to scan tags. I have a screen that I allow users to scan tags and it displays information, and then takes them to another page to fill in some questions. When I change screens I want to stop the reader so they can’t scan any tags on the question page. Then after saving that information I will return to the scan page and start the reader up again.
December 8, 2017 at 3:59 pm #61805I am using the Pro SDK, did you add
flomioMW.readNdef(deviceId) { (ndef) in for record in (ndef?.ndefRecords)! { let ndefRecord = record as! NdefRecord print(ndefRecord.payloadString) } }
to the Pro SDK also?
December 8, 2017 at 4:20 pm #61806I will have to try reproduce that behaviour with starting and stopping the reader scanning tags for you on Monday. In case you haven’t already, make sure you set the powerOperation before initializing the sessionManager.
I have updated the Pro SDK too, that should be the same link.
We will be adding better documentation very soon too.
Scott
December 12, 2017 at 6:50 am #61836Hi Wayne,
Can you please use kAutoPollingControl for PowerOperation in FmConfiguration to disable scanning while using the app. startReaders and stopReaders will enable / disable polling for tags while this is set.
Scott
December 13, 2017 at 10:51 am #61847Hi Wayne,
How are you getting on? Did you get a chance to use the
readNdef
feature?Scott
-
AuthorPosts
You must be logged in to reply to this topic.