forked from sabas1080/PN7150
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(api): update ndef message methods
- Loading branch information
1 parent
4385413
commit 211f663
Showing
2 changed files
with
127 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,14 +37,15 @@ void setup() { | |
message.addTextRecord("Hola mundo!", "es"); // Spanish explicitly, check a language code table at https://www.science.co.il/language/Locale-codes.php | ||
message.addTextRecord("Bonjour le monde!", "fr"); // French explicitly | ||
message.addUriRecord("google.com"); // No prefix explicitly | ||
message.addUriRecord("https://www.electroniccats.com"); // https://www. prefix explicitly, the library can handle all the prefixes listed at TODO: add link to prefixes table | ||
message.addUriRecord("tel:1234567890"); | ||
message.addUriRecord("https://www.electroniccats.com"); // https://www. prefix explicitly | ||
message.addUriRecord("tel:1234567890"); // The library can handle all the prefixes listed at https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/refactor/API.md##uri-prefixes | ||
String ssid = "Bomber Cat"; | ||
String authentificationType = "WPA2 PERSONAL"; | ||
String encryptionType = "AES"; | ||
String password = "Password"; | ||
message.addWiFiRecord(ssid, authentificationType, encryptionType, password); | ||
message.addUriRecord("mailto:[email protected]"); | ||
message.addMimeMediaRecord("text/plain", "Hello world!", 12); | ||
nfc.setSendMsgCallback(messageSentCallback); | ||
|
||
Serial.println("Initializing..."); | ||
|