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

Connect to device with IP address and port #49

Open
JackCaster opened this issue Dec 22, 2023 · 2 comments
Open

Connect to device with IP address and port #49

JackCaster opened this issue Dec 22, 2023 · 2 comments

Comments

@JackCaster
Copy link

I need to connect to the device using the IP:port with the async API. I can do so with the simple API

import pupil_labs.realtime_api.simple as pls
device = pls.Device(address=ip, port=port)

is there an equivalent in the async API? Unfortunately, autodiscovery is disabled in my laptop.

@JackCaster
Copy link
Author

I think I found a workaround:

import pupil_labs.realtime_api.models as plm

ip = "xxx.xxx.xxx.xxx"
port = 8080

device = plm.DiscoveredDeviceInfo(name=None, server=None, port=port, addresses=[ip])

Then I can keep using the asyncio API

@suvodip1212
Copy link

Hi Jack,

I am considering getting a pupil neon device (I was working with the invisible pupil). Is the python-realtime API working well with the neon? I remember facing issues with the RTP.

Also, have you tried out the pupil size detection on the neon glasses using Python?

Regards,
Suvodip

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

No branches or pull requests

2 participants