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 record methods
- Loading branch information
1 parent
211f663
commit 54d1faf
Showing
3 changed files
with
185 additions
and
8 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 |
---|---|---|
|
@@ -38,14 +38,14 @@ void setup() { | |
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 | ||
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.addUriRecord("tel:1234567890"); // The library can handle all the prefixes listed at https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/master/API.md#uri-prefixes | ||
String ssid = "Bomber Cat"; // SSID of the WiFi network | ||
String authentificationType = "WPA2 PERSONAL"; // Supported authentification types at https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/master/API.md#wifi-authentication-types | ||
String encryptionType = "AES"; // Supported encryption types at https://github.com/ElectronicCats/ElectronicCats-PN7150/blob/master/API.md#wifi-encryption-types | ||
String password = "Password"; // Password of the WiFi network | ||
message.addWiFiRecord(ssid, authentificationType, encryptionType, password); | ||
message.addUriRecord("mailto:[email protected]"); | ||
message.addMimeMediaRecord("text/plain", "Hello world!", 12); | ||
message.addMimeMediaRecord("text/plain", "Hello world!", 12); // Media-type as defined in RFC 2046 | ||
nfc.setSendMsgCallback(messageSentCallback); | ||
|
||
Serial.println("Initializing..."); | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
*/ | ||
// #define DEBUG | ||
// #define DEBUG2 | ||
#define DEBUG3 | ||
// #define DEBUG3 | ||
|
||
class NdefRecord { | ||
private: | ||
|