-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
# feat: Add a new protocol, zr, listening on port 5257. #5309
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
base: master
Are you sure you want to change the base?
Conversation
It doesn't look like all of the comments from last PR were addressed. |
Also maybe it would be easier to split it into several PRs. For example encoder can be separate from the main decoding. |
Hi, I think this is difficult to split because when the server receives a message from the device, it must reply with different response messages, which requires the encoder to encode the corresponding response messages. Therefore, the encoder code cannot be split. |
And where exactly are you using encoder for responses? I don't see it. |
In ZrProtocolDecoder.java, at lines 89, 92, 96,and 99. |
Could you please re-label the suggestions for code modifications? I'm not sure what needs to be changed, and I would greatly appreciate it. |
It doesn't use encoder. It's the other way around. Did you write this code yourself?
Unfortunately I don't have time. Please check the original PR. |
Yes, I wrote the code.When you mentioned encoder, are you referring to ZrProtocolEncoder.java?I just deleted that part of the file. |
Thanks. Let me know once all the other issues are resolved, so we can review it again. |
Trak-iot.protocol.TC04-9.20220817.docx
Support device - "TC-01、TC-02、TC-03、TC-04" | Protocol - zr Protocol | Port - 5257