Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for location event sent from GPS tracker board GT02_MT6261D_V2.3 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chrispahm
Copy link

@@ -86,6 +89,9 @@ function selectEvent(data) {
case 0x12:
eventStr = 'location';
break;
case 34:
Copy link
Owner

@vondraussen vondraussen Feb 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to have a hex case :)
and It could be added below the case 0x12 since it is the same code.

case 0x12:
case 0x22:
   Object.assign.....

Copy link
Owner

@vondraussen vondraussen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, for the late reply. I should activate notifications...
And thanks for your contribution!

@@ -30,6 +30,9 @@ Gt06.prototype.parse = function (data) {
case 0x12: // location message
Object.assign(parsed, parseLocation(msg));
break;
case 34: // location message
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same same
merge with case for 0x12

@saulo1212
Copy link

hello, I'm not getting the status of the inginition, it always returns false. are you with this detail too?

@vondraussen
Copy link
Owner

hello, I'm not getting the status of the inginition, it always returns false. are you with this detail too?

I think you need to ask @chrispahm since I don't have a GT02_MT6261D_V2.3.

@chrispahm
Copy link
Author

Hey @saulo1212,
Sorry, I never had a use case for the "ignition status", so it certainly wouldn't surprise me if it's not working at all.
All I ever needed was receiving GPS coordinates, which works fine to date 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants