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

feat(eip): update eip driver to include an option for connected messaging. #405

Draft
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

hutcheb
Copy link
Contributor

@hutcheb hutcheb commented Jun 26, 2022

Update the EIP driver to include options for Little/Big endian and using connected messaging.

@hutcheb
Copy link
Contributor Author

hutcheb commented Jun 26, 2022

@AndyGrebe It'd be great if you could take a look at this PR.

A new driver has been added for logix controllers. The connection string format will be something like
logix://192.168.1.1

This should use Little Endian and the Field format now no longer requires a leading %.

routingAddress.add(new LogicalSegment(new InstanceID((byte) 0, (short) 1, this.configuration.getByteOrder()), this.configuration.getByteOrder()));

for (PathSegment segment : this.routingAddress) {
this.connectionPathSize += segment.getLengthInBytes();

Check failure

Code scanning / CodeQL

Implicit narrowing conversion in compound assignment

Implicit cast of source type int to narrower destination type short.
this.connectionPathSize += segment.getLengthInBytes();
}
if ((this.connectionPathSize % 2) != 0) {
this.connectionPathSize += 1;

Check failure

Code scanning / CodeQL

Implicit narrowing conversion in compound assignment

Implicit cast of source type int to narrower destination type short.
# Conflicts:
#	plc4j/drivers/eip/src/main/java/org/apache/plc4x/java/eip/readwrite/protocol/EipProtocolLogic.java
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

1 participant