Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hallo,

ich möchte gerne in PHP eine VCard3.0 auf einen NFC Chip speichern. Ich besitze das NFC/RFID-Bricklet. Hat jemand vielleicht ein Programmbeispiel wie man das umsetzen kann? Brauche da wirklich dringend Hilfe.

 

Folgende VCard möchte ich speichern:

 

BEGIN:VCARD

VERSION:3.0

N:Mustermann;Erika

FN:Erika Mustermann

ORG:Wikipedia

TITLE:Oberleutnant

PHOTO;VALUE=URL;TYPE=JPEG:http://commons.wikimedia.org/wiki/File:Erika_Mustermann_2010.jpg

TEL;TYPE=WORK,VOICE:+49 221 9999123

TEL;TYPE=HOME,VOICE:+49 221 1234567

ADR;TYPE=HOME:;;Heidestraße 17;Köln;;51147;Germany

EMAIL;TYPE=PREF,INTERNET:erika@mustermann.de

URL:http://de.wikipedia.org/

REV:2014-03-01T22:11:10Z

END:VCARD

 

Danke für jede Hilfe und Idee

Timo

Geschrieben

Wenn ich das richtig sehe braucht man dafür einen text/vcard Mime Media Ndef Record. D.h. es müsste zuerst ein Ndef Record geschrieben werden und der Inhalt des Ndef Records müsste der Text sein.

 

Ein Beispiel welches Ndef Mime Media Records schreibt gibt es bereits (in Python): https://raw.githubusercontent.com/Tinkerforge/nfc-rfid-bricklet/master/software/examples/python/example_write_ndef_message.py

 

Siehe "def make_message_large(self):" im Beispiel, dort wird ein Ndef Mime Media Record geschrieben.

 

 

Damit müsstest du das in PHP implementiert bekommen. Wenn es Unklarheiten zu irgendwelchen Details gibt einfach hier im Forum nachfragen, gibt viele PHP Entwickler hier :).

Geschrieben
  • Autor

Danke für die schnelle Antwort.

 

Leider hab ich aktuell noch keinerlei Kenntnisse über Python und kann mit diesem Programmierbeispiel nicht wirklich viel anfangen.

 

Vielleicht ist hier jemand im Forum, der mir eine Übersetzung in PHP, Java oder Delphi schreiben kann. Das würde mir sehr weiterhelfen.

 

Vielen Dank schon mal im vorraus  :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.