these days i'm trying to learn Galileo 2 and Arduino IDE, but today i've found a strange error during the test of an Example Sketch: TemperatureWebPanel.
Arduino IDE infact returns the error:
In file included from TemperatureWebPanel.ino:38:0:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Bridge/src/Bridge.h: In member function 'void BridgeClass::put(const String&, const String&)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Bridge/src/Bridge.h:34:15: error: 'const class String' has no member named 'c_str'
/Applications/Arduino.app/Contents/Resources/Java/libraries/Bridge/src/Bridge.h:34:30: error: 'const class String' has no member named 'c_str'
I tried also http://scuola.arduino.cc/lesson/zzdeJ3m/YunServer_Sensor_values_to_HTML_page this example, but the IDE returns always the same error :/
You are right, the bridge library doesn't compile. There is an Intel document listing "compliant" Arduino libraries (i.e. those actually working in Intel Galileo). I don't have that document at hand, I'll post if I find it. However, I'm curious about why you are trying to use a Yún example (the URL of the example you posted indicates "YunServer"). I think Yún is very different from Galileo https://www.arduino.cc/en/Main/ArduinoBoardYun Arduino - ArduinoBoardYun, and the bridge library seems to be focused on Yún https://www.arduino.cc/en/Reference/YunBridgeLibrary Arduino - YunBridgeLibrary:
"The Arduino https://www.arduino.cc/en/Products/ArduinoYUN Yún has two processors on board. One is an ATmega32U4 like on the Arduino https://www.arduino.cc/en/Main/ArduinoBoardLeonardo Leonardo. The other is an Atheros 9331, running Linux ... The Bridge library simplifies communication between the ATmega32U4 and the AR9331."
or maybe I'm losing something.
Replying to myself just to add that I found the so called "Supported Arduino libraries" in http://www.intel.la/content/www/xl/es/embedded/products/galileo/galileo-sw-release-notes.html http://www.intel.la/content/www/xl/es/embedded/products/galileo/galileo-sw-release-notes.html, and bridge is not there
Ah, ok :/
So now i'm going to try alternatives like "EthernetServer". I want to print the value of a sensor on a HTML page and also update a Sketch's variable with ajax (GET or POST). After a quick reading, I think that this library can work.