Skip to content

Arduino Library

Choose a tag to compare

@alvarolb alvarolb released this 24 Oct 18:11
· 166 commits to master since this release
  • Add support for using built-int Arduino String from/to pson structures. This way you can receive string values directly to the Stringtype:
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.