platypush.message.event.nfc

class platypush.message.event.nfc.NFCDeviceConnectedEvent(reader=None, *args, **kwargs)[source]

Event triggered when an NFC reader/writer devices is connected

__init__(reader=None, *args, **kwargs)[source]
Parameters:reader (str) – Name or address of the reader that fired the event
class platypush.message.event.nfc.NFCDeviceDisconnectedEvent(reader=None, *args, **kwargs)[source]

Event triggered when an NFC reader/writer devices is disconnected

__init__(reader=None, *args, **kwargs)[source]
Parameters:reader (str) – Name or address of the reader that fired the event
class platypush.message.event.nfc.NFCEvent(reader=None, tag_id=None, *args, **kwargs)[source]

Generic class for NFC events

__init__(reader=None, tag_id=None, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]

class platypush.message.event.nfc.NFCTagDetectedEvent(reader=None, tag_id=None, records=None, *args, **kwargs)[source]

Event triggered when an NFC tag is connected

__init__(reader=None, tag_id=None, records=None, *args, **kwargs)[source]
Parameters:
  • reader (str) – Name or address of the reader that fired the event
  • tag_id (str) – ID of the NFC tag
  • records (str, bytes or JSON-serializable object) – Optional, list of records read from the tag. If the tag contains JSON-serializable data then it will be cast by the backend into the appropriate object
class platypush.message.event.nfc.NFCTagRemovedEvent(reader=None, tag_id=None, *args, **kwargs)[source]

Event triggered when a NFC card is removed/disconnected

__init__(reader=None, tag_id=None, *args, **kwargs)[source]
Parameters:
  • reader (str) – Name or address of the reader that fired the event
  • tag_id (str) – ID of the NFC tag