Open Sheldor5 opened 7 years ago
For what it is worth, trying to compile the code above in IDE 1.8.5 or later gives this error:
Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Uno"
/home/.../Arduino/sketch_oct29a/sketch_oct29a.ino: In function 'void loop()':
sketch_oct29a:27: error: void value not ignored as it ought to be
Bridge.put("key", "TestContent");
^
sketch_oct29a:34: error: void value not ignored as it ought to be
Bridge.put("key", "Test");
^
sketch_oct29a:40: error: expected primary-expression before '}' token
}
^
exit status 1
void value not ignored as it ought to be
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
If the buffer_length is smaller than the actual content of "key" then the Bridge.get() command takes about >5200 ms (yes, more than 5 seconds ...).
Tested with the following code:
If the buffer_length is bigger than or the exact size of the actual content, it works within ~7ms. Also if the content ONCE is bigger than buffer_length the Bridge.get() will ALLWAYS take >5 seconds, no matter if you reset the content smaller than buffer_length ...
Arduino Yun with Bridge 1.6.3