Skip to content

Commit

Permalink
fix(plc4j/spi): Added the missing "getObject" method to the PlcStruct
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Aug 31, 2022
1 parent 865d5ef commit 386189f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public class PlcStruct extends PlcValueAdapter {

private final Map<String, PlcValue> map;

@Override
public Object getObject() {
return map;
}

@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public PlcStruct(@JsonProperty("map") Map<String, PlcValue> map) {
this.map = Collections.unmodifiableMap(map);
Expand Down

0 comments on commit 386189f

Please sign in to comment.