freshworkstudio / gps-tracking-nodejs

Let you work with some GPS trackers that connects through tcp.
MIT License
260 stars 159 forks source link

ignition on or off #33

Closed saulo1212 closed 3 years ago

saulo1212 commented 3 years ago

hello, I'm working with the gt06, how do I extract the ACC from the location package, I was wondering if the equipment is with an ignition on or off

<Buffer 78 78 1f 12 15 04 12 0d 0e 02 c7 01 d9 65 6d 05 07 03 dc 00 18 00 02 d4 02 51 02 00 ad 9a 00 0b c1 c2 0d 0a> { date: '1504120d0e02', set_count: 'c7', latitude_raw: '01d9656d', longitude_raw: '050703dc', latitude: 17.235829444444445, longitude: 46.85878888888889, speed: 0, orientation: '1800', lbs: '02d402510200ad9a' }

0862874040419751: Position received ( 17.235829444444445,46.85878888888889 )

ping