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

Feature request: UDP Logging #35

Closed
Gummientchen opened this issue May 3, 2022 · 4 comments
Closed

Feature request: UDP Logging #35

Gummientchen opened this issue May 3, 2022 · 4 comments

Comments

@Gummientchen
Copy link

Hi,

I was wondering if it would be possible to integrate an UDP logging functionality so measurements could be sent to other programs easier. It would need a configurable IP address and port to which the data gets sent to.

I'm sadly not proficient enough in C# to implement this myself, but I could help with testing the functionality.

@jlennox
Copy link
Owner

jlennox commented May 3, 2022

Should be easy enough. You're thinking it goes outbound and doesn't listen for connections?

What do you imagine the packet looks like?

I imagine it's intended for localhost only so udp unreliability isn't a factor?

@Gummientchen
Copy link
Author

Yes, it would be outbound only. Package could be the same as the output of the CSV logger => 03.05.2022 18:38:25,88,NotSupported,,"661"

Reliability of every packet arriving isn't a problem for my intended usage, as it shows the data live.

@jlennox
Copy link
Owner

jlennox commented May 3, 2022

This worked for me locally testing with netcat -ulp 2115 as a listener. The setting looks like <UDP>127.0.0.1:2115</UDP>

Must use 127.0.0.1, localhost wont work. Output is \n delineated.

Mind giving it a test and providing feedback?

heartrate-udp-test1.zip

@Gummientchen
Copy link
Author

That was amazingly fast. Thank you very much. It works like I expected it to work.

jlennox added a commit that referenced this issue May 4, 2022
jlennox added a commit that referenced this issue May 4, 2022
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