-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dev zelenyy #5
base: master
Are you sure you want to change the base?
Dev zelenyy #5
Conversation
Add enum for MODE.
Stop, Move, Reboot, References
loop = asyncio.get_event_loop() | ||
client = MagixHttpClient(kMagixHost) | ||
observer = AxsisObserver(client, loop) | ||
observer = AxsisObserver(client, loop, args.host, args.port) | ||
client.observe(channel=kChannel).pipe( | ||
ops.filter(lambda event: json.loads(event.data).get('target') == 'axsis'), |
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 believe we will need extra filtering here, namely by IP and port
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.
What criteria of filtration?
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.
By IP and port, these two identify the upstream hardware. Basically we first check that the target, then I would parse the message, because at this point we already know it is addressed to us, and finally filter by IP and port from payload. Otherwise the message may be sent to a wrong hardware... am I right?
Attempt to merge in dev zelenyy branch