'Message' object is not callable
Hi there,
I am trying to append an NDEF record to my tag and I am running into an odd error, this might be due to my Python knowledge but a point in the right direction would be great, this is the problematic part of the code:
def connected(tag):
freq = 2500
dur = 500
winsound.
record1 = nfc.ndef.
msg = tag.ndef.message()
msg.
ndefdata = tag.ndef.
The error I get:
TypeError: 'Message' object is not callable
I've spent hours reading the documentation and I'm not sure what is wrong here, any help is greatly appreciated!
Thanks,
Kyle
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask kyle for more information if necessary.