Skip to content

Commit 591c4fe

Browse files
committed
simplified installation alot
1 parent 392cbfb commit 591c4fe

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/YunMQTTInstall/YunMQTTInstall.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <Bridge.h>
2-
#include <Process.h>
32

43
void setup() {
54
Bridge.begin();
@@ -10,12 +9,9 @@ void setup() {
109

1110
Serial.println("Starting Installation!\n");
1211

13-
run("Update", "opkg update");
14-
run("Install 'easy_install'", "opkg install distribute");
15-
run("Install python SSL support", "opkg install python-openssl");
16-
run("Install 'pip'", "easy_install pip");
17-
run("Install 'paho-mqtt'", "pip install paho-mqtt");
18-
run("Download script", "wget https://raw.githubusercontent.com/256dpi/arduino-mqtt/yun-client/yun/client.py --no-check-certificate -O /usr/client.py");
12+
run("Create directory", "mkdir -p /usr/mqtt");
13+
run("Download script", "wget https://raw.githubusercontent.com/256dpi/arduino-mqtt/yun-bridge/yun/mqtt.py --no-check-certificate -O /usr/mqtt/mqtt.py");
14+
run("Download script", "wget https://raw.githubusercontent.com/256dpi/arduino-mqtt/yun-bridge/yun/bridge.py --no-check-certificate -O /usr/mqtt/bridge.py");
1915

2016
Serial.println("Installation finished!");
2117
}
@@ -35,7 +31,7 @@ void run(const char *name, const char * cmd) {
3531
p.runShellCommand(cmd);
3632

3733
while (p.available() > 0) {
38-
char c = p.read();
34+
char c = (char)p.read();
3935
Serial.print(c);
4036
}
4137

0 commit comments

Comments
 (0)