mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 654|reply: 1
打印 prevThread nextThread

设置GPS定位的时间间隔

[copyURL]

14

主题

25

帖子

114

积分

member

Rank: 2

积分
114
jumpTo
owner
poston 2020-6-16 18:33 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
如何 设置GPS定位的时间间隔 就是 位置的刷新时间?这样设置 一直在获取位置。需要自定义方法,规定N秒后停止?谢谢gps.swOpen({
    repeat: 10,
    /*interval: 2000,*/
    interval: 20000000,
    callback: OnGetGPS
});
reply

使用道具 report

6

主题

407

帖子

1614

积分

vipMem

Rank: 6Rank: 6

积分
1614
sofa
poston 2020-9-11 17:38 | authorOnly
gps.swOpen打开之后,如果设备上报GPS数据,就会通知过来。
如果需要定时更新界面,需要UI来做,有GPS数据过来就记录下来,或者保存最后一个值,时间到了就从本地取更新到界面上。
相当于加了个定时器。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-4-25 20:39 , Processed in 0.061525 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList