mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 700|reply: 3

关于GPS返回值问题

[copyURL]

12

主题

27

帖子

98

积分

member

Rank: 2

积分
98
poston 2020-6-29 14:33 | 显示全部楼层 |阅读模式
   gps.swOpen({
                repeat: 1,
                interval: 2000,
                tag:gps,
                callback: OnGetGPS,
            });

function OnGetGPS(options, response) {}

这个response 打印了一串:4109,0,0,FE04553E-B6D8-4CCB-AAAB-FF7F6B64E006,1.0.1,BA433D57-0FB0-47b9-A944-FD219E5EEAEA,,8,49,PU_22034654,65536
里面倒数第二个是我们的设备ID(PU_22034654),怎么拿出来呢。我看respone只有两个属性emms 和request

reply

使用道具 report

1

主题

383

帖子

1466

积分

vipMem

Rank: 6Rank: 6

积分
1466
poston 2020-6-29 14:46 | 显示全部楼层
您可以看下我们的demo,http://61.191.27.18:8081/demo/gps.html。一共就四个函数
reply agree Against

使用道具 report

12

主题

27

帖子

98

积分

member

Rank: 2

积分
98
 Owner| poston 2020-6-29 14:59 | 显示全部楼层
bai_315 post on2020-6-29 14:46
您可以看下我们的demo,http://61.191.27.18:8081/demo/gps.html。一共就四个函数

还是真不知道,你下面获取了,很多参数,也没有啥文档,获取设备ID的
reply agree Against

使用道具 report

6

主题

400

帖子

1590

积分

vipMem

Rank: 6Rank: 6

积分
1590
poston 2020-6-29 15:17 | 显示全部楼层
fyq post on2020-6-29 14:59
还是真不知道,你下面获取了,很多参数,也没有啥文档,获取设备ID的

你好,确实response有很多参数,但是其中文档没描述的,请不要关注。
文档中这个接口描述有些问题,实际上response.gps 在这个接口中就是返回的GPS数据,其类型是 http://61.191.27.18:8081/doc/class/BVCU_PUCFG_GPSData.html
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-3-28 17:18 , Processed in 0.064455 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList