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

Dev zelenyy #5

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

Dev zelenyy #5

wants to merge 4 commits into from

Conversation

Ingvord
Copy link
Member

@Ingvord Ingvord commented Apr 20, 2022

Attempt to merge in dev zelenyy branch

Mikhal Zelenyy added 4 commits March 12, 2022 13:54
axsis.magix.py Show resolved Hide resolved
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'),
Copy link
Member Author

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

Copy link

Choose a reason for hiding this comment

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

What criteria of filtration?

Copy link
Member Author

@Ingvord Ingvord Jun 7, 2022

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?

axsis.magix.py Show resolved Hide resolved
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.

2 participants