I am trying to use the aREST library and included Ethernet example with my EtherMega or Mega/Ethernet shield, but am clearly doing something wrong. The library is at “GitHub - marcoschwartz/aREST: A RESTful environment for Arduino” and there seems to be a lot of positive activity with this library among other users, so this tells me it is regularly debugged. For the life of me though, I don’t really know how to invoke the commands I guess.
I cloned the library to my documents/arduino/library folder, and launch the example sketch therefrom and upload as is after setting my IP and MAC if need be. I forwarded port 80 in my home network GUI to 10.0.0.177 (Arduino’s static IP). I then open Firefox and type any of the following combinations into the browser only to have Firefox tell me the server cannot be found.
I tried 2 variations of the example in that I already have my EtherMega in a project box connected to 8 channel relays, so to use the relays as LEDs, I coded for digitalWrite commands to be directed at digital pins 30-37. I tried this variation of the Ethernet example, but I also tried the example with no modifications except for MAC, IP. This barebones example, I also tried all 3 combinations of the above REST calls in the Firefox browser, all returned “server not found”.
Do I need to try a different browser, or are there files that need to be put on the micro SD card first like used in other server examples? I have my own site that was made in wordpress and it has it’s own API which I intend to one day plug my project into, but I understand that getting this REST library working in my LAN network will be a step in the right direction.
If anyone can advise what I’m doing wrong in this situation, and/or
any other insights that will help me finally bridge this gap between my project and my hosted website is appreciated in advance.