Open jackblk opened 8 years ago
Original error message
Arduino: 1.6.12 (Windows 10), Board: "Arduino Nano, ATmega328" C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp: In member function 'FOUND_MESSAGE NDEF::decode_message(uint8_t*)': C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:61:58: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] m.format = (char *)(uint8_t)msg[0]; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:95:9: warning: jump to case label [-fpermissive] default: ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:82:18: error: crosses initialization of 'char mimetype [typeLength]' char mimetype [typeLength-2]; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp: In member function 'uint8_t NDEF::encode_URI(uint8_t, uint8_t*)': C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:108:41: warning: narrowing conversion of '(((int)len) + 5)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] uint8_t payload_head[7] = {0x03, len+5, record_header, 0x01, len+1, 0x55, uriPrefix}; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:108:69: warning: narrowing conversion of '(((int)len) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] uint8_t payload_head[7] = {0x03, len+5, record_header, 0x01, len+1, 0x55, uriPrefix}; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp: In member function 'uint8_t NDEF::encode_TEXT(uint8_t*, uint8_t*)': C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:130:41: warning: narrowing conversion of '(((int)len) + 7)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] uint8_t payload_head[9] = {0x03, len+7, record_header, 0x01, len+3, 0x54, 0x02, lang[0], lang[1]}; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:130:69: warning: narrowing conversion of '(((int)len) + 3)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] uint8_t payload_head[9] = {0x03, len+7, record_header, 0x01, len+3, 0x54, 0x02, lang[0], lang[1]}; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp: In member function 'uint8_t NDEF::encode_MIME(uint8_t*, uint8_t*, uint8_t)': C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:151:52: warning: narrowing conversion of '((((int)len) + ((int)typeLen)) + 3)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] uint8_t payload_head[5] = {0x03, len + typeLen + 3, record_header, typeLen, len}; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp: In member function 'char* NDEF::get_uri_prefix(uint8_t)': C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:185:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return ""; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:187:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "http://www."; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:189:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "https://www."; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:191:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "http://"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:193:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "https://"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:195:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "tel:"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:197:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "mailto:"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:207:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "smb://"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:243:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "file://"; ^ C:\Program Files (x86)\Arduino\libraries\MFR522_NDEF-master\NDEF.cpp:257:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] return "unknown"; ^ exit status 1 Error compiling for board Arduino Nano. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
`
Hi Gargantuanman
How to set or write source code or library for NDEF format using MFRC522 and WIZwiki-W7500 mbed board ??
Original error message
`