Arduino Library
- Add support for using built-int Arduino
Stringfrom/to pson structures. This way you can receive string values directly to theStringtype:
thing["resource"] << (pson& in){
String text = in;
// work with text variable here
};thing["resource"] >> (pson& out){
String text = "hello!";
out = text;
};You can even set the String as an input or output value, as with other data types:
String str = "";
setup(){
thing["stringInput"] << inputValue(str);
thing["stringOutput"] >> outputValue(str);
}- Add support for stream a resource based on its name.