Greetings,
Using IDE 1.6.8 and After the OpenWRT 1.5.3 upgrade,
I get the following error message after a simple REST message to the YUN from Chrome browser ver 49.0.2623.87...the REST message is "arduinoname/arduino/status"
Failed to execute call dispatcher target for entry '/arduino/status'.
The called action terminated with an exception:
?:0: attempt to index a nil value
stack traceback:
: in function 'assert'
?: in function 'dispatch'
?: in function <?:194>
The code is:
[code]
#include <Time.h>
#include <Bridge.h>
#include <BridgeServer.h>
#include <BridgeClient.h>
#include <Process.h>
BridgeServer server;
void setup() {
....
Bridge.begin(); // initialize Bridge
server.listenOnLocalhost();
server.begin();
Serial.begin(9600); // initialize serial
....
}
void loop {
....
CheckClient();
....
}
CheckClient() {
void CheckClient() {
BridgeClient client = server.accept();
if (client) {
String command = client.readString();
command.trim(); // kill whitespace
Serial.println(command);
if (command == "status") {
client.println("Status Requested");
Serial.println("Connection to Client");
}
}
client.stop();
}
[/code]
I did not have this problem prior to upgrading to 1.5.3, but don't know what prior version was installed.
There is an old forum topic:
http://forum.arduino.cc/index.php?topic=259389.0
That appears to address this issue and a github commit that "fixes" it...but that info is really dated...
https://github.com/arduino/YunWebUI/issues/12
Anyone have some advice please?
thanks
RT