@@ -1217,10 +1217,9 @@ UpdateWidgetDataClick:
1217
1217
UpdateFilesClick:
1218
1218
if not DeviceSelected stop
1219
1219
put property `ssid` of Device into SSID
1220
- split SSID on ` `
1221
1220
put from 8 of SSID into MAC
1222
1221
1223
- put FirmwareDirectory cat `files.txt` into Path
1222
+ put FirmwareDirectory cat `/ files.txt` into Path
1224
1223
load Files from Path
1225
1224
split Files
1226
1225
put 0 into F
@@ -1246,7 +1245,7 @@ UpdateFilesClick:
1246
1245
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1247
1246
! Update a single file
1248
1247
UpdateOneFile:
1249
- put FirmwareDirectory cat FileName into Path
1248
+ put FirmwareDirectory cat `/` cat FileName into Path
1250
1249
if file Path exists begin end
1251
1250
else
1252
1251
begin
@@ -1276,7 +1275,7 @@ SendFileToDevice:
1276
1275
put the length of Content into FileSize
1277
1276
put `Update device file ` cat FileName cat ` (size=` cat FileSize cat ` chars)` into StatusMessage
1278
1277
gosub to Working
1279
- wait 2
1278
+ wait 1
1280
1279
put 0 into Sequence
1281
1280
put 0 into Start
1282
1281
put 0 into Total
@@ -1401,7 +1400,7 @@ RelayOffClick:
1401
1400
begin
1402
1401
put `No response from ` cat Name into StatusMessage
1403
1402
gosub to Error
1404
- put 0 into Uptime
1403
+ put `0` into Uptime
1405
1404
end
1406
1405
begin
1407
1406
put from 3 of Response into Uptime
@@ -1421,7 +1420,7 @@ RelayOnClick:
1421
1420
begin
1422
1421
put `No response from ` cat Name into StatusMessage
1423
1422
gosub to Error
1424
- put 0 into Uptime
1423
+ put `0` into Uptime
1425
1424
end
1426
1425
else
1427
1426
begin
@@ -1489,10 +1488,11 @@ SendMessageToDevice:
1489
1488
put empty into Response
1490
1489
return
1491
1490
end
1491
+ ! log URL cat ` - ` cat Response
1492
1492
return
1493
1493
1494
1494
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1495
- ! Get data from a device
1495
+ ! Get information about a device
1496
1496
GetDeviceData:
1497
1497
put property `name` of Device into Name
1498
1498
put property `ssid` of Device into SSID
0 commit comments