Skip to content

Commit d233b08

Browse files
committed
updated examples
1 parent 6935d76 commit d233b08

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/ReadWriteConfigFile/ReadWriteConfigFile.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bool loadYamlConfig()
6161
{
6262
File_t file = SD.open( config_file );
6363
if( !file ) {
64-
Serial.println("Can't open test file for writing :-(");
64+
Serial.println("Can't open test file for reading :-(");
6565
return false;
6666
}
6767
auto err = deserializeYml( json_doc, file ); // convert yaml to json

examples/deserializeYml/deserializeYml.ino

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ blah:
99
nope: ["n","o","p","e"]
1010
integer: 12345
1111
float: 12.3323
12+
qinteger: "12345"
13+
qfloat: "12.3323"
1214
last: true
1315
1416
)_YAML_STRING_";
@@ -20,6 +22,8 @@ const char* json_sample_str = R"_JSON_STRING_(
2022
"blah": { "nope": [ "n", "o", "p", "e" ] },
2123
"integer": 12345,
2224
"float": 12.3323,
25+
"qinteger": "12345",
26+
"qfloat": "12.3323",
2327
"last": true
2428
}
2529

0 commit comments

Comments
 (0)