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

fix(plc4go/codegen): DefaultPlcWriteRequest interface conversion, cau… #335

Merged
merged 1 commit into from
Mar 22, 2022
Merged

fix(plc4go/codegen): DefaultPlcWriteRequest interface conversion, cau… #335

merged 1 commit into from
Mar 22, 2022

Conversation

hongjinlin
Copy link
Contributor

…se it not implement

  1. Description: When I try to write more than one data, the program panic.

... writeRequest, err := connection.WriteRequestBuilder().AddQuery("field1", "400005:UINT", uint16(9900)).AddQuery("field2", "400006:UINT", uint16(9988)).Build() ...

  1. Error message:

(1) panic: interface conversion: model.DefaultPlcWriteRequest is not interceptors.WriterExposer: missing method GetWriter
(2)panic: interface conversion: model.DefaultPlcWriteRequest is not interceptors.WriteRequestInterceptorExposer: missing method GetWriteRequestInterceptor

  1. Result: So I implemented them, and multiple writes to the data were successful!

@sruehl sruehl merged commit cc013c6 into apache:develop Mar 22, 2022
@sruehl
Copy link
Contributor

sruehl commented Mar 22, 2022

thanks for the PR

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.

None yet

2 participants