summaryrefslogtreecommitdiff
path: root/package/comgt/files/hsodata.comgt
blob: 92d2d8e3a5aecfbc596c44adee570a4451fcde08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
opengt
 set com 115200n81
 set senddelay 0.02
 waitquiet 1 0.2
 flash 0.1

 let c=1
:start
 send "AT_OWANDATA=1^m"
 waitfor 2 "ERROR"
 if % = 0 goto repeat
 send "AT_OWANDATA=1^m"
 get 2 "^m" $s
 get 2 "^m" $s
 print $s
 print "\n"
 exit 0

:repeat
 sleep 3
 inc c
 if c > 15 goto error
 goto start

:error
 exit 1