File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,11 @@ void YunMQTTClient::begin(const char * hostname, int port) {
16
16
}
17
17
18
18
int YunMQTTClient::installBridge () {
19
- boolean f1 = FileSystem.exists (" /usr/mqtt/mqtt.py" );
20
- boolean f2 = FileSystem.exists (" /usr/mqtt/bridge.py" );
21
-
22
- if (f1 && f2) {
23
- return 1 ;
24
- }
25
-
26
19
Process p;
27
20
28
- int r1 = p.runShellCommand (" mkdir -p /usr/mqtt" );
29
- int r2 = p.runShellCommand (" wget https://raw.githubusercontent.com/256dpi/arduino-mqtt/master /yun/mqtt.py --no-check-certificate -O /usr/mqtt/mqtt.py " );
30
- int r3 = p.runShellCommand (" wget https://raw.githubusercontent.com/256dpi/arduino-mqtt/master /yun/bridge.py --no-check-certificate -O /usr/mqtt/bridge.py " );
21
+ int r1 = p.runShellCommand (" mkdir -p /usr/arduino- mqtt" );
22
+ int r2 = p.runShellCommand (" wget -N https://raw.githubusercontent.com/256dpi/arduino-mqtt/v1.7.0 /yun/mqtt.py --no-check-certificate -P /usr/arduino- mqtt" );
23
+ int r3 = p.runShellCommand (" wget -N https://raw.githubusercontent.com/256dpi/arduino-mqtt/v1.7.0 /yun/bridge.py --no-check-certificate -P /usr/arduino- mqtt" );
31
24
32
25
boolean success = r1 == 0 && r2 == 0 && r3 == 0 ;
33
26
You can’t perform that action at this time.
0 commit comments