File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
#include < Bridge.h>
2
- #include < Process.h>
3
2
4
3
void setup () {
5
4
Bridge.begin ();
@@ -10,12 +9,9 @@ void setup() {
10
9
11
10
Serial.println (" Starting Installation!\n " );
12
11
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" );
19
15
20
16
Serial.println (" Installation finished!" );
21
17
}
@@ -35,7 +31,7 @@ void run(const char *name, const char * cmd) {
35
31
p.runShellCommand (cmd);
36
32
37
33
while (p.available () > 0 ) {
38
- char c = p.read ();
34
+ char c = ( char ) p.read ();
39
35
Serial.print (c);
40
36
}
41
37
You can’t perform that action at this time.
0 commit comments