I have got to migrate from Arduino YUN to Digix a simple wifi sketch that reads some data from a html + js application which runs on any mobile device (of course because of arduino lack of memory).
This is the structure of the Arduino YUN software:
#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
YunServer server;
void setup() {
Bridge.begin();
server.listenOnLocalhost();
server.begin();
}
void loop() {
confirm = 0;
do {
YunClient client = server.accept();
if (client) {
process(client);
client.stop();
}
delay(500);
} while (confirm == 0);
}
void process(YunClient client) {
String command = client.readStringUntil('/');
if (command == "var") {
varCommand(client);
Serial.print(" Data read");
}
}
Can somebody kindly give me advise where to start to do that?