-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tracking multiple devices #3
Comments
If you want to listen for a different device, you have to start a new
server listening another port.
On Fri, Apr 14, 2017, 15:48 invaderb ***@***.***> wrote:
Greetings,
I'm starting to get the hang of the library and created a custom adapter
for my GPS device and have it sending data however is it possible to track
multiple different devices at the same time?
Lets say I have my GPS device and the TK103 in the index.js under the var
options = {
'debug' : false,
'port' : 8090,
'device_adapter' : "TK103",
'device_adapter' : "AB100"
}
However what ever is set as the last device_adapter is what the app is
looking for.
any advice would be greatly appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDWhu-CD0QAOshltFp9WjhRgCjZIkICks5rv79ggaJpZM4M9_n8>
.
--
GONZALO DE-SPIRITO ZÚÑIGA | Web Development
*FRESHWORK STUDIO CHILE*
Móvil: +56 9 8815 3776 | [email protected]
<[email protected]>
Cuida el medio ambiente. No imprimas este e-mail a menos que sea necesario.
|
So would it be possible to display multiple devices on a map with this library? |
Yes, you can, but you need to different servers to listen for different
types of devices. In one nodejs app you can have those two servers running
simultaneously
On Fri, Apr 14, 2017, 18:15 invaderb ***@***.***> wrote:
So would it be possible to display multiple devices on a map with this
library?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDWhjlHodEukFnmbIzOQ5XCdeaNk591ks5rv-HtgaJpZM4M9_n8>
.
--
GONZALO DE-SPIRITO ZÚÑIGA | Web Development
*FRESHWORK STUDIO CHILE*
Móvil: +56 9 8815 3776 | [email protected]
<[email protected]>
Cuida el medio ambiente. No imprimas este e-mail a menos que sea necesario.
|
Hmm ok I think I understand So there are two files that make up the node server in the index.js var options1 = {}; var server1 = gps.server1(options1 ......... ; would I also need to duplicate the main.js file as well and require is with the module export? Another question what do the functions export to in the functions.js file? |
Upon further searching socket io should be able to do asynchronous IO on one port but still not sure how to handle the multiple devices. |
Greetings,
I'm starting to get the hang of the library and created a custom adapter for my GPS device and have it sending data however is it possible to track multiple different devices at the same time?
Lets say I have my GPS device and the TK103 in the index.js under the var options = {
'debug' : false,
'port' : 8090,
'device_adapter' : "TK103",
'device_adapter' : "AB100"
}
However what ever is set as the last device_adapter is what the app is looking for.
any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: