Comments (17)
It does, just not in the current release unfortunately. Try to get the source & compile it:
$ git clone https://github.com/esp8266/Arduino.git
$ cd Arduino/build
$ ant dist
And let me know if that helps.
from arest.
Hi Marco,
I tried your approach but it doesn't change anything
Best wishes
Stephan
from arest.
Hi Stephan,
I had errors too recently with the latest commits of the ESP8266 Arduino IDE. I released a fix for aREST yesterday, did you already try it ?
Cheers,
Marco
from arest.
Hi Marco,
I tried again with the same result. I uses the esp8266 1.6.1 Arduino bundle. I'am not sure witch board should be used. I uses the Generic ESP Board because the Arduino ESP Board is disabled.
Best wishes
Stephan
from arest.
@marcoschwartz, Thanks for help.
I have test to compile it again with 1.6.1 Arduino IDE with current release (on 5-10 May). and it got only warn message.
Build options changed, rebuilding all
In file included from ESP8266.ino:10:0:
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h: In member function 'void aREST::send_http_headers()':
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:129:189: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("HTTP/1.1 200 OK\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Methods: POST, GET, PUT, OPTIONS\r\nContent-Type: application/json\r\nConnection: close\r\n\r\n"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h: In member function 'bool aREST::send_command(bool)':
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:574:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"message\": \"Pin D"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:585:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!LIGHTWEIGHT){addToBuffer(F(" set to input\", "));}
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:595:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!LIGHTWEIGHT){addToBuffer(F(" set to output\", "));}
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:610:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"return_value\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:612:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:618:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!LIGHTWEIGHT) {addToBuffer(F("{"));}
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:628:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(","));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:631:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\"D"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:633:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:635:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:648:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"message\": \"Pin D"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:650:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(" set to "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:652:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:667:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"return_value\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:669:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:674:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!LIGHTWEIGHT) {addToBuffer(F("{"));}
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:684:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(","));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:687:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\"A"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:689:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:691:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:702:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"message\": \"Pin D"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:704:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(" set to "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:706:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:717:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:719:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:721:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:732:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:734:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:736:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:748:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:750:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": \""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:752:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:765:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"return_value\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:767:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:777:41: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{\"variables\": {"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:783:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:785:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:787:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(", "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:789:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:791:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\": "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:793:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("}, "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:796:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F(" }, "));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:805:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("{"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:811:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\r\n"));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:816:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\"id\": \""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:818:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\", \"name\": \""));
^
/Users/Kanin/Documents/Arduino/libraries/aREST/aREST.h:820:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
addToBuffer(F("\", \"connected\": true}\r\n"));
^
ESP8266.ino: In function 'void setup()':
ESP8266.ino:37:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:38:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:41:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:44:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:45:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Sketch uses 242,129 bytes (46%) of program storage space. Maximum is 524,288 bytes.
but I will try with 1.6.4 soon
from arest.
@stephanmarks, Did you compile Arduino IDE to the latest release?
if you use Windows you can download here https://ci.appveyor.com/project/igrr/Arduino/build/artifacts
from arest.
Yes, I got warning messages too :) With recent versions of the ESP8266 Arduino IDE I had errors as well, but I updated aREST to remove theses errors (also linked to PROGMEM). I can confirm that with the latest version from the source + latest aREST version it compiles fine.
from arest.
Hello Marco,
I too am getting compile errors with the ESP8266 example, unfortunately my setup is far from standard, but if it helps here is the senario:
W7x64 + ESP8266 Arduino add-on from Sandeepmistry (on Arduino 1.6.4) + aREST 1.9.8
I might add that many other programs compile and build well but I'm not sure if I'm doing this the right way !
Any suggestions ?
Using library ESP8266WiFi in folder: U:\ARDUINO\Arduino_1.6.4\hardware\esp8266com\esp8266\libraries\ESP8266WiFi
Using library aREST in folder: U:\ARDUINO\SKETCHES\libraries\aREST-1.9.8
U:\ARDUINO\Arduino_1.6.4\hardware\esp8266com/esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IU:\ARDUINO\Arduino_1.6.4\hardware\esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -IU:\ARDUINO\Arduino_1.6.4\hardware\esp8266com\esp8266\cores\esp8266 -IU:\ARDUINO\Arduino_1.6.4\hardware\esp8266com\esp8266\variants\generic -IU:\ARDUINO\Arduino_1.6.4\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src -IU:\ARDUINO\SKETCHES\libraries\aREST-1.9.8 C:\Users\aniston\AppData\Local\Temp\build5102094768893817726.tmp\ESP_aREST_20150518.cpp -o C:\Users\aniston\AppData\Local\Temp\build5102094768893817726.tmp\ESP_aREST_20150518.cpp.o
regards,
aniston.
from arest.
Hi all! Well, since last night there might be some news that could help everybody :) Check on:
https://github.com/esp8266/Arduino
Basically there is now a way to use the official Arduino IDE (1.6.4) and just use the board manager. The instructions are:
Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).
Install Arduino 1.6.4 from the Arduino website.
Start Arduino and open Perferences window.
Enter http://arduino.esp8266.com/package_esp8266com_index.json into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
I haven't tried it myself yet, but I will do today and if it works I will recommend that as the way to use aREST as it doesn't required to build Arduino from scratch.
from arest.
Hi
sorry for the delay.
I have tested the new Version 1.6.4 with the instruction from Marco. All works well but while the transfer I get this error
warning: espcomm_sync failed
error: espcomm_open failed
I have checked my wiring but I can see any mistake. I am using the ESP 01 Board.
Best wishes
Stephan
from arest.
Looks like the board is not in bootloader mode. Can you try by following these instructions (from my website):
After that, we need to put the board in bootloader mode, so we can program it. To do so, connect the pin GPIO 0 to the ground, via the cable we plugged into GPIO 0 before. Then, power cycle the board but switching the power supply off & then on again.
Now, upload the code to the board, and open the Serial monitor when this is done. Also set the Serial monitor speed to 115200. Now, disconnect the cable between GPIO 0 and GND, and power cycle the board again. You should see the following message:
from arest.
I compiled https://github.com/esp8266/Arduino from git and installed aREST via the Library Manger in the Arduino IDE. Compilation of the ESP8266 demo sketch gives
ESP8266.cpp.o
In file included from ESP8266.ino:10:0:
/Users/user/Documents/Arduino/libraries/aREST/aREST.h: In member function 'void aREST::addToBuffer(const __FlashStringHelper*)':
/Users/user/Documents/Arduino/libraries/aREST/aREST.h:884:23: error: section attribute cannot be specified for local variables
const char PROGMEM *p = (const char PROGMEM *)toAdd;
^
/Users/user/Documents/Arduino/libraries/aREST/aREST.h:884:47: warning: 'section' attribute does not apply to types [-Wattributes]
const char PROGMEM *p = (const char PROGMEM *)toAdd;
^
ESP8266.ino: In function 'void setup()':
ESP8266.ino:37:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:38:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:41:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:44:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESP8266.ino:45:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Error compiling.
Replacing all instances of " PROGMEM" with nothing fixed it for me.
I think the 1.9.8 on https://github.com/marcoschwartz/aREST/releases is outdated - unfortunately this is what gets installed by the Library Manger in the Arduino IDE at the moment. Using the version from git instead compiles fine without changes.
Please release the new version so that it gets installed by the Library Manger in the Arduino IDE instead.
from arest.
Hello,
For the latest version of aREST you need to use the built-in library manager from the Arduino IDE. I will update the README soon, in the meantime refer to: https://github.com/esp8266/Arduino
from arest.
Closing this issue as it works fine with latest version of Arduino with the board manager.
from arest.
deprecated conversion warning...ide 1.6.5..
installing by zip or by library manger same result:
issue in the code or in my mind? :)
Build options changed, rebuilding all
In file included from ESP8266.ino:11:0:
/home/mk/Arduino/libraries/aREST_UI/aREST_UI.h: In member function 'virtual void aREST_UI::root_answer()':
/home/mk/Arduino/libraries/aREST_UI/aREST_UI.h:71:69: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings]
addToBuffer("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n");
^
/home/mk/Arduino/libraries/aREST_UI/aREST_UI.h:72:31: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings]
addToBuffer("");
^
/home/mk/Arduino/libraries/aREST_UI/aREST_UI.h:73:91: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings]
addToBuffer("<meta name="viewport" content="width=device-width, initial-scale=1">");
^
/home/mk/Arduino/libraries/aREST_UI/aREST_UI.h:74:27: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings]
from arest.
Well warnings doesn't prevent the library to work :) Are you sure it doesn't work properly ?
from arest.
sorry, yes it does ... but only rest.button seem to work(esp8266 example), keep experimentation...:)
from arest.
Related Issues (20)
- arest.io problem HOT 3
- output pin set to low at startup
- Issue with multiple Custom functions
- Unable to create a new account HOT 2
- Request example sketch for local use of API key HOT 1
- function name gets confused after 6 characters HOT 1
- 'class aREST' has no member named 'get_topic' HOT 3
- Limitations HOT 1
- ethernet_cloud sketch don't run HOT 2
- https://dashboard.arest.io/devices is not providing any way to add devices HOT 1
- Why is support for text and float variables restricted?
- aREST using UIPEthernet stack failed HOT 1
- Multiple warnings ISO C++ forbids converting a string constant to 'char*' [-Write-strings]
- To support Ethernet2.h library, this should be "ethernet_h"
- Does aREST support the Arduino Uno WiFi r2 Board ? HOT 4
- ESP8266WiFi.h: No such file or directory compilation terminated.
- rest.function() bug: command is improperly passed to function
- How to force send a HTTP 200 command in a rest.function
- CONTROLLINO MAXI AUTOMATION WITH AREST
- Freezes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arest.