-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: master
Are you sure you want to change the base?
Conversation
@@ -86,6 +89,9 @@ function selectEvent(data) { | |||
case 0x12: | |||
eventStr = 'location'; | |||
break; | |||
case 34: |
There was a problem hiding this comment.
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.....
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
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. |
Hey @saulo1212, |
In order to support e.g the following tracker
https://www.amazon.de/Likorlove-Monitoring-Ortungsger%C3%A4t-Kostenlos-Smartphone-Schwarz-ohne-Batterie/dp/B07KR98Q4V