include NFC changes required for transferring data
This commit is contained in:
@@ -5,16 +5,31 @@ from kivy.clock import Clock
|
||||
from kivy.logger import Logger
|
||||
|
||||
class ScannerDummy(NFCBase):
|
||||
'''This is the dummy interface that gets selected in case any other
|
||||
hardware interface to NFC is not available.
|
||||
'''
|
||||
|
||||
_initialised = False
|
||||
|
||||
name = 'NFCDummy'
|
||||
|
||||
def nfc_init(self):
|
||||
# print 'nfc_init()'
|
||||
|
||||
Logger.debug('NFC: configure nfc')
|
||||
self._initialised = True
|
||||
self.nfc_enable()
|
||||
return True
|
||||
|
||||
def on_new_intent(self, dt):
|
||||
tag_info = {'type': 'dymmy',
|
||||
'message': 'dummy',
|
||||
'extra details': None}
|
||||
|
||||
# let Main app know that a tag has been detected
|
||||
app = App.get_running_app()
|
||||
app.tag_discovered(tag_info)
|
||||
app.show_info('New tag detected.', duration=2)
|
||||
Logger.debug('NFC: got new dummy tag')
|
||||
|
||||
def nfc_enable(self):
|
||||
|
||||
Reference in New Issue
Block a user