-
Notifications
You must be signed in to change notification settings - Fork 1
Home
written in Java 1.6
NFCReader reader = new NFCReader(); Properties tagContent=reader.read(); String tagID=tagContent.get(NFCReader.PROPERTY_TYPE_TAG_IDENTITY); String tagValue=tagContent.get(NFCReader.PROPERTY_TYPE_TAG_VALUE);
... tagID contains the unique ID of the MIFARE-Ultralight C chip ... tagValue contains the userData of the MIFARE-Ultralight C chip
NFCWriter writer = new NFCWriter(); writer.write("Hello World");
NFCWriter writer = new NFCWriter(); writer.lockTag();
-
before building the project add your keystore do the folder src/keystore
-
uncomment to jarsigner plugin in pom.xml
-
build your nfcutil.jar
-
add the nfcUtil.jar to the webcontent
-
add an applet to your site and define the callback method
<applet mayscript="true" code = 'info/margreiter/nfc/applet/NFCReaderApplet.class'
archive = 'nfcUtil.jar' name="rfid" height="50" width="300">
<param name="callback" value="processRFID">
</applet>
6.) create a callback method in the site
<script type="text/javascript">
function processRFID(result){
var obj = eval("(" + result + ')');
var id=obj.id;
var content=obj.content;
... do something with the contant ...
}
</script>