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

Ich möchte mit meinem Programm, dass der pages Inhalt meiner NFC Tags gelesen wird:

 

# Callback function for state changed callback

def cb_state_changed(state, idle, nr):

    # Cycle through all types

    if idle:

        global tag_type

        tag_type = (tag_type + 1) % 3

        nr.request_tag_id(tag_type)

 

    if state == nr.STATE_REQUEST_TAG_ID_READY:

        ret = nr.get_tag_id()

        print('Found tag of type ' +

              str(ret.tag_type) +

              ' with ID [' +

              ' '.join(map(str, map(hex, ret.tid[:ret.tid_length]))) +

              "]")

        data = nr.get_page()

        print('Read data: [' + ' '.join(map(str, data)) + ']')

        client.publish("sensoren/nfc_tag", str(data))

        time.sleep(2)

 

Wenn ich mehrere tags ausprobiere werden mir auch die verschiedenen Tag IDs angezeigt aber immer nur jeweils die pages Inhalte vom ersten gescannten tag.

 

Sprich in meiner Variable data = nr.get_page() werden nur einmal die Daten vom ersten Scan angezeigt und die ändern sich aber nicht bei den anderen tags.

 

 

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.