C++ stack packages the JSON payload and send it as payload within CoAP.
And the JSON format said, "A string is a sequence of zero or more
Unicode characters, wrapped in double quotes, using backslash escapes."
Change-Id: I9641df115945dead2dcd41a08576047dcdd01d98
payload << ',';
}
- payload << *itr;
+ payload << "\"" << *itr << "\"";
}
payload << "]";
payload << ',';
}
- payload << *itr;
+ payload << "\"" << *itr << "\"";
}
payload << "],";
payload << ',';
}
- payload << *itr;
+ payload << "\"" << *itr << "\"";
}
payload << "]";