You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/03/02 11:47:02 UTC
[plc4x] branch develop updated: feat(plc4go/c-bus): added c-bus protocol
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 1fb2c8b feat(plc4go/c-bus): added c-bus protocol
1fb2c8b is described below
commit 1fb2c8b5a9fd787016e2637382f40a765fd46d70
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Mar 2 12:46:52 2022 +0100
feat(plc4go/c-bus): added c-bus protocol
---
.../resources/templates/go/model-template.go.ftlh | 10 +-
.../model/CIPEncapsulationConnectionRequest.go | 2 +
.../model/CIPEncapsulationConnectionResponse.go | 2 +
.../readwrite/model/CIPEncapsulationPacket.go | 2 +
.../readwrite/model/CIPEncapsulationReadRequest.go | 2 +
.../model/CIPEncapsulationReadResponse.go | 2 +
.../readwrite/model/DF1CommandRequestMessage.go | 2 +
...mandResponseMessageProtectedTypedLogicalRead.go | 2 +
.../abeth/readwrite/model/DF1RequestCommand.go | 2 +
.../abeth/readwrite/model/DF1RequestMessage.go | 2 +
.../model/DF1RequestProtectedTypedLogicalRead.go | 2 +
.../abeth/readwrite/model/DF1ResponseMessage.go | 2 +
.../model/AdsAddDeviceNotificationRequest.go | 2 +
.../model/AdsAddDeviceNotificationResponse.go | 2 +
.../internal/plc4go/ads/readwrite/model/AdsData.go | 2 +
.../model/AdsDeleteDeviceNotificationRequest.go | 2 +
.../model/AdsDeleteDeviceNotificationResponse.go | 2 +
.../model/AdsDeviceNotificationRequest.go | 2 +
.../model/AdsDeviceNotificationResponse.go | 2 +
.../ads/readwrite/model/AdsInvalidRequest.go | 2 +
.../ads/readwrite/model/AdsInvalidResponse.go | 2 +
.../ads/readwrite/model/AdsMultiRequestItem.go | 2 +
.../ads/readwrite/model/AdsMultiRequestItemRead.go | 2 +
.../model/AdsMultiRequestItemReadWrite.go | 2 +
.../readwrite/model/AdsMultiRequestItemWrite.go | 2 +
.../ads/readwrite/model/AdsNotificationSample.go | 2 +
.../readwrite/model/AdsReadDeviceInfoRequest.go | 2 +
.../readwrite/model/AdsReadDeviceInfoResponse.go | 2 +
.../plc4go/ads/readwrite/model/AdsReadRequest.go | 2 +
.../plc4go/ads/readwrite/model/AdsReadResponse.go | 2 +
.../ads/readwrite/model/AdsReadStateRequest.go | 2 +
.../ads/readwrite/model/AdsReadStateResponse.go | 2 +
.../ads/readwrite/model/AdsReadWriteRequest.go | 2 +
.../ads/readwrite/model/AdsReadWriteResponse.go | 2 +
.../plc4go/ads/readwrite/model/AdsStampHeader.go | 2 +
.../ads/readwrite/model/AdsWriteControlRequest.go | 2 +
.../ads/readwrite/model/AdsWriteControlResponse.go | 2 +
.../plc4go/ads/readwrite/model/AdsWriteRequest.go | 2 +
.../plc4go/ads/readwrite/model/AdsWriteResponse.go | 2 +
.../plc4go/ads/readwrite/model/AmsNetId.go | 2 +
.../plc4go/ads/readwrite/model/AmsPacket.go | 2 +
.../readwrite/model/AmsSerialAcknowledgeFrame.go | 2 +
.../plc4go/ads/readwrite/model/AmsSerialFrame.go | 2 +
.../ads/readwrite/model/AmsSerialResetFrame.go | 2 +
.../plc4go/ads/readwrite/model/AmsTCPPacket.go | 2 +
.../internal/plc4go/ads/readwrite/model/State.go | 2 +
.../plc4go/bacnetip/readwrite/model/APDU.go | 2 +
.../plc4go/bacnetip/readwrite/model/APDUAbort.go | 2 +
.../bacnetip/readwrite/model/APDUComplexAck.go | 4 +-
.../readwrite/model/APDUConfirmedRequest.go | 2 +
.../plc4go/bacnetip/readwrite/model/APDUError.go | 2 +
.../plc4go/bacnetip/readwrite/model/APDUReject.go | 2 +
.../bacnetip/readwrite/model/APDUSegmentAck.go | 2 +
.../bacnetip/readwrite/model/APDUSimpleAck.go | 2 +
.../readwrite/model/APDUUnconfirmedRequest.go | 2 +
.../plc4go/bacnetip/readwrite/model/APDUUnknown.go | 2 +
.../bacnetip/readwrite/model/BACnetAction.go | 4 +-
.../readwrite/model/BACnetActionCommand.go | 12 +-
.../bacnetip/readwrite/model/BACnetAddress.go | 2 +
.../readwrite/model/BACnetApplicationTag.go | 2 +
.../model/BACnetApplicationTagBitString.go | 2 +
.../readwrite/model/BACnetApplicationTagBoolean.go | 2 +
.../model/BACnetApplicationTagCharacterString.go | 2 +
.../readwrite/model/BACnetApplicationTagDate.go | 2 +
.../readwrite/model/BACnetApplicationTagDouble.go | 2 +
.../model/BACnetApplicationTagEnumerated.go | 2 +
.../readwrite/model/BACnetApplicationTagNull.go | 2 +
.../model/BACnetApplicationTagObjectIdentifier.go | 2 +
.../model/BACnetApplicationTagOctetString.go | 2 +
.../readwrite/model/BACnetApplicationTagReal.go | 2 +
.../model/BACnetApplicationTagSignedInteger.go | 2 +
.../readwrite/model/BACnetApplicationTagTime.go | 2 +
.../model/BACnetApplicationTagUnsignedInteger.go | 2 +
.../bacnetip/readwrite/model/BACnetBinaryPV.go | 4 +-
.../bacnetip/readwrite/model/BACnetClosingTag.go | 2 +
.../readwrite/model/BACnetConfirmedServiceACK.go | 2 +
.../BACnetConfirmedServiceACKAtomicReadFile.go | 2 +
.../BACnetConfirmedServiceACKAtomicWriteFile.go | 2 +
...tConfirmedServiceACKConfirmedPrivateTransfer.go | 2 +
.../model/BACnetConfirmedServiceACKCreateObject.go | 2 +
.../BACnetConfirmedServiceACKGetAlarmSummary.go | 2 +
...ACnetConfirmedServiceACKGetEnrollmentSummary.go | 2 +
...BACnetConfirmedServiceACKGetEventInformation.go | 2 +
.../model/BACnetConfirmedServiceACKReadProperty.go | 2 +
...ACnetConfirmedServiceACKReadPropertyMultiple.go | 2 +
.../model/BACnetConfirmedServiceACKReadRange.go | 2 +
...BACnetConfirmedServiceACKRemovedAuthenticate.go | 2 +
...rmedServiceACKRemovedReadPropertyConditional.go | 2 +
.../model/BACnetConfirmedServiceACKVTData.go | 2 +
.../model/BACnetConfirmedServiceACKVTOpen.go | 2 +
.../model/BACnetConfirmedServiceAddListElement.go | 2 +
.../model/BACnetConfirmedServiceRequest.go | 2 +
...ACnetConfirmedServiceRequestAcknowledgeAlarm.go | 2 +
.../BACnetConfirmedServiceRequestAddListElement.go | 2 +
.../BACnetConfirmedServiceRequestAtomicReadFile.go | 2 +
...tConfirmedServiceRequestAtomicReadFileRecord.go | 2 +
...tConfirmedServiceRequestAtomicReadFileStream.go | 2 +
...edServiceRequestAtomicReadFileStreamOrRecord.go | 4 +-
...BACnetConfirmedServiceRequestAtomicWriteFile.go | 6 +-
...firmedServiceRequestConfirmedCOVNotification.go | 2 +
...rviceRequestConfirmedCOVNotificationMultiple.go | 2 +
...rmedServiceRequestConfirmedEventNotification.go | 10 +-
...firmedServiceRequestConfirmedPrivateTransfer.go | 2 +
...tConfirmedServiceRequestConfirmedTextMessage.go | 2 +
...ACnetConfirmedServiceRequestConfirmedUnknown.go | 2 +
.../BACnetConfirmedServiceRequestCreateObject.go | 2 +
.../BACnetConfirmedServiceRequestDeleteObject.go | 2 +
...rmedServiceRequestDeviceCommunicationControl.go | 6 +-
...tConfirmedServiceRequestGetEnrollmentSummary.go | 2 +
...etConfirmedServiceRequestGetEventInformation.go | 2 +
...etConfirmedServiceRequestLifeSafetyOperation.go | 2 +
.../BACnetConfirmedServiceRequestReadProperty.go | 4 +-
...tConfirmedServiceRequestReadPropertyMultiple.go | 2 +
.../BACnetConfirmedServiceRequestReadRange.go | 2 +
...netConfirmedServiceRequestReinitializeDevice.go | 4 +-
...erviceRequestReinitializeDeviceEnableDisable.go | 4 +-
...CnetConfirmedServiceRequestRemoveListElement.go | 2 +
...etConfirmedServiceRequestRemovedAuthenticate.go | 2 +
...ServiceRequestRemovedReadPropertyConditional.go | 2 +
...CnetConfirmedServiceRequestRemovedRequestKey.go | 2 +
.../BACnetConfirmedServiceRequestSubscribeCOV.go | 2 +
...tConfirmedServiceRequestSubscribeCOVProperty.go | 2 +
...edServiceRequestSubscribeCOVPropertyMultiple.go | 2 +
.../model/BACnetConfirmedServiceRequestVTClose.go | 2 +
.../model/BACnetConfirmedServiceRequestVTData.go | 2 +
.../model/BACnetConfirmedServiceRequestVTOpen.go | 2 +
.../BACnetConfirmedServiceRequestWriteProperty.go | 6 +-
...ConfirmedServiceRequestWritePropertyMultiple.go | 2 +
.../readwrite/model/BACnetConstructedData.go | 2 +
.../model/BACnetConstructedDataCommand.go | 2 +
.../model/BACnetConstructedDataElement.go | 10 +-
.../model/BACnetConstructedDataEventTimestamps.go | 2 +
.../model/BACnetConstructedDataLifeSafetyZone.go | 2 +
.../model/BACnetConstructedDataUnspecified.go | 6 +-
.../bacnetip/readwrite/model/BACnetContextTag.go | 2 +
.../readwrite/model/BACnetContextTagBitString.go | 2 +
.../readwrite/model/BACnetContextTagBoolean.go | 2 +
.../model/BACnetContextTagCharacterString.go | 2 +
.../readwrite/model/BACnetContextTagDate.go | 2 +
.../readwrite/model/BACnetContextTagDeviceState.go | 2 +
.../readwrite/model/BACnetContextTagDouble.go | 2 +
.../readwrite/model/BACnetContextTagEmpty.go | 2 +
.../readwrite/model/BACnetContextTagEnumerated.go | 2 +
.../readwrite/model/BACnetContextTagEventState.go | 2 +
.../readwrite/model/BACnetContextTagEventType.go | 2 +
.../readwrite/model/BACnetContextTagNotifyType.go | 2 +
.../model/BACnetContextTagObjectIdentifier.go | 2 +
.../readwrite/model/BACnetContextTagOctetString.go | 2 +
.../model/BACnetContextTagPropertyIdentifier.go | 2 +
.../readwrite/model/BACnetContextTagReal.go | 2 +
.../model/BACnetContextTagSignedInteger.go | 2 +
.../readwrite/model/BACnetContextTagTime.go | 2 +
.../model/BACnetContextTagUnsignedInteger.go | 2 +
.../bacnetip/readwrite/model/BACnetDateTime.go | 2 +
.../model/BACnetDeviceObjectPropertyReference.go | 6 +-
.../plc4go/bacnetip/readwrite/model/BACnetError.go | 2 +
.../readwrite/model/BACnetErrorAcknowledgeAlarm.go | 2 +
.../readwrite/model/BACnetErrorAtomicReadFile.go | 2 +
.../readwrite/model/BACnetErrorAtomicWriteFile.go | 2 +
.../model/BACnetErrorConfirmedEventNotification.go | 2 +
.../model/BACnetErrorConfirmedPrivateTransfer.go | 2 +
.../readwrite/model/BACnetErrorCreateObject.go | 2 +
.../BACnetErrorDeviceCommunicationProtocol.go | 2 +
.../readwrite/model/BACnetErrorGetAlarmSummary.go | 2 +
.../model/BACnetErrorGetEnrollmentSummary.go | 2 +
.../model/BACnetErrorGetEventInformation.go | 2 +
.../readwrite/model/BACnetErrorPasswordFailure.go | 2 +
.../readwrite/model/BACnetErrorReadProperty.go | 2 +
.../model/BACnetErrorReadPropertyMultiple.go | 2 +
.../readwrite/model/BACnetErrorReadRange.go | 2 +
.../model/BACnetErrorRemovedAuthenticate.go | 2 +
.../BACnetErrorRemovedReadPropertyConditional.go | 2 +
.../bacnetip/readwrite/model/BACnetErrorUnknown.go | 2 +
.../bacnetip/readwrite/model/BACnetErrorVTData.go | 2 +
.../bacnetip/readwrite/model/BACnetErrorVTOpen.go | 2 +
.../readwrite/model/BACnetErrorWriteProperty.go | 2 +
.../model/BACnetNotificationParameters.go | 4 +-
.../BACnetNotificationParametersBufferReady.go | 2 +
...ACnetNotificationParametersChangeOfBitString.go | 2 +
.../BACnetNotificationParametersChangeOfState.go | 2 +
.../BACnetNotificationParametersChangeOfValue.go | 2 +
...tNotificationParametersChangeOfValueNewValue.go | 4 +-
...onParametersChangeOfValueNewValueChangedBits.go | 2 +
...nParametersChangeOfValueNewValueChangedValue.go | 2 +
...BACnetNotificationParametersComplexEventType.go | 2 +
.../model/BACnetNotificationParametersExtended.go | 2 +
...CnetNotificationParametersExtendedParameters.go | 30 +-
.../BACnetNotificationParametersFloatingLimit.go | 2 +
.../BACnetNotificationParametersOutOfRange.go | 2 +
.../BACnetNotificationParametersUnsignedRange.go | 2 +
.../bacnetip/readwrite/model/BACnetOpeningTag.go | 2 +
.../readwrite/model/BACnetPropertyReference.go | 4 +-
.../readwrite/model/BACnetPropertyStates.go | 4 +-
.../readwrite/model/BACnetPropertyStatesAction.go | 4 +-
.../model/BACnetPropertyStatesBinaryValue.go | 4 +-
.../readwrite/model/BACnetPropertyStatesBoolean.go | 4 +-
.../readwrite/model/BACnetPropertyValue.go | 8 +-
.../readwrite/model/BACnetPropertyValues.go | 2 +
.../model/BACnetReadAccessSpecification.go | 2 +
.../bacnetip/readwrite/model/BACnetSegmentation.go | 2 +
.../bacnetip/readwrite/model/BACnetServiceAck.go | 2 +
.../model/BACnetServiceAckAtomicReadFile.go | 2 +
.../model/BACnetServiceAckAtomicReadFileRecord.go | 2 +
.../model/BACnetServiceAckAtomicReadFileStream.go | 2 +
...BACnetServiceAckAtomicReadFileStreamOrRecord.go | 4 +-
.../model/BACnetServiceAckAtomicWriteFile.go | 2 +
.../BACnetServiceAckConfirmedPrivateTransfer.go | 2 +
.../model/BACnetServiceAckCreateObject.go | 2 +
.../model/BACnetServiceAckGetAlarmSummary.go | 2 +
.../model/BACnetServiceAckGetEnrollmentSummary.go | 2 +
.../model/BACnetServiceAckGetEventInformation.go | 2 +
.../model/BACnetServiceAckReadProperty.go | 6 +-
.../model/BACnetServiceAckReadPropertyMultiple.go | 2 +
.../readwrite/model/BACnetServiceAckReadRange.go | 2 +
.../model/BACnetServiceAckRemovedAuthenticate.go | 2 +
...CnetServiceAckRemovedReadPropertyConditional.go | 2 +
.../readwrite/model/BACnetServiceAckVTData.go | 2 +
.../readwrite/model/BACnetServiceAckVTOpen.go | 2 +
.../bacnetip/readwrite/model/BACnetStatusFlags.go | 2 +
.../bacnetip/readwrite/model/BACnetTagHeader.go | 2 +
.../readwrite/model/BACnetTagPayloadBitString.go | 2 +
.../readwrite/model/BACnetTagPayloadBoolean.go | 2 +
.../model/BACnetTagPayloadCharacterString.go | 2 +
.../readwrite/model/BACnetTagPayloadDate.go | 2 +
.../readwrite/model/BACnetTagPayloadDouble.go | 2 +
.../readwrite/model/BACnetTagPayloadEnumerated.go | 2 +
.../model/BACnetTagPayloadObjectIdentifier.go | 2 +
.../readwrite/model/BACnetTagPayloadOctetString.go | 2 +
.../readwrite/model/BACnetTagPayloadReal.go | 2 +
.../model/BACnetTagPayloadSignedInteger.go | 2 +
.../readwrite/model/BACnetTagPayloadTime.go | 2 +
.../model/BACnetTagPayloadUnsignedInteger.go | 2 +
.../bacnetip/readwrite/model/BACnetTimeStamp.go | 4 +-
.../readwrite/model/BACnetTimeStampDateTime.go | 2 +
.../readwrite/model/BACnetTimeStampSequence.go | 2 +
.../readwrite/model/BACnetTimeStampTime.go | 2 +
.../model/BACnetUnconfirmedServiceRequest.go | 2 +
.../model/BACnetUnconfirmedServiceRequestIAm.go | 2 +
.../model/BACnetUnconfirmedServiceRequestIHave.go | 2 +
...UnconfirmedServiceRequestTimeSynchronization.go | 2 +
...onfirmedServiceRequestUTCTimeSynchronization.go | 2 +
...rmedServiceRequestUnconfirmedCOVNotification.go | 2 +
...iceRequestUnconfirmedCOVNotificationMultiple.go | 2 +
...edServiceRequestUnconfirmedEventNotification.go | 2 +
...rmedServiceRequestUnconfirmedPrivateTransfer.go | 4 +-
...onfirmedServiceRequestUnconfirmedTextMessage.go | 2 +
...tUnconfirmedServiceRequestUnconfirmedUnknown.go | 2 +
.../model/BACnetUnconfirmedServiceRequestWhoHas.go | 10 +-
.../model/BACnetUnconfirmedServiceRequestWhoIs.go | 6 +-
.../BACnetUnconfirmedServiceRequestWriteGroup.go | 2 +
.../plc4go/bacnetip/readwrite/model/BVLC.go | 2 +
.../model/BVLCDeleteForeignDeviceTableEntry.go | 2 +
.../model/BVLCDistributeBroadcastToNetwork.go | 2 +
.../bacnetip/readwrite/model/BVLCForwardedNPDU.go | 2 +
.../readwrite/model/BVLCOriginalBroadcastNPDU.go | 2 +
.../readwrite/model/BVLCOriginalUnicastNPDU.go | 2 +
.../model/BVLCReadBroadcastDistributionTable.go | 2 +
.../model/BVLCReadBroadcastDistributionTableAck.go | 2 +
.../readwrite/model/BVLCReadForeignDeviceTable.go | 2 +
.../model/BVLCReadForeignDeviceTableAck.go | 2 +
.../readwrite/model/BVLCRegisterForeignDevice.go | 2 +
.../plc4go/bacnetip/readwrite/model/BVLCResult.go | 2 +
.../bacnetip/readwrite/model/BVLCSecureBVLL.go | 2 +
.../model/BVLCWriteBroadcastDistributionTable.go | 2 +
.../BVLCWriteBroadcastDistributionTableEntry.go | 2 +
.../plc4go/bacnetip/readwrite/model/NLM.go | 2 +
.../model/NLMDisconnectConnectionToNetwork.go | 2 +
.../model/NLMEstablishConnectionToNetwork.go | 2 +
.../readwrite/model/NLMIAmRouterToNetwork.go | 2 +
.../readwrite/model/NLMICouldBeRouterToNetwork.go | 2 +
.../readwrite/model/NLMInitalizeRoutingTable.go | 2 +
.../readwrite/model/NLMInitalizeRoutingTableAck.go | 2 +
.../model/NLMInitalizeRoutingTablePortMapping.go | 2 +
.../readwrite/model/NLMRejectRouterToNetwork.go | 2 +
.../readwrite/model/NLMRouterAvailableToNetwork.go | 2 +
.../readwrite/model/NLMRouterBusyToNetwork.go | 2 +
.../readwrite/model/NLMWhoIsRouterToNetwork.go | 2 +
.../plc4go/bacnetip/readwrite/model/NPDU.go | 6 +-
.../plc4go/bacnetip/readwrite/model/NPDUControl.go | 2 +
.../internal/plc4go/cbus/readwrite/ParserHelper.go | 119 ++
.../plc4go/cbus/readwrite/XmlParserHelper.go | 117 ++
.../Dummy.go => cbus/readwrite/model/Alpha.go} | 80 +-
.../readwrite/model/Application.go} | 80 +-
.../plc4go/cbus/readwrite/model/Attribute.go | 339 ++++
.../readwrite/model/BridgeAddress.go} | 85 +-
.../readwrite/model/BridgeCount.go} | 80 +-
.../plc4go/cbus/readwrite/model/CALCommandType.go | 157 ++
.../readwrite/model/CALCommandTypeContainer.go | 1696 ++++++++++++++++++++
.../plc4go/cbus/readwrite/model/CALData.go | 227 +++
.../readwrite/model/CALDataReplyAcknowledge.go | 204 +++
.../readwrite/model/CALDataReplyReply.go} | 123 +-
.../cbus/readwrite/model/CALDataReplyStatus.go | 244 +++
.../readwrite/model/CALDataReplyStatusExtended.go | 270 ++++
.../readwrite/model/CALDataRequestGetStatus.go | 204 +++
.../cbus/readwrite/model/CALDataRequestIdentify.go | 189 +++
.../cbus/readwrite/model/CALDataRequestRecall.go | 204 +++
.../readwrite/model/CALDataRequestReset.go} | 84 +-
.../plc4go/cbus/readwrite/model/CALReply.go | 254 +++
.../plc4go/cbus/readwrite/model/CALReplyLong.go | 444 +++++
.../readwrite/model/CALReplyReply.go} | 119 +-
.../readwrite/model/CALReplyShort.go} | 79 +-
.../plc4go/cbus/readwrite/model/CBusCommand.go | 226 +++
.../model/CBusCommandPointToMultiPoint.go} | 94 +-
.../readwrite/model/CBusCommandPointToPoint.go} | 94 +-
.../model/CBusCommandPointToPointToMultiPoint.go} | 120 +-
.../CBusCommandPointToPointToMultiPointNormal.go | 367 +++++
.../CBusCommandPointToPointToMultiPointStatus.go | 356 ++++
.../plc4go/cbus/readwrite/model/CBusHeader.go | 240 +++
.../plc4go/cbus/readwrite/model/CBusOptions.go | 311 ++++
.../model/CBusPointToMultiPointCommand.go | 181 +++
.../model/CBusPointToMultiPointCommandNormal.go | 391 +++++
.../model/CBusPointToMultiPointCommandStatus.go | 379 +++++
.../readwrite/model/CBusPointToPointCommand.go | 375 +++++
.../model/CBusPointToPointCommandDirect.go | 222 +++
.../model/CBusPointToPointCommandIndirect.go | 270 ++++
.../model/CBusPointToPointToMultipointCommand.go | 251 +++
.../Dummy.go => cbus/readwrite/model/Checksum.go} | 80 +-
.../readwrite/model/CommandHeader.go} | 60 +-
.../plc4go/cbus/readwrite/model/Confirmation.go | 221 +++
.../cbus/readwrite/model/ConfirmationReply.go | 182 +++
.../readwrite/model/ConfirmationSuccessful.go} | 78 +-
.../cbus/readwrite/model/DestinationAddressType.go | 129 ++
.../readwrite/model/ExclamationMark.go} | 70 +-
.../cbus/readwrite/model/ExclamationMarkReply.go | 182 +++
.../readwrite/model/ExtendedFormatStatusReply.go | 374 +++++
.../cbus/readwrite/model/ExtendedStatusHeader.go | 169 ++
.../plc4go/cbus/readwrite/model/GAVState.go | 137 ++
.../plc4go/cbus/readwrite/model/MonitoredSAL.go | 269 ++++
.../model/MonitoredSALLongFormSmartMode.go | 444 +++++
.../cbus/readwrite/model/MonitoredSALReply.go | 182 +++
.../model/MonitoredSALShortFormBasicMode.go | 338 ++++
.../readwrite/model/NetworkNumber.go} | 85 +-
.../model/NetworkProtocolControlInformation.go | 193 +++
.../plc4go/cbus/readwrite/model/NetworkRoute.go | 204 +++
.../readwrite/model/NotTransmittedCorruption.go} | 78 +-
.../readwrite/model/NotTransmittedSyncLoss.go} | 78 +-
.../model/NotTransmittedToManyReTransmissions.go} | 78 +-
.../readwrite/model/NotTransmittedTooLong.go} | 81 +-
.../plc4go/cbus/readwrite/model/ParameterChange.go | 199 +++
.../cbus/readwrite/model/ParameterChangeReply.go | 182 +++
.../plc4go/cbus/readwrite/model/PowerUp.go | 180 +++
.../readwrite/model/PowerUpReply.go} | 119 +-
.../plc4go/cbus/readwrite/model/PriorityClass.go | 137 ++
.../S7Address.go => cbus/readwrite/model/Reply.go} | 109 +-
.../plc4go/cbus/readwrite/model/ReplyNetwork.go | 239 +++
.../plc4go/cbus/readwrite/model/RouteType.go | 207 +++
.../plc4go/cbus/readwrite/model/SALCommandType.go | 137 ++
.../readwrite/model/SALCommandTypeContainer.go | 351 ++++
.../plc4go/cbus/readwrite/model/SALData.go | 219 +++
.../readwrite/model/SALDataOff.go} | 114 +-
.../readwrite/model/SALDataOn.go} | 114 +-
.../cbus/readwrite/model/SALDataRampToLevel.go | 204 +++
.../cbus/readwrite/model/SALDataTerminateRamp.go | 178 ++
.../readwrite/model/SerialInterfaceAddress.go} | 80 +-
.../readwrite/model/StandardFormatStatusReply.go | 339 ++++
.../plc4go/cbus/readwrite/model/StatusByte.go | 259 +++
.../plc4go/cbus/readwrite/model/StatusCoding.go | 137 ++
.../readwrite/model/StatusHeader.go} | 90 +-
.../readwrite/model/StatusRequest.go} | 91 +-
.../readwrite/model/StatusRequestBinaryState.go | 222 +++
.../cbus/readwrite/model/StatusRequestLevel.go | 253 +++
.../readwrite/model/UnitAddress.go} | 85 +-
.../plc4go/df1/readwrite/model/DF1Command.go | 2 +
.../plc4go/df1/readwrite/model/DF1Symbol.go | 2 +
.../df1/readwrite/model/DF1SymbolMessageFrame.go | 2 +
.../readwrite/model/DF1SymbolMessageFrameACK.go | 2 +
.../readwrite/model/DF1SymbolMessageFrameNAK.go | 2 +
.../readwrite/model/DF1UnprotectedReadRequest.go | 2 +
.../readwrite/model/DF1UnprotectedReadResponse.go | 2 +
.../plc4go/eip/readwrite/model/CipExchange.go | 2 +
.../plc4go/eip/readwrite/model/CipRRData.go | 2 +
.../plc4go/eip/readwrite/model/CipReadRequest.go | 2 +
.../plc4go/eip/readwrite/model/CipReadResponse.go | 2 +
.../plc4go/eip/readwrite/model/CipService.go | 2 +
.../eip/readwrite/model/CipUnconnectedRequest.go | 2 +
.../plc4go/eip/readwrite/model/CipWriteRequest.go | 2 +
.../plc4go/eip/readwrite/model/CipWriteResponse.go | 2 +
.../eip/readwrite/model/EipConnectionRequest.go | 2 +
.../eip/readwrite/model/EipDisconnectRequest.go | 2 +
.../plc4go/eip/readwrite/model/EipPacket.go | 2 +
.../eip/readwrite/model/MultipleServiceRequest.go | 2 +
.../eip/readwrite/model/MultipleServiceResponse.go | 2 +
.../plc4go/eip/readwrite/model/Services.go | 2 +
.../firmata/readwrite/model/FirmataCommand.go | 2 +
.../model/FirmataCommandProtocolVersion.go | 2 +
.../model/FirmataCommandSetDigitalPinValue.go | 2 +
.../readwrite/model/FirmataCommandSetPinMode.go | 2 +
.../firmata/readwrite/model/FirmataCommandSysex.go | 2 +
.../readwrite/model/FirmataCommandSystemReset.go | 2 +
.../firmata/readwrite/model/FirmataMessage.go | 2 +
.../readwrite/model/FirmataMessageAnalogIO.go | 2 +
.../readwrite/model/FirmataMessageCommand.go | 2 +
.../readwrite/model/FirmataMessageDigitalIO.go | 2 +
.../model/FirmataMessageSubscribeAnalogPinValue.go | 2 +
.../FirmataMessageSubscribeDigitalPinValue.go | 2 +
.../plc4go/firmata/readwrite/model/SysexCommand.go | 2 +
.../model/SysexCommandAnalogMappingQueryRequest.go | 2 +
.../SysexCommandAnalogMappingQueryResponse.go | 2 +
.../model/SysexCommandAnalogMappingResponse.go | 2 +
.../readwrite/model/SysexCommandCapabilityQuery.go | 2 +
.../model/SysexCommandCapabilityResponse.go | 2 +
.../readwrite/model/SysexCommandExtendedAnalog.go | 2 +
.../readwrite/model/SysexCommandExtendedId.go | 2 +
.../readwrite/model/SysexCommandPinStateQuery.go | 2 +
.../model/SysexCommandPinStateResponse.go | 2 +
.../model/SysexCommandReportFirmwareRequest.go | 2 +
.../model/SysexCommandReportFirmwareResponse.go | 2 +
.../model/SysexCommandSamplingInterval.go | 2 +
.../readwrite/model/SysexCommandStringData.go | 2 +
.../model/SysexCommandSysexNonRealtime.go | 2 +
.../readwrite/model/SysexCommandSysexRealtime.go | 2 +
.../plc4go/knxnetip/readwrite/model/Apdu.go | 2 +
.../plc4go/knxnetip/readwrite/model/ApduControl.go | 2 +
.../knxnetip/readwrite/model/ApduControlAck.go | 2 +
.../knxnetip/readwrite/model/ApduControlConnect.go | 2 +
.../readwrite/model/ApduControlContainer.go | 2 +
.../readwrite/model/ApduControlDisconnect.go | 2 +
.../knxnetip/readwrite/model/ApduControlNack.go | 2 +
.../plc4go/knxnetip/readwrite/model/ApduData.go | 2 +
.../knxnetip/readwrite/model/ApduDataAdcRead.go | 2 +
.../readwrite/model/ApduDataAdcResponse.go | 2 +
.../knxnetip/readwrite/model/ApduDataContainer.go | 2 +
.../model/ApduDataDeviceDescriptorRead.go | 2 +
.../model/ApduDataDeviceDescriptorResponse.go | 2 +
.../plc4go/knxnetip/readwrite/model/ApduDataExt.go | 2 +
.../readwrite/model/ApduDataExtAuthorizeRequest.go | 2 +
.../model/ApduDataExtAuthorizeResponse.go | 2 +
.../model/ApduDataExtDomainAddressRead.go | 2 +
.../model/ApduDataExtDomainAddressResponse.go | 2 +
.../model/ApduDataExtDomainAddressSelectiveRead.go | 2 +
.../ApduDataExtDomainAddressSerialNumberRead.go | 2 +
...ApduDataExtDomainAddressSerialNumberResponse.go | 2 +
.../ApduDataExtDomainAddressSerialNumberWrite.go | 2 +
.../model/ApduDataExtDomainAddressWrite.go | 2 +
.../model/ApduDataExtFileStreamInfoReport.go | 2 +
.../ApduDataExtGroupPropertyValueInfoReport.go | 2 +
.../model/ApduDataExtGroupPropertyValueRead.go | 2 +
.../model/ApduDataExtGroupPropertyValueResponse.go | 2 +
.../model/ApduDataExtGroupPropertyValueWrite.go | 2 +
...ApduDataExtIndividualAddressSerialNumberRead.go | 2 +
...DataExtIndividualAddressSerialNumberResponse.go | 2 +
...pduDataExtIndividualAddressSerialNumberWrite.go | 2 +
.../readwrite/model/ApduDataExtKeyResponse.go | 2 +
.../readwrite/model/ApduDataExtKeyWrite.go | 2 +
.../readwrite/model/ApduDataExtLinkRead.go | 2 +
.../readwrite/model/ApduDataExtLinkResponse.go | 2 +
.../readwrite/model/ApduDataExtLinkWrite.go | 2 +
.../readwrite/model/ApduDataExtMemoryBitWrite.go | 2 +
.../model/ApduDataExtNetworkParameterRead.go | 2 +
.../model/ApduDataExtNetworkParameterResponse.go | 2 +
.../model/ApduDataExtNetworkParameterWrite.go | 2 +
.../model/ApduDataExtOpenRoutingTableRequest.go | 2 +
.../model/ApduDataExtPropertyDescriptionRead.go | 2 +
.../ApduDataExtPropertyDescriptionResponse.go | 2 +
.../model/ApduDataExtPropertyValueRead.go | 2 +
.../model/ApduDataExtPropertyValueResponse.go | 2 +
.../model/ApduDataExtPropertyValueWrite.go | 2 +
.../model/ApduDataExtReadRouterMemoryRequest.go | 2 +
.../model/ApduDataExtReadRouterMemoryResponse.go | 2 +
.../model/ApduDataExtReadRouterStatusRequest.go | 2 +
.../model/ApduDataExtReadRouterStatusResponse.go | 2 +
.../model/ApduDataExtReadRoutingTableRequest.go | 2 +
.../model/ApduDataExtReadRoutingTableResponse.go | 2 +
.../model/ApduDataExtWriteRouterMemoryRequest.go | 2 +
.../model/ApduDataExtWriteRouterStatusRequest.go | 2 +
.../model/ApduDataExtWriteRoutingTableRequest.go | 2 +
.../readwrite/model/ApduDataGroupValueRead.go | 2 +
.../readwrite/model/ApduDataGroupValueResponse.go | 2 +
.../readwrite/model/ApduDataGroupValueWrite.go | 2 +
.../model/ApduDataIndividualAddressRead.go | 2 +
.../model/ApduDataIndividualAddressResponse.go | 2 +
.../model/ApduDataIndividualAddressWrite.go | 2 +
.../knxnetip/readwrite/model/ApduDataMemoryRead.go | 2 +
.../readwrite/model/ApduDataMemoryResponse.go | 2 +
.../readwrite/model/ApduDataMemoryWrite.go | 2 +
.../knxnetip/readwrite/model/ApduDataOther.go | 2 +
.../knxnetip/readwrite/model/ApduDataRestart.go | 2 +
.../readwrite/model/ApduDataUserMessage.go | 2 +
.../plc4go/knxnetip/readwrite/model/CEMI.go | 2 +
.../readwrite/model/CEMIAdditionalInformation.go | 2 +
.../CEMIAdditionalInformationBusmonitorInfo.go | 2 +
.../CEMIAdditionalInformationRelativeTimestamp.go | 2 +
.../knxnetip/readwrite/model/ChannelInformation.go | 2 +
.../knxnetip/readwrite/model/ComObjectTable.go | 2 +
.../model/ComObjectTableRealisationType1.go | 2 +
.../model/ComObjectTableRealisationType2.go | 2 +
.../model/ComObjectTableRealisationType6.go | 2 +
.../knxnetip/readwrite/model/ConnectionRequest.go | 2 +
.../model/ConnectionRequestInformation.go | 2 +
...ConnectionRequestInformationDeviceManagement.go | 2 +
...ConnectionRequestInformationTunnelConnection.go | 2 +
.../knxnetip/readwrite/model/ConnectionResponse.go | 6 +-
.../readwrite/model/ConnectionResponseDataBlock.go | 2 +
.../ConnectionResponseDataBlockDeviceManagement.go | 2 +
.../ConnectionResponseDataBlockTunnelConnection.go | 2 +
.../readwrite/model/ConnectionStateRequest.go | 2 +
.../readwrite/model/ConnectionStateResponse.go | 2 +
.../knxnetip/readwrite/model/DIBDeviceInfo.go | 2 +
.../knxnetip/readwrite/model/DIBSuppSvcFamilies.go | 2 +
.../knxnetip/readwrite/model/DescriptionRequest.go | 2 +
.../readwrite/model/DescriptionResponse.go | 2 +
.../readwrite/model/DeviceConfigurationAck.go | 2 +
.../model/DeviceConfigurationAckDataBlock.go | 2 +
.../readwrite/model/DeviceConfigurationRequest.go | 2 +
.../model/DeviceConfigurationRequestDataBlock.go | 2 +
.../readwrite/model/DeviceDescriptorType2.go | 2 +
.../knxnetip/readwrite/model/DeviceStatus.go | 2 +
.../knxnetip/readwrite/model/DisconnectRequest.go | 2 +
.../knxnetip/readwrite/model/DisconnectResponse.go | 2 +
.../model/GroupObjectDescriptorRealisationType1.go | 2 +
.../model/GroupObjectDescriptorRealisationType2.go | 2 +
.../model/GroupObjectDescriptorRealisationType6.go | 2 +
.../model/GroupObjectDescriptorRealisationType7.go | 2 +
.../model/GroupObjectDescriptorRealisationTypeB.go | 2 +
.../readwrite/model/HPAIControlEndpoint.go | 2 +
.../knxnetip/readwrite/model/HPAIDataEndpoint.go | 2 +
.../readwrite/model/HPAIDiscoveryEndpoint.go | 2 +
.../plc4go/knxnetip/readwrite/model/IPAddress.go | 2 +
.../plc4go/knxnetip/readwrite/model/KnxAddress.go | 2 +
.../knxnetip/readwrite/model/KnxGroupAddress.go | 2 +
.../readwrite/model/KnxGroupAddress2Level.go | 2 +
.../readwrite/model/KnxGroupAddress3Level.go | 2 +
.../readwrite/model/KnxGroupAddressFreeLevel.go | 2 +
.../knxnetip/readwrite/model/KnxNetIpCore.go | 2 +
.../readwrite/model/KnxNetIpDeviceManagement.go | 2 +
.../knxnetip/readwrite/model/KnxNetIpMessage.go | 2 +
.../knxnetip/readwrite/model/KnxNetIpRouting.go | 2 +
.../knxnetip/readwrite/model/KnxNetIpTunneling.go | 2 +
.../knxnetip/readwrite/model/KnxNetObjectServer.go | 2 +
.../model/KnxNetRemoteConfigurationAndDiagnosis.go | 2 +
.../readwrite/model/KnxNetRemoteLogging.go | 2 +
.../plc4go/knxnetip/readwrite/model/LBusmonInd.go | 2 +
.../plc4go/knxnetip/readwrite/model/LDataCon.go | 2 +
.../knxnetip/readwrite/model/LDataExtended.go | 2 +
.../plc4go/knxnetip/readwrite/model/LDataFrame.go | 2 +
.../knxnetip/readwrite/model/LDataFrameACK.go | 2 +
.../plc4go/knxnetip/readwrite/model/LDataInd.go | 2 +
.../plc4go/knxnetip/readwrite/model/LDataReq.go | 2 +
.../plc4go/knxnetip/readwrite/model/LPollData.go | 2 +
.../knxnetip/readwrite/model/LPollDataCon.go | 2 +
.../knxnetip/readwrite/model/LPollDataReq.go | 2 +
.../plc4go/knxnetip/readwrite/model/LRawCon.go | 2 +
.../plc4go/knxnetip/readwrite/model/LRawInd.go | 2 +
.../plc4go/knxnetip/readwrite/model/LRawReq.go | 2 +
.../plc4go/knxnetip/readwrite/model/MACAddress.go | 2 +
.../readwrite/model/MFuncPropCommandReq.go | 2 +
.../knxnetip/readwrite/model/MFuncPropCon.go | 2 +
.../readwrite/model/MFuncPropStateReadReq.go | 2 +
.../knxnetip/readwrite/model/MPropInfoInd.go | 2 +
.../knxnetip/readwrite/model/MPropReadCon.go | 2 +
.../knxnetip/readwrite/model/MPropReadReq.go | 2 +
.../knxnetip/readwrite/model/MPropWriteCon.go | 2 +
.../knxnetip/readwrite/model/MPropWriteReq.go | 2 +
.../plc4go/knxnetip/readwrite/model/MResetInd.go | 2 +
.../plc4go/knxnetip/readwrite/model/MResetReq.go | 2 +
.../model/ProjectInstallationIdentifier.go | 2 +
.../knxnetip/readwrite/model/RelativeTimestamp.go | 2 +
.../knxnetip/readwrite/model/RoutingIndication.go | 2 +
.../knxnetip/readwrite/model/SearchRequest.go | 2 +
.../knxnetip/readwrite/model/SearchResponse.go | 2 +
.../plc4go/knxnetip/readwrite/model/ServiceId.go | 2 +
.../knxnetip/readwrite/model/TDataConnectedInd.go | 2 +
.../knxnetip/readwrite/model/TDataConnectedReq.go | 2 +
.../knxnetip/readwrite/model/TDataIndividualInd.go | 2 +
.../knxnetip/readwrite/model/TDataIndividualReq.go | 2 +
.../knxnetip/readwrite/model/TunnelingRequest.go | 2 +
.../readwrite/model/TunnelingRequestDataBlock.go | 2 +
.../knxnetip/readwrite/model/TunnelingResponse.go | 2 +
.../readwrite/model/TunnelingResponseDataBlock.go | 2 +
.../knxnetip/readwrite/model/UnknownMessage.go | 2 +
.../modbus/readwrite/model/ModbusConstants.go | 2 +
.../model/ModbusDeviceInformationObject.go | 2 +
.../plc4go/modbus/readwrite/model/ModbusPDU.go | 2 +
.../readwrite/model/ModbusPDUDiagnosticRequest.go | 2 +
.../readwrite/model/ModbusPDUDiagnosticResponse.go | 2 +
.../modbus/readwrite/model/ModbusPDUError.go | 2 +
.../model/ModbusPDUGetComEventCounterRequest.go | 2 +
.../model/ModbusPDUGetComEventCounterResponse.go | 2 +
.../model/ModbusPDUGetComEventLogRequest.go | 2 +
.../model/ModbusPDUGetComEventLogResponse.go | 2 +
.../ModbusPDUMaskWriteHoldingRegisterRequest.go | 2 +
.../ModbusPDUMaskWriteHoldingRegisterResponse.go | 2 +
.../readwrite/model/ModbusPDUReadCoilsRequest.go | 2 +
.../readwrite/model/ModbusPDUReadCoilsResponse.go | 2 +
.../ModbusPDUReadDeviceIdentificationRequest.go | 2 +
.../ModbusPDUReadDeviceIdentificationResponse.go | 2 +
.../model/ModbusPDUReadDiscreteInputsRequest.go | 2 +
.../model/ModbusPDUReadDiscreteInputsResponse.go | 2 +
.../model/ModbusPDUReadExceptionStatusRequest.go | 2 +
.../model/ModbusPDUReadExceptionStatusResponse.go | 2 +
.../model/ModbusPDUReadFifoQueueRequest.go | 2 +
.../model/ModbusPDUReadFifoQueueResponse.go | 2 +
.../model/ModbusPDUReadFileRecordRequest.go | 2 +
.../model/ModbusPDUReadFileRecordRequestItem.go | 2 +
.../model/ModbusPDUReadFileRecordResponse.go | 2 +
.../model/ModbusPDUReadFileRecordResponseItem.go | 2 +
.../model/ModbusPDUReadHoldingRegistersRequest.go | 2 +
.../model/ModbusPDUReadHoldingRegistersResponse.go | 2 +
.../model/ModbusPDUReadInputRegistersRequest.go | 2 +
.../model/ModbusPDUReadInputRegistersResponse.go | 2 +
...sPDUReadWriteMultipleHoldingRegistersRequest.go | 2 +
...PDUReadWriteMultipleHoldingRegistersResponse.go | 2 +
.../model/ModbusPDUReportServerIdRequest.go | 2 +
.../model/ModbusPDUReportServerIdResponse.go | 2 +
.../model/ModbusPDUWriteFileRecordRequest.go | 2 +
.../model/ModbusPDUWriteFileRecordRequestItem.go | 2 +
.../model/ModbusPDUWriteFileRecordResponse.go | 2 +
.../model/ModbusPDUWriteFileRecordResponseItem.go | 2 +
.../model/ModbusPDUWriteMultipleCoilsRequest.go | 2 +
.../model/ModbusPDUWriteMultipleCoilsResponse.go | 2 +
...odbusPDUWriteMultipleHoldingRegistersRequest.go | 2 +
...dbusPDUWriteMultipleHoldingRegistersResponse.go | 2 +
.../model/ModbusPDUWriteSingleCoilRequest.go | 2 +
.../model/ModbusPDUWriteSingleCoilResponse.go | 2 +
.../model/ModbusPDUWriteSingleRegisterRequest.go | 2 +
.../model/ModbusPDUWriteSingleRegisterResponse.go | 2 +
.../modbus/readwrite/model/ModbusSerialADU.go | 2 +
.../plc4go/modbus/readwrite/model/ModbusTcpADU.go | 2 +
.../model/AlarmMessageAckObjectPushType.go | 2 +
.../s7/readwrite/model/AlarmMessageAckPushType.go | 2 +
.../readwrite/model/AlarmMessageAckResponseType.go | 2 +
.../s7/readwrite/model/AlarmMessageAckType.go | 2 +
.../readwrite/model/AlarmMessageObjectAckType.go | 2 +
.../readwrite/model/AlarmMessageObjectPushType.go | 2 +
.../readwrite/model/AlarmMessageObjectQueryType.go | 2 +
.../s7/readwrite/model/AlarmMessagePushType.go | 2 +
.../s7/readwrite/model/AlarmMessageQueryType.go | 2 +
.../s7/readwrite/model/AssociatedValueType.go | 2 +
.../plc4go/s7/readwrite/model/COTPPacket.go | 4 +-
.../readwrite/model/COTPPacketConnectionRequest.go | 2 +
.../model/COTPPacketConnectionResponse.go | 2 +
.../plc4go/s7/readwrite/model/COTPPacketData.go | 2 +
.../readwrite/model/COTPPacketDisconnectRequest.go | 2 +
.../model/COTPPacketDisconnectResponse.go | 2 +
.../s7/readwrite/model/COTPPacketTpduError.go | 2 +
.../plc4go/s7/readwrite/model/COTPParameter.go | 2 +
.../s7/readwrite/model/COTPParameterCalledTsap.go | 2 +
.../s7/readwrite/model/COTPParameterCallingTsap.go | 2 +
.../s7/readwrite/model/COTPParameterChecksum.go | 2 +
...COTPParameterDisconnectAdditionalInformation.go | 2 +
.../s7/readwrite/model/COTPParameterTpduSize.go | 2 +
.../plc4go/s7/readwrite/model/DateAndTime.go | 2 +
.../plc4go/s7/readwrite/model/S7Address.go | 2 +
.../plc4go/s7/readwrite/model/S7AddressAny.go | 2 +
.../s7/readwrite/model/S7DataAlarmMessage.go | 2 +
.../plc4go/s7/readwrite/model/S7Message.go | 6 +-
.../s7/readwrite/model/S7MessageObjectRequest.go | 2 +
.../s7/readwrite/model/S7MessageObjectResponse.go | 2 +
.../plc4go/s7/readwrite/model/S7MessageRequest.go | 2 +
.../plc4go/s7/readwrite/model/S7MessageResponse.go | 2 +
.../s7/readwrite/model/S7MessageResponseData.go | 2 +
.../plc4go/s7/readwrite/model/S7MessageUserData.go | 2 +
.../plc4go/s7/readwrite/model/S7Parameter.go | 2 +
.../readwrite/model/S7ParameterModeTransition.go | 2 +
.../readwrite/model/S7ParameterReadVarRequest.go | 2 +
.../readwrite/model/S7ParameterReadVarResponse.go | 2 +
.../model/S7ParameterSetupCommunication.go | 2 +
.../s7/readwrite/model/S7ParameterUserData.go | 2 +
.../s7/readwrite/model/S7ParameterUserDataItem.go | 2 +
.../model/S7ParameterUserDataItemCPUFunctions.go | 2 +
.../readwrite/model/S7ParameterWriteVarRequest.go | 2 +
.../readwrite/model/S7ParameterWriteVarResponse.go | 2 +
.../plc4go/s7/readwrite/model/S7Payload.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadAlarm8.go | 2 +
.../s7/readwrite/model/S7PayloadAlarmAckInd.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadAlarmS.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadAlarmSC.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadAlarmSQ.go | 2 +
.../readwrite/model/S7PayloadDiagnosticMessage.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadNotify.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadNotify8.go | 2 +
.../s7/readwrite/model/S7PayloadReadVarResponse.go | 2 +
.../plc4go/s7/readwrite/model/S7PayloadUserData.go | 2 +
.../s7/readwrite/model/S7PayloadUserDataItem.go | 2 +
.../S7PayloadUserDataItemCpuFunctionAlarmAck.go | 2 +
...yloadUserDataItemCpuFunctionAlarmAckResponse.go | 2 +
.../S7PayloadUserDataItemCpuFunctionAlarmQuery.go | 2 +
...oadUserDataItemCpuFunctionAlarmQueryResponse.go | 2 +
...ayloadUserDataItemCpuFunctionMsgSubscription.go | 2 +
...aItemCpuFunctionMsgSubscriptionAlarmResponse.go | 2 +
...erDataItemCpuFunctionMsgSubscriptionResponse.go | 2 +
...ataItemCpuFunctionMsgSubscriptionSysResponse.go | 2 +
...PayloadUserDataItemCpuFunctionReadSzlRequest.go | 2 +
...ayloadUserDataItemCpuFunctionReadSzlResponse.go | 2 +
.../s7/readwrite/model/S7PayloadWriteVarRequest.go | 2 +
.../readwrite/model/S7PayloadWriteVarResponse.go | 2 +
.../s7/readwrite/model/S7VarPayloadDataItem.go | 2 +
.../s7/readwrite/model/S7VarPayloadStatusItem.go | 2 +
.../readwrite/model/S7VarRequestParameterItem.go | 2 +
.../model/S7VarRequestParameterItemAddress.go | 2 +
plc4go/internal/plc4go/s7/readwrite/model/State.go | 2 +
.../plc4go/s7/readwrite/model/SzlDataTreeItem.go | 2 +
plc4go/internal/plc4go/s7/readwrite/model/SzlId.go | 2 +
.../plc4go/s7/readwrite/model/TPKTPacket.go | 2 +
.../plc4go/simulated/readwrite/model/Dummy.go | 2 +
plc4go/pom.xml | 29 +
696 files changed, 17301 insertions(+), 1336 deletions(-)
diff --git a/code-generation/language-go/src/main/resources/templates/go/model-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/model-template.go.ftlh
index 206c9f5..ed43fbe 100644
--- a/code-generation/language-go/src/main/resources/templates/go/model-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/model-template.go.ftlh
@@ -713,6 +713,8 @@ func ${type.name}Parse(readBuffer utils.ReadBuffer<#if hasParserArguments>, ${pa
if pullErr := readBuffer.PullContext("${type.name}"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
<#if helper.requiresStartPosAndCurPos()>
var startPos = readBuffer.GetPos()
var curPos uint16
@@ -1079,7 +1081,7 @@ func ${type.name}Parse(readBuffer utils.ReadBuffer<#if hasParserArguments>, ${pa
return nil, closeErr
}
<#else>
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("${optionalField.name}"); pullErr != nil {
return nil, pullErr
}
@@ -1342,13 +1344,13 @@ func ${type.name}Parse(readBuffer utils.ReadBuffer<#if hasParserArguments>, ${pa
// Peek Field (${peekField.name})
<#if peekField.type.isSimpleTypeReference()>
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
${peekField.name}, _err := ${helper.getReadBufferReadMethodCall(peekField.name, peekField.type.asSimpleTypeReference().orElseThrow(), peekField)}
if _err != nil {
return nil, errors.Wrap(_err, "Error parsing '${peekField.name}' field")<@emitImport import="github.com/pkg/errors" />
}
<#elseif helper.isEnumField(field)>
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("${peekField.name}"); pullErr != nil {
return nil, pullErr
}
@@ -1360,7 +1362,7 @@ func ${type.name}Parse(readBuffer utils.ReadBuffer<#if hasParserArguments>, ${pa
return nil, closeErr
}
<#else>
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("${peekField.name}"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
index 339d603..4a170c1 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
@@ -116,6 +116,8 @@ func CIPEncapsulationConnectionRequestParse(readBuffer utils.ReadBuffer) (*CIPEn
if pullErr := readBuffer.PullContext("CIPEncapsulationConnectionRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("CIPEncapsulationConnectionRequest"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
index 2ecf4bb..c1539b4 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
@@ -116,6 +116,8 @@ func CIPEncapsulationConnectionResponseParse(readBuffer utils.ReadBuffer) (*CIPE
if pullErr := readBuffer.PullContext("CIPEncapsulationConnectionResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("CIPEncapsulationConnectionResponse"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationPacket.go b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationPacket.go
index 9f777cb..059b7a0 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationPacket.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationPacket.go
@@ -157,6 +157,8 @@ func CIPEncapsulationPacketParse(readBuffer utils.ReadBuffer) (*CIPEncapsulation
if pullErr := readBuffer.PullContext("CIPEncapsulationPacket"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (commandType) (Used as input to a switch field)
commandType, _commandTypeErr := readBuffer.ReadUint16("commandType", 16)
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadRequest.go b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadRequest.go
index 7fd17bc..f316aa8 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadRequest.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadRequest.go
@@ -127,6 +127,8 @@ func CIPEncapsulationReadRequestParse(readBuffer utils.ReadBuffer) (*CIPEncapsul
if pullErr := readBuffer.PullContext("CIPEncapsulationReadRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (request)
if pullErr := readBuffer.PullContext("request"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadResponse.go b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadResponse.go
index 21d1a9b..3bfe901 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadResponse.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/CIPEncapsulationReadResponse.go
@@ -130,6 +130,8 @@ func CIPEncapsulationReadResponseParse(readBuffer utils.ReadBuffer, len uint16)
if pullErr := readBuffer.PullContext("CIPEncapsulationReadResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (response)
if pullErr := readBuffer.PullContext("response"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandRequestMessage.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandRequestMessage.go
index 86c0be3..9cfd479 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandRequestMessage.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandRequestMessage.go
@@ -127,6 +127,8 @@ func DF1CommandRequestMessageParse(readBuffer utils.ReadBuffer) (*DF1RequestMess
if pullErr := readBuffer.PullContext("DF1CommandRequestMessage"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (command)
if pullErr := readBuffer.PullContext("command"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
index 7dfbc71..c0cf18a 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
@@ -132,6 +132,8 @@ func DF1CommandResponseMessageProtectedTypedLogicalReadParse(readBuffer utils.Re
if pullErr := readBuffer.PullContext("DF1CommandResponseMessageProtectedTypedLogicalRead"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (data)
if pullErr := readBuffer.PullContext("data", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestCommand.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestCommand.go
index 32bba0a..ad9f9cb 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestCommand.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestCommand.go
@@ -109,6 +109,8 @@ func DF1RequestCommandParse(readBuffer utils.ReadBuffer) (*DF1RequestCommand, er
if pullErr := readBuffer.PullContext("DF1RequestCommand"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (functionCode) (Used as input to a switch field)
functionCode, _functionCodeErr := readBuffer.ReadUint8("functionCode", 8)
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestMessage.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestMessage.go
index 40fb436..3128792 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestMessage.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestMessage.go
@@ -152,6 +152,8 @@ func DF1RequestMessageParse(readBuffer utils.ReadBuffer) (*DF1RequestMessage, er
if pullErr := readBuffer.PullContext("DF1RequestMessage"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (destinationAddress)
_destinationAddress, _destinationAddressErr := readBuffer.ReadUint8("destinationAddress", 8)
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
index 754adf2..1265b3c 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
@@ -166,6 +166,8 @@ func DF1RequestProtectedTypedLogicalReadParse(readBuffer utils.ReadBuffer) (*DF1
if pullErr := readBuffer.PullContext("DF1RequestProtectedTypedLogicalRead"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (byteSize)
_byteSize, _byteSizeErr := readBuffer.ReadUint8("byteSize", 8)
diff --git a/plc4go/internal/plc4go/abeth/readwrite/model/DF1ResponseMessage.go b/plc4go/internal/plc4go/abeth/readwrite/model/DF1ResponseMessage.go
index 94a3c53..e153640 100644
--- a/plc4go/internal/plc4go/abeth/readwrite/model/DF1ResponseMessage.go
+++ b/plc4go/internal/plc4go/abeth/readwrite/model/DF1ResponseMessage.go
@@ -158,6 +158,8 @@ func DF1ResponseMessageParse(readBuffer utils.ReadBuffer, payloadLength uint16)
if pullErr := readBuffer.PullContext("DF1ResponseMessage"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
index 8ef2c19..a055bfa 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
@@ -192,6 +192,8 @@ func AdsAddDeviceNotificationRequestParse(readBuffer utils.ReadBuffer, commandId
if pullErr := readBuffer.PullContext("AdsAddDeviceNotificationRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (indexGroup)
_indexGroup, _indexGroupErr := readBuffer.ReadUint32("indexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
index 4dacd50..28b3d85 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
@@ -141,6 +141,8 @@ func AdsAddDeviceNotificationResponseParse(readBuffer utils.ReadBuffer, commandI
if pullErr := readBuffer.PullContext("AdsAddDeviceNotificationResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsData.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsData.go
index e758a68..79f81a6 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsData.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsData.go
@@ -109,6 +109,8 @@ func AdsDataParse(readBuffer utils.ReadBuffer, commandId CommandId, response boo
if pullErr := readBuffer.PullContext("AdsData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type)
var _parent *AdsData
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
index bb69b0a..b3dad83 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
@@ -130,6 +130,8 @@ func AdsDeleteDeviceNotificationRequestParse(readBuffer utils.ReadBuffer, comman
if pullErr := readBuffer.PullContext("AdsDeleteDeviceNotificationRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (notificationHandle)
_notificationHandle, _notificationHandleErr := readBuffer.ReadUint32("notificationHandle", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
index 68aeba6..1dfb61e 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
@@ -130,6 +130,8 @@ func AdsDeleteDeviceNotificationResponseParse(readBuffer utils.ReadBuffer, comma
if pullErr := readBuffer.PullContext("AdsDeleteDeviceNotificationResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationRequest.go
index d1f6d14..a914a1c 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationRequest.go
@@ -157,6 +157,8 @@ func AdsDeviceNotificationRequestParse(readBuffer utils.ReadBuffer, commandId Co
if pullErr := readBuffer.PullContext("AdsDeviceNotificationRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (length)
_length, _lengthErr := readBuffer.ReadUint32("length", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationResponse.go
index 73f12ad..4861158 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsDeviceNotificationResponse.go
@@ -119,6 +119,8 @@ func AdsDeviceNotificationResponseParse(readBuffer utils.ReadBuffer, commandId C
if pullErr := readBuffer.PullContext("AdsDeviceNotificationResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("AdsDeviceNotificationResponse"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidRequest.go
index b84970e..797900f 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidRequest.go
@@ -119,6 +119,8 @@ func AdsInvalidRequestParse(readBuffer utils.ReadBuffer, commandId CommandId, re
if pullErr := readBuffer.PullContext("AdsInvalidRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("AdsInvalidRequest"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidResponse.go
index d87dd3c..a8e1d00 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsInvalidResponse.go
@@ -119,6 +119,8 @@ func AdsInvalidResponseParse(readBuffer utils.ReadBuffer, commandId CommandId, r
if pullErr := readBuffer.PullContext("AdsInvalidResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("AdsInvalidResponse"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItem.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItem.go
index b9e24e5..20f8f2c 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItem.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItem.go
@@ -107,6 +107,8 @@ func AdsMultiRequestItemParse(readBuffer utils.ReadBuffer, indexGroup uint32) (*
if pullErr := readBuffer.PullContext("AdsMultiRequestItem"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type)
var _parent *AdsMultiRequestItem
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemRead.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemRead.go
index 917ec50..20c5731 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemRead.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemRead.go
@@ -144,6 +144,8 @@ func AdsMultiRequestItemReadParse(readBuffer utils.ReadBuffer, indexGroup uint32
if pullErr := readBuffer.PullContext("AdsMultiRequestItemRead"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (itemIndexGroup)
_itemIndexGroup, _itemIndexGroupErr := readBuffer.ReadUint32("itemIndexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemReadWrite.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
index 5915c40..bf743ab 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
@@ -155,6 +155,8 @@ func AdsMultiRequestItemReadWriteParse(readBuffer utils.ReadBuffer, indexGroup u
if pullErr := readBuffer.PullContext("AdsMultiRequestItemReadWrite"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (itemIndexGroup)
_itemIndexGroup, _itemIndexGroupErr := readBuffer.ReadUint32("itemIndexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemWrite.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemWrite.go
index 0870b31..b437b61 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemWrite.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsMultiRequestItemWrite.go
@@ -144,6 +144,8 @@ func AdsMultiRequestItemWriteParse(readBuffer utils.ReadBuffer, indexGroup uint3
if pullErr := readBuffer.PullContext("AdsMultiRequestItemWrite"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (itemIndexGroup)
_itemIndexGroup, _itemIndexGroupErr := readBuffer.ReadUint32("itemIndexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsNotificationSample.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsNotificationSample.go
index f5413eb..d807abc 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsNotificationSample.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsNotificationSample.go
@@ -119,6 +119,8 @@ func AdsNotificationSampleParse(readBuffer utils.ReadBuffer) (*AdsNotificationSa
if pullErr := readBuffer.PullContext("AdsNotificationSample"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (notificationHandle)
_notificationHandle, _notificationHandleErr := readBuffer.ReadUint32("notificationHandle", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoRequest.go
index c403266..61c0510 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoRequest.go
@@ -119,6 +119,8 @@ func AdsReadDeviceInfoRequestParse(readBuffer utils.ReadBuffer, commandId Comman
if pullErr := readBuffer.PullContext("AdsReadDeviceInfoRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("AdsReadDeviceInfoRequest"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoResponse.go
index dd02eae..d6dd57c 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadDeviceInfoResponse.go
@@ -176,6 +176,8 @@ func AdsReadDeviceInfoResponseParse(readBuffer utils.ReadBuffer, commandId Comma
if pullErr := readBuffer.PullContext("AdsReadDeviceInfoResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadRequest.go
index babcf12..e6669d9 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadRequest.go
@@ -152,6 +152,8 @@ func AdsReadRequestParse(readBuffer utils.ReadBuffer, commandId CommandId, respo
if pullErr := readBuffer.PullContext("AdsReadRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (indexGroup)
_indexGroup, _indexGroupErr := readBuffer.ReadUint32("indexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadResponse.go
index 0f7c309..cbac443 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadResponse.go
@@ -146,6 +146,8 @@ func AdsReadResponseParse(readBuffer utils.ReadBuffer, commandId CommandId, resp
if pullErr := readBuffer.PullContext("AdsReadResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go
index 779a800..45d91b7 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go
@@ -119,6 +119,8 @@ func AdsReadStateRequestParse(readBuffer utils.ReadBuffer, commandId CommandId,
if pullErr := readBuffer.PullContext("AdsReadStateRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("AdsReadStateRequest"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateResponse.go
index 783d252..1061314 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateResponse.go
@@ -152,6 +152,8 @@ func AdsReadStateResponseParse(readBuffer utils.ReadBuffer, commandId CommandId,
if pullErr := readBuffer.PullContext("AdsReadStateResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteRequest.go
index afcdbfb..a174637 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteRequest.go
@@ -184,6 +184,8 @@ func AdsReadWriteRequestParse(readBuffer utils.ReadBuffer, commandId CommandId,
if pullErr := readBuffer.PullContext("AdsReadWriteRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (indexGroup)
_indexGroup, _indexGroupErr := readBuffer.ReadUint32("indexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteResponse.go
index a360f30..b7424ba 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsReadWriteResponse.go
@@ -146,6 +146,8 @@ func AdsReadWriteResponseParse(readBuffer utils.ReadBuffer, commandId CommandId,
if pullErr := readBuffer.PullContext("AdsReadWriteResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsStampHeader.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsStampHeader.go
index 7bd7ba8..83c9a44 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsStampHeader.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsStampHeader.go
@@ -122,6 +122,8 @@ func AdsStampHeaderParse(readBuffer utils.ReadBuffer) (*AdsStampHeader, error) {
if pullErr := readBuffer.PullContext("AdsStampHeader"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (timestamp)
_timestamp, _timestampErr := readBuffer.ReadUint64("timestamp", 64)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlRequest.go
index e988cd4..ab938a3 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlRequest.go
@@ -157,6 +157,8 @@ func AdsWriteControlRequestParse(readBuffer utils.ReadBuffer, commandId CommandI
if pullErr := readBuffer.PullContext("AdsWriteControlRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (adsState)
_adsState, _adsStateErr := readBuffer.ReadUint16("adsState", 16)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlResponse.go
index cfdc4e3..e37bbac 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteControlResponse.go
@@ -130,6 +130,8 @@ func AdsWriteControlResponseParse(readBuffer utils.ReadBuffer, commandId Command
if pullErr := readBuffer.PullContext("AdsWriteControlResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteRequest.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteRequest.go
index 78e7a10..c698c25 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteRequest.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteRequest.go
@@ -157,6 +157,8 @@ func AdsWriteRequestParse(readBuffer utils.ReadBuffer, commandId CommandId, resp
if pullErr := readBuffer.PullContext("AdsWriteRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (indexGroup)
_indexGroup, _indexGroupErr := readBuffer.ReadUint32("indexGroup", 32)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteResponse.go b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteResponse.go
index 7aec191..b55e433 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteResponse.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AdsWriteResponse.go
@@ -130,6 +130,8 @@ func AdsWriteResponseParse(readBuffer utils.ReadBuffer, commandId CommandId, res
if pullErr := readBuffer.PullContext("AdsWriteResponse"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (result)
if pullErr := readBuffer.PullContext("result"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsNetId.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsNetId.go
index b9b5816..bb7efcc 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsNetId.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsNetId.go
@@ -147,6 +147,8 @@ func AmsNetIdParse(readBuffer utils.ReadBuffer) (*AmsNetId, error) {
if pullErr := readBuffer.PullContext("AmsNetId"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (octet1)
_octet1, _octet1Err := readBuffer.ReadUint8("octet1", 8)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsPacket.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsPacket.go
index 9caa4a0..063caf1 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsPacket.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsPacket.go
@@ -180,6 +180,8 @@ func AmsPacketParse(readBuffer utils.ReadBuffer) (*AmsPacket, error) {
if pullErr := readBuffer.PullContext("AmsPacket"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (targetAmsNetId)
if pullErr := readBuffer.PullContext("targetAmsNetId"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialAcknowledgeFrame.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
index bbadda5..8494340 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
@@ -147,6 +147,8 @@ func AmsSerialAcknowledgeFrameParse(readBuffer utils.ReadBuffer) (*AmsSerialAckn
if pullErr := readBuffer.PullContext("AmsSerialAcknowledgeFrame"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (magicCookie)
_magicCookie, _magicCookieErr := readBuffer.ReadUint16("magicCookie", 16)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialFrame.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialFrame.go
index 20eef08..e063a23 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialFrame.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialFrame.go
@@ -157,6 +157,8 @@ func AmsSerialFrameParse(readBuffer utils.ReadBuffer) (*AmsSerialFrame, error) {
if pullErr := readBuffer.PullContext("AmsSerialFrame"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (magicCookie)
_magicCookie, _magicCookieErr := readBuffer.ReadUint16("magicCookie", 16)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialResetFrame.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialResetFrame.go
index 07e4468..cdc03e1 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialResetFrame.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsSerialResetFrame.go
@@ -147,6 +147,8 @@ func AmsSerialResetFrameParse(readBuffer utils.ReadBuffer) (*AmsSerialResetFrame
if pullErr := readBuffer.PullContext("AmsSerialResetFrame"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (magicCookie)
_magicCookie, _magicCookieErr := readBuffer.ReadUint16("magicCookie", 16)
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AmsTCPPacket.go b/plc4go/internal/plc4go/ads/readwrite/model/AmsTCPPacket.go
index 20bb2bd..e1e828b 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AmsTCPPacket.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/AmsTCPPacket.go
@@ -104,6 +104,8 @@ func AmsTCPPacketParse(readBuffer utils.ReadBuffer) (*AmsTCPPacket, error) {
if pullErr := readBuffer.PullContext("AmsTCPPacket"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/State.go b/plc4go/internal/plc4go/ads/readwrite/model/State.go
index 5fcfe26..551c26a 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/State.go
+++ b/plc4go/internal/plc4go/ads/readwrite/model/State.go
@@ -181,6 +181,8 @@ func StateParse(readBuffer utils.ReadBuffer) (*State, error) {
if pullErr := readBuffer.PullContext("State"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (initCommand)
_initCommand, _initCommandErr := readBuffer.ReadBit("initCommand")
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDU.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDU.go
index b9315d0..918c2d5 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDU.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDU.go
@@ -112,6 +112,8 @@ func APDUParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU, error) {
if pullErr := readBuffer.PullContext("APDU"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (apduType) (Used as input to a switch field)
apduType, _apduTypeErr := readBuffer.ReadUint8("apduType", 4)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUAbort.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUAbort.go
index 9db257a..0062535 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUAbort.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUAbort.go
@@ -151,6 +151,8 @@ func APDUAbortParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU, erro
if pullErr := readBuffer.PullContext("APDUAbort"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUComplexAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUComplexAck.go
index b296bb5..82df28d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUComplexAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUComplexAck.go
@@ -217,6 +217,8 @@ func APDUComplexAckParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU,
if pullErr := readBuffer.PullContext("APDUComplexAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (segmentedMessage)
_segmentedMessage, _segmentedMessageErr := readBuffer.ReadBit("segmentedMessage")
@@ -276,7 +278,7 @@ func APDUComplexAckParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU,
// Optional Field (serviceAck) (Can be skipped, if a given expression evaluates to false)
var serviceAck *BACnetServiceAck = nil
if !(segmentedMessage) {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("serviceAck"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUConfirmedRequest.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUConfirmedRequest.go
index 03c5769..69ea853 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUConfirmedRequest.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUConfirmedRequest.go
@@ -221,6 +221,8 @@ func APDUConfirmedRequestParse(readBuffer utils.ReadBuffer, apduLength uint16) (
if pullErr := readBuffer.PullContext("APDUConfirmedRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (segmentedMessage)
_segmentedMessage, _segmentedMessageErr := readBuffer.ReadBit("segmentedMessage")
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUError.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUError.go
index fb0c119..d3330b1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUError.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUError.go
@@ -140,6 +140,8 @@ func APDUErrorParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU, erro
if pullErr := readBuffer.PullContext("APDUError"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUReject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUReject.go
index 144ba92..25d2347 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUReject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUReject.go
@@ -140,6 +140,8 @@ func APDURejectParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU, err
if pullErr := readBuffer.PullContext("APDUReject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSegmentAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSegmentAck.go
index 38b505e..582d82f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSegmentAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSegmentAck.go
@@ -173,6 +173,8 @@ func APDUSegmentAckParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU,
if pullErr := readBuffer.PullContext("APDUSegmentAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSimpleAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSimpleAck.go
index 93cb394..45c6014 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSimpleAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUSimpleAck.go
@@ -140,6 +140,8 @@ func APDUSimpleAckParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU,
if pullErr := readBuffer.PullContext("APDUSimpleAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnconfirmedRequest.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
index 0a5478b..6d5ca95 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
@@ -129,6 +129,8 @@ func APDUUnconfirmedRequestParse(readBuffer utils.ReadBuffer, apduLength uint16)
if pullErr := readBuffer.PullContext("APDUUnconfirmedRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Reserved Field (Compartmentalized so the "reserved" variable can't leak)
{
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnknown.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnknown.go
index 4ecea68..b6f386e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnknown.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/APDUUnknown.go
@@ -127,6 +127,8 @@ func APDUUnknownParse(readBuffer utils.ReadBuffer, apduLength uint16) (*APDU, er
if pullErr := readBuffer.PullContext("APDUUnknown"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Byte Array field (unknownBytes)
numberOfBytesunknownBytes := int(utils.InlineIf(bool(bool((apduLength) > (0))), func() interface{} { return uint16(uint16(uint16(apduLength) - uint16(uint16(1)))) }, func() interface{} { return uint16(uint16(0)) }).(uint16))
unknownBytes, _readArrayErr := readBuffer.ReadByteArray("unknownBytes", numberOfBytesunknownBytes)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAction.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAction.go
index a63b133..23021dd 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAction.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAction.go
@@ -122,11 +122,13 @@ func BACnetActionParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACnetAct
if pullErr := readBuffer.PullContext("BACnetAction"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (rawData) (Can be skipped, if a given expression evaluates to false)
var rawData *BACnetContextTagEnumerated = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("rawData"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetActionCommand.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetActionCommand.go
index ffe59de..d1a7164 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetActionCommand.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetActionCommand.go
@@ -188,11 +188,13 @@ func BACnetActionCommandParse(readBuffer utils.ReadBuffer) (*BACnetActionCommand
if pullErr := readBuffer.PullContext("BACnetActionCommand"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (deviceIdentifier) (Can be skipped, if a given expression evaluates to false)
var deviceIdentifier *BACnetContextTagObjectIdentifier = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceIdentifier"); pullErr != nil {
return nil, pullErr
}
@@ -239,7 +241,7 @@ func BACnetActionCommandParse(readBuffer utils.ReadBuffer) (*BACnetActionCommand
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
@@ -260,7 +262,7 @@ func BACnetActionCommandParse(readBuffer utils.ReadBuffer) (*BACnetActionCommand
// Optional Field (propertyValue) (Can be skipped, if a given expression evaluates to false)
var propertyValue *BACnetConstructedData = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("propertyValue"); pullErr != nil {
return nil, pullErr
}
@@ -281,7 +283,7 @@ func BACnetActionCommandParse(readBuffer utils.ReadBuffer) (*BACnetActionCommand
// Optional Field (priority) (Can be skipped, if a given expression evaluates to false)
var priority *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("priority"); pullErr != nil {
return nil, pullErr
}
@@ -302,7 +304,7 @@ func BACnetActionCommandParse(readBuffer utils.ReadBuffer) (*BACnetActionCommand
// Optional Field (postDelay) (Can be skipped, if a given expression evaluates to false)
var postDelay *BACnetContextTagBoolean = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("postDelay"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAddress.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAddress.go
index 6cd6045..afcccab 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAddress.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetAddress.go
@@ -109,6 +109,8 @@ func BACnetAddressParse(readBuffer utils.ReadBuffer) (*BACnetAddress, error) {
if pullErr := readBuffer.PullContext("BACnetAddress"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (address)
if pullErr := readBuffer.PullContext("address", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTag.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTag.go
index 0671b12..45fcc12 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTag.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTag.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagParse(readBuffer utils.ReadBuffer) (*BACnetApplicationT
if pullErr := readBuffer.PullContext("BACnetApplicationTag"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (header)
if pullErr := readBuffer.PullContext("header"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBitString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
index d88b0fb..fc278f6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
@@ -124,6 +124,8 @@ func BACnetApplicationTagBitStringParse(readBuffer utils.ReadBuffer, header *BAC
if pullErr := readBuffer.PullContext("BACnetApplicationTagBitString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
index 9aba589..d9c537f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagBooleanParse(readBuffer utils.ReadBuffer, header *BACne
if pullErr := readBuffer.PullContext("BACnetApplicationTagBoolean"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
index 00df111..eaafc9b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagCharacterStringParse(readBuffer utils.ReadBuffer, heade
if pullErr := readBuffer.PullContext("BACnetApplicationTagCharacterString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDate.go
index b431e4e..709275f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDate.go
@@ -124,6 +124,8 @@ func BACnetApplicationTagDateParse(readBuffer utils.ReadBuffer) (*BACnetApplicat
if pullErr := readBuffer.PullContext("BACnetApplicationTagDate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDouble.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
index 302f4dd..74ad91e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagDoubleParse(readBuffer utils.ReadBuffer) (*BACnetApplic
if pullErr := readBuffer.PullContext("BACnetApplicationTagDouble"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
index 1ab260f..1000ae4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagEnumeratedParse(readBuffer utils.ReadBuffer, header *BA
if pullErr := readBuffer.PullContext("BACnetApplicationTagEnumerated"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagNull.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagNull.go
index 940f570..a5d08be 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagNull.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagNull.go
@@ -113,6 +113,8 @@ func BACnetApplicationTagNullParse(readBuffer utils.ReadBuffer) (*BACnetApplicat
if pullErr := readBuffer.PullContext("BACnetApplicationTagNull"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetApplicationTagNull"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
index 0ecbace..45fb7a2 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
@@ -139,6 +139,8 @@ func BACnetApplicationTagObjectIdentifierParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetApplicationTagObjectIdentifier"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
index 07819be..54d196b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagOctetStringParse(readBuffer utils.ReadBuffer, header *B
if pullErr := readBuffer.PullContext("BACnetApplicationTagOctetString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagReal.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagReal.go
index ff2a486..cec8144 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagReal.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagReal.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagRealParse(readBuffer utils.ReadBuffer) (*BACnetApplicat
if pullErr := readBuffer.PullContext("BACnetApplicationTagReal"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
index d8b6b44..a5c0e98 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagSignedIntegerParse(readBuffer utils.ReadBuffer, header
if pullErr := readBuffer.PullContext("BACnetApplicationTagSignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagTime.go
index 0d67c95..f53cadd 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagTime.go
@@ -124,6 +124,8 @@ func BACnetApplicationTagTimeParse(readBuffer utils.ReadBuffer) (*BACnetApplicat
if pullErr := readBuffer.PullContext("BACnetApplicationTagTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
index 36a5ad0..b445d65 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
@@ -131,6 +131,8 @@ func BACnetApplicationTagUnsignedIntegerParse(readBuffer utils.ReadBuffer, heade
if pullErr := readBuffer.PullContext("BACnetApplicationTagUnsignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (payload)
if pullErr := readBuffer.PullContext("payload"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetBinaryPV.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetBinaryPV.go
index 4807760..00dc60c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetBinaryPV.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetBinaryPV.go
@@ -122,11 +122,13 @@ func BACnetBinaryPVParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACnetB
if pullErr := readBuffer.PullContext("BACnetBinaryPV"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (rawData) (Can be skipped, if a given expression evaluates to false)
var rawData *BACnetContextTagEnumerated = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("rawData"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetClosingTag.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetClosingTag.go
index 85802fc..9065f73 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetClosingTag.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetClosingTag.go
@@ -117,6 +117,8 @@ func BACnetClosingTagParse(readBuffer utils.ReadBuffer, tagNumberArgument uint8,
if pullErr := readBuffer.PullContext("BACnetClosingTag"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(bool((actualLength) == (7))) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACK.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACK.go
index 3a0f019..4a0369e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACK.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACK.go
@@ -109,6 +109,8 @@ func BACnetConfirmedServiceACKParse(readBuffer utils.ReadBuffer) (*BACnetConfirm
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACK"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (serviceChoice) (Used as input to a switch field)
serviceChoice, _serviceChoiceErr := readBuffer.ReadUint8("serviceChoice", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicReadFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicReadFile.go
index 1ba0298..16eb850 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicReadFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicReadFile.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKAtomicReadFileParse(readBuffer utils.ReadBuffer) (
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKAtomicReadFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKAtomicReadFile"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicWriteFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicWriteFile.go
index 2595cbb..47be67d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicWriteFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKAtomicWriteFile.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKAtomicWriteFileParse(readBuffer utils.ReadBuffer)
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKAtomicWriteFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKAtomicWriteFile"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKConfirmedPrivateTransfer.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKConfirmedPrivateTransfer.go
index 73ce5d7..a42120a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKConfirmedPrivateTransfer.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKConfirmedPrivateTransfer.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKConfirmedPrivateTransferParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKConfirmedPrivateTransfer"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKConfirmedPrivateTransfer"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKCreateObject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKCreateObject.go
index e3905d8..9ec15a7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKCreateObject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKCreateObject.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceACKCreateObjectParse(readBuffer utils.ReadBuffer) (*B
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKCreateObject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKCreateObject"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetAlarmSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetAlarmSummary.go
index c132c75..4aab677 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetAlarmSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetAlarmSummary.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKGetAlarmSummaryParse(readBuffer utils.ReadBuffer)
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKGetAlarmSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKGetAlarmSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEnrollmentSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEnrollmentSummary.go
index c3a9625..ba88717 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEnrollmentSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEnrollmentSummary.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKGetEnrollmentSummaryParse(readBuffer utils.ReadBuf
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKGetEnrollmentSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKGetEnrollmentSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEventInformation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEventInformation.go
index afa72c4..bef6c37 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEventInformation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKGetEventInformation.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKGetEventInformationParse(readBuffer utils.ReadBuff
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKGetEventInformation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKGetEventInformation"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadProperty.go
index 6bf9081..360515f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadProperty.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceACKReadPropertyParse(readBuffer utils.ReadBuffer) (*B
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKReadProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKReadProperty"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadPropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadPropertyMultiple.go
index 024aa86..833facd 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadPropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadPropertyMultiple.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKReadPropertyMultipleParse(readBuffer utils.ReadBuf
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKReadPropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKReadPropertyMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadRange.go
index 8edee75..c463d7a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKReadRange.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceACKReadRangeParse(readBuffer utils.ReadBuffer) (*BACn
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKReadRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKReadRange"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedAuthenticate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedAuthenticate.go
index 443cbef..89800fe 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedAuthenticate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedAuthenticate.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKRemovedAuthenticateParse(readBuffer utils.ReadBuff
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKRemovedAuthenticate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKRemovedAuthenticate"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedReadPropertyConditional.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedReadPropertyConditional.go
index a68157c..4243214 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedReadPropertyConditional.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKRemovedReadPropertyConditional.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceACKRemovedReadPropertyConditionalParse(readBuffer uti
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKRemovedReadPropertyConditional"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKRemovedReadPropertyConditional"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTData.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTData.go
index 5728c4f..ed3516a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTData.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTData.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceACKVTDataParse(readBuffer utils.ReadBuffer) (*BACnetC
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKVTData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKVTData"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTOpen.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTOpen.go
index 53811e6..1c71ec1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTOpen.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceACKVTOpen.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceACKVTOpenParse(readBuffer utils.ReadBuffer) (*BACnetC
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceACKVTOpen"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceACKVTOpen"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceAddListElement.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceAddListElement.go
index bd5cf2c..ead066e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceAddListElement.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceAddListElement.go
@@ -111,6 +111,8 @@ func BACnetConfirmedServiceAddListElementParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceAddListElement"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceAddListElement"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
index 9b1f24b..793f8c6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
@@ -112,6 +112,8 @@ func BACnetConfirmedServiceRequestParse(readBuffer utils.ReadBuffer, len uint16)
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (serviceChoice) (Used as input to a switch field)
serviceChoice, _serviceChoiceErr := readBuffer.ReadUint8("serviceChoice", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
index 2a3afae..c317f17 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestAcknowledgeAlarmParse(readBuffer utils.ReadBuf
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAcknowledgeAlarm"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestAcknowledgeAlarm"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
index e423f9b..476ab11 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestAddListElementParse(readBuffer utils.ReadBuffe
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAddListElement"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestAddListElement"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
index 5de25bb..e083286 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
@@ -137,6 +137,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileParse(readBuffer utils.ReadBuffe
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileIdentifier)
if pullErr := readBuffer.PullContext("fileIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
index 702dbcf..06401e4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
@@ -137,6 +137,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileRecordParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileRecord"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileStartRecord)
if pullErr := readBuffer.PullContext("fileStartRecord"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
index 8235543..0ed42d5 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
@@ -137,6 +137,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileStreamParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileStream"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileStartPosition)
if pullErr := readBuffer.PullContext("fileStartPosition"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
index 192ab5d..af5ec53 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
@@ -140,9 +140,11 @@ func BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecordParse(readBuffer u
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
index f1ac678..41e03a7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
@@ -175,6 +175,8 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParse(readBuffer utils.ReadBuff
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicWriteFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (deviceIdentifier)
if pullErr := readBuffer.PullContext("deviceIdentifier"); pullErr != nil {
@@ -192,7 +194,7 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParse(readBuffer utils.ReadBuff
// Optional Field (openingTag) (Can be skipped, if a given expression evaluates to false)
var openingTag *BACnetOpeningTag = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
return nil, pullErr
}
@@ -239,7 +241,7 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParse(readBuffer utils.ReadBuff
// Optional Field (closingTag) (Can be skipped, if a given expression evaluates to false)
var closingTag *BACnetClosingTag = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("closingTag"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotification.go
index 6c3ca95..46e5e26 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotification.go
@@ -170,6 +170,8 @@ func BACnetConfirmedServiceRequestConfirmedCOVNotificationParse(readBuffer utils
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedCOVNotification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (subscriberProcessIdentifier)
if pullErr := readBuffer.PullContext("subscriberProcessIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple.go
index 7a6266f..53bdf5f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestConfirmedCOVNotificationMultipleParse(readBuff
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestConfirmedCOVNotificationMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedEventNotification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedEventNotification.go
index a6bddd1..ce94328 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedEventNotification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedEventNotification.go
@@ -267,6 +267,8 @@ func BACnetConfirmedServiceRequestConfirmedEventNotificationParse(readBuffer uti
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedEventNotification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (processIdentifier)
if pullErr := readBuffer.PullContext("processIdentifier"); pullErr != nil {
@@ -362,7 +364,7 @@ func BACnetConfirmedServiceRequestConfirmedEventNotificationParse(readBuffer uti
// Optional Field (messageText) (Can be skipped, if a given expression evaluates to false)
var messageText *BACnetContextTagCharacterString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("messageText"); pullErr != nil {
return nil, pullErr
}
@@ -396,7 +398,7 @@ func BACnetConfirmedServiceRequestConfirmedEventNotificationParse(readBuffer uti
// Optional Field (ackRequired) (Can be skipped, if a given expression evaluates to false)
var ackRequired *BACnetContextTagBoolean = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("ackRequired"); pullErr != nil {
return nil, pullErr
}
@@ -417,7 +419,7 @@ func BACnetConfirmedServiceRequestConfirmedEventNotificationParse(readBuffer uti
// Optional Field (fromState) (Can be skipped, if a given expression evaluates to false)
var fromState *BACnetContextTagEventState = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("fromState"); pullErr != nil {
return nil, pullErr
}
@@ -451,7 +453,7 @@ func BACnetConfirmedServiceRequestConfirmedEventNotificationParse(readBuffer uti
// Optional Field (eventValues) (Can be skipped, if a given expression evaluates to false)
var eventValues *BACnetNotificationParameters = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("eventValues"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedPrivateTransfer.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedPrivateTransfer.go
index cde926b..fd8a5ef 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedPrivateTransfer.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedPrivateTransfer.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestConfirmedPrivateTransferParse(readBuffer utils
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedPrivateTransfer"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestConfirmedPrivateTransfer"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedTextMessage.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedTextMessage.go
index 862c648..1e73c82 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedTextMessage.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedTextMessage.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestConfirmedTextMessageParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedTextMessage"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestConfirmedTextMessage"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedUnknown.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedUnknown.go
index 5c9cdbc..1ac8077 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedUnknown.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestConfirmedUnknown.go
@@ -128,6 +128,8 @@ func BACnetConfirmedServiceRequestConfirmedUnknownParse(readBuffer utils.ReadBuf
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestConfirmedUnknown"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Byte Array field (unknownBytes)
numberOfBytesunknownBytes := int(utils.InlineIf(bool(bool((len) > (0))), func() interface{} { return uint16(uint16(uint16(len) - uint16(uint16(1)))) }, func() interface{} { return uint16(uint16(0)) }).(uint16))
unknownBytes, _readArrayErr := readBuffer.ReadByteArray("unknownBytes", numberOfBytesunknownBytes)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestCreateObject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestCreateObject.go
index 2ad1700..913a2db 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestCreateObject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestCreateObject.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestCreateObjectParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestCreateObject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestCreateObject"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeleteObject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeleteObject.go
index ed9d921..6df38fd 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeleteObject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeleteObject.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestDeleteObjectParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestDeleteObject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestDeleteObject"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeviceCommunicationControl.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeviceCommunicationControl.go
index 404d424..c4aa17d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeviceCommunicationControl.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestDeviceCommunicationControl.go
@@ -153,11 +153,13 @@ func BACnetConfirmedServiceRequestDeviceCommunicationControlParse(readBuffer uti
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestDeviceCommunicationControl"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (timeDuration) (Can be skipped, if a given expression evaluates to false)
var timeDuration *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("timeDuration"); pullErr != nil {
return nil, pullErr
}
@@ -191,7 +193,7 @@ func BACnetConfirmedServiceRequestDeviceCommunicationControlParse(readBuffer uti
// Optional Field (password) (Can be skipped, if a given expression evaluates to false)
var password *BACnetContextTagCharacterString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("password"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEnrollmentSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEnrollmentSummary.go
index 45468de..9f771ca 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEnrollmentSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEnrollmentSummary.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestGetEnrollmentSummaryParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestGetEnrollmentSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestGetEnrollmentSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEventInformation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEventInformation.go
index 8045ad4..cc66131 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEventInformation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestGetEventInformation.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestGetEventInformationParse(readBuffer utils.Read
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestGetEventInformation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestGetEventInformation"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestLifeSafetyOperation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestLifeSafetyOperation.go
index 1ae24f4..39e4361 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestLifeSafetyOperation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestLifeSafetyOperation.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestLifeSafetyOperationParse(readBuffer utils.Read
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestLifeSafetyOperation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestLifeSafetyOperation"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadProperty.go
index 1947755..5afb6f3 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadProperty.go
@@ -151,6 +151,8 @@ func BACnetConfirmedServiceRequestReadPropertyParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestReadProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (objectIdentifier)
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
@@ -181,7 +183,7 @@ func BACnetConfirmedServiceRequestReadPropertyParse(readBuffer utils.ReadBuffer,
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadPropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadPropertyMultiple.go
index 04fa60f..5126dd8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadPropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadPropertyMultiple.go
@@ -130,6 +130,8 @@ func BACnetConfirmedServiceRequestReadPropertyMultipleParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestReadPropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (data)
if pullErr := readBuffer.PullContext("data", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadRange.go
index 79fc3b2..ae356b9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReadRange.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestReadRangeParse(readBuffer utils.ReadBuffer, le
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestReadRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestReadRange"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDevice.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDevice.go
index e720572..7ade92b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDevice.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDevice.go
@@ -140,6 +140,8 @@ func BACnetConfirmedServiceRequestReinitializeDeviceParse(readBuffer utils.ReadB
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestReinitializeDevice"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (reinitializedStateOfDevice)
if pullErr := readBuffer.PullContext("reinitializedStateOfDevice"); pullErr != nil {
@@ -157,7 +159,7 @@ func BACnetConfirmedServiceRequestReinitializeDeviceParse(readBuffer utils.ReadB
// Optional Field (password) (Can be skipped, if a given expression evaluates to false)
var password *BACnetContextTagCharacterString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("password"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDeviceEnableDisable.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDeviceEnableDisable.go
index 1b1339e..baf461d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDeviceEnableDisable.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestReinitializeDeviceEnableDisable.go
@@ -132,11 +132,13 @@ func BACnetConfirmedServiceRequestReinitializeDeviceEnableDisableParse(readBuffe
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestReinitializeDeviceEnableDisable"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (rawData) (Can be skipped, if a given expression evaluates to false)
var rawData *BACnetContextTagEnumerated = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("rawData"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemoveListElement.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemoveListElement.go
index e173f4e..6b4f331 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemoveListElement.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemoveListElement.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestRemoveListElementParse(readBuffer utils.ReadBu
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestRemoveListElement"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestRemoveListElement"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedAuthenticate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedAuthenticate.go
index 75d391d..99d39a7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedAuthenticate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedAuthenticate.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestRemovedAuthenticateParse(readBuffer utils.Read
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestRemovedAuthenticate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestRemovedAuthenticate"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedReadPropertyConditional.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedReadPropertyConditional.go
index 28fe2a4..d38940f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedReadPropertyConditional.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedReadPropertyConditional.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestRemovedReadPropertyConditionalParse(readBuffer
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestRemovedReadPropertyConditional"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestRemovedReadPropertyConditional"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedRequestKey.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedRequestKey.go
index c3a83cd..88b8ce9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedRequestKey.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestRemovedRequestKey.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestRemovedRequestKeyParse(readBuffer utils.ReadBu
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestRemovedRequestKey"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestRemovedRequestKey"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOV.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOV.go
index 89f357a..2e94181 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOV.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOV.go
@@ -159,6 +159,8 @@ func BACnetConfirmedServiceRequestSubscribeCOVParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestSubscribeCOV"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (subscriberProcessIdentifier)
if pullErr := readBuffer.PullContext("subscriberProcessIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVProperty.go
index 0b593de..f2705a6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVProperty.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestSubscribeCOVPropertyParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestSubscribeCOVProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestSubscribeCOVProperty"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple.go
index 9612f4f..184bbf7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestSubscribeCOVPropertyMultipleParse(readBuffer u
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestSubscribeCOVPropertyMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTClose.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTClose.go
index fb71ecc..3193c9e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTClose.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTClose.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestVTCloseParse(readBuffer utils.ReadBuffer, len
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestVTClose"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestVTClose"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTData.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTData.go
index a9294f9..c3c22e7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTData.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTData.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestVTDataParse(readBuffer utils.ReadBuffer, len u
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestVTData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestVTData"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTOpen.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTOpen.go
index df321b8..d95156c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTOpen.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestVTOpen.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestVTOpenParse(readBuffer utils.ReadBuffer, len u
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestVTOpen"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestVTOpen"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWriteProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWriteProperty.go
index 553b6d3..6354ce6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWriteProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWriteProperty.go
@@ -175,6 +175,8 @@ func BACnetConfirmedServiceRequestWritePropertyParse(readBuffer utils.ReadBuffer
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestWriteProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (objectIdentifier)
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
@@ -205,7 +207,7 @@ func BACnetConfirmedServiceRequestWritePropertyParse(readBuffer utils.ReadBuffer
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
@@ -239,7 +241,7 @@ func BACnetConfirmedServiceRequestWritePropertyParse(readBuffer utils.ReadBuffer
// Optional Field (priority) (Can be skipped, if a given expression evaluates to false)
var priority *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("priority"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWritePropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWritePropertyMultiple.go
index a7384a7..e9c9ae0 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWritePropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConfirmedServiceRequestWritePropertyMultiple.go
@@ -115,6 +115,8 @@ func BACnetConfirmedServiceRequestWritePropertyMultipleParse(readBuffer utils.Re
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestWritePropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetConfirmedServiceRequestWritePropertyMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedData.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedData.go
index dd0cfd7..8fd7f0c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedData.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedData.go
@@ -139,6 +139,8 @@ func BACnetConstructedDataParse(readBuffer utils.ReadBuffer, tagNumber uint8, ob
if pullErr := readBuffer.PullContext("BACnetConstructedData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataCommand.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataCommand.go
index 42620e6..193cc07 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataCommand.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataCommand.go
@@ -163,6 +163,8 @@ func BACnetConstructedDataCommandParse(readBuffer utils.ReadBuffer, tagNumber ui
if pullErr := readBuffer.PullContext("BACnetConstructedDataCommand"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataElement.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataElement.go
index c5b93f9..57b4352 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataElement.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataElement.go
@@ -190,9 +190,11 @@ func BACnetConstructedDataElementParse(readBuffer utils.ReadBuffer, objectType B
if pullErr := readBuffer.PullContext("BACnetConstructedDataElement"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
@@ -222,7 +224,7 @@ func BACnetConstructedDataElementParse(readBuffer utils.ReadBuffer, objectType B
// Optional Field (applicationTag) (Can be skipped, if a given expression evaluates to false)
var applicationTag *BACnetApplicationTag = nil
if isApplicationTag {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("applicationTag"); pullErr != nil {
return nil, pullErr
}
@@ -243,7 +245,7 @@ func BACnetConstructedDataElementParse(readBuffer utils.ReadBuffer, objectType B
// Optional Field (contextTag) (Can be skipped, if a given expression evaluates to false)
var contextTag *BACnetContextTag = nil
if isContextTag {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("contextTag"); pullErr != nil {
return nil, pullErr
}
@@ -264,7 +266,7 @@ func BACnetConstructedDataElementParse(readBuffer utils.ReadBuffer, objectType B
// Optional Field (constructedData) (Can be skipped, if a given expression evaluates to false)
var constructedData *BACnetConstructedData = nil
if isConstructedData {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("constructedData"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataEventTimestamps.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataEventTimestamps.go
index 68f153f..350f62c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataEventTimestamps.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataEventTimestamps.go
@@ -159,6 +159,8 @@ func BACnetConstructedDataEventTimestampsParse(readBuffer utils.ReadBuffer, tagN
if pullErr := readBuffer.PullContext("BACnetConstructedDataEventTimestamps"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (toOffnormal)
if pullErr := readBuffer.PullContext("toOffnormal"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataLifeSafetyZone.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataLifeSafetyZone.go
index b191bd9..b9aa906 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataLifeSafetyZone.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataLifeSafetyZone.go
@@ -141,6 +141,8 @@ func BACnetConstructedDataLifeSafetyZoneParse(readBuffer utils.ReadBuffer, tagNu
if pullErr := readBuffer.PullContext("BACnetConstructedDataLifeSafetyZone"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (zones)
if pullErr := readBuffer.PullContext("zones", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataUnspecified.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataUnspecified.go
index e386dac..17a65ba 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataUnspecified.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetConstructedDataUnspecified.go
@@ -179,6 +179,8 @@ func BACnetConstructedDataUnspecifiedParse(readBuffer utils.ReadBuffer, tagNumbe
if pullErr := readBuffer.PullContext("BACnetConstructedDataUnspecified"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (data)
if pullErr := readBuffer.PullContext("data", utils.WithRenderAsList(true)); pullErr != nil {
@@ -208,7 +210,7 @@ func BACnetConstructedDataUnspecifiedParse(readBuffer utils.ReadBuffer, tagNumbe
// Optional Field (propertyIdentifier) (Can be skipped, if a given expression evaluates to false)
var propertyIdentifier *BACnetContextTagPropertyIdentifier = nil
if hasData {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("propertyIdentifier"); pullErr != nil {
return nil, pullErr
}
@@ -229,7 +231,7 @@ func BACnetConstructedDataUnspecifiedParse(readBuffer utils.ReadBuffer, tagNumbe
// Optional Field (content) (Can be skipped, if a given expression evaluates to false)
var content *BACnetApplicationTag = nil
if hasData {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("content"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTag.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTag.go
index 9ae8b6d..e20b442 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTag.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTag.go
@@ -142,6 +142,8 @@ func BACnetContextTagParse(readBuffer utils.ReadBuffer, tagNumberArgument uint8,
if pullErr := readBuffer.PullContext("BACnetContextTag"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (header)
if pullErr := readBuffer.PullContext("header"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBitString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBitString.go
index 862d5a8..1d8d9ce 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBitString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBitString.go
@@ -128,6 +128,8 @@ func BACnetContextTagBitStringParse(readBuffer utils.ReadBuffer, tagNumberArgume
if pullErr := readBuffer.PullContext("BACnetContextTagBitString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBoolean.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBoolean.go
index 2bff251..3579b02 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBoolean.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagBoolean.go
@@ -146,6 +146,8 @@ func BACnetContextTagBooleanParse(readBuffer utils.ReadBuffer, tagNumberArgument
if pullErr := readBuffer.PullContext("BACnetContextTagBoolean"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagCharacterString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagCharacterString.go
index b2b9dcd..d9c6f04 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagCharacterString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagCharacterString.go
@@ -128,6 +128,8 @@ func BACnetContextTagCharacterStringParse(readBuffer utils.ReadBuffer, tagNumber
if pullErr := readBuffer.PullContext("BACnetContextTagCharacterString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDate.go
index 60d6b2c..646fe08 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDate.go
@@ -128,6 +128,8 @@ func BACnetContextTagDateParse(readBuffer utils.ReadBuffer, tagNumberArgument ui
if pullErr := readBuffer.PullContext("BACnetContextTagDate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDeviceState.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDeviceState.go
index d617b26..6dc3b1c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDeviceState.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDeviceState.go
@@ -128,6 +128,8 @@ func BACnetContextTagDeviceStateParse(readBuffer utils.ReadBuffer, tagNumberArgu
if pullErr := readBuffer.PullContext("BACnetContextTagDeviceState"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDouble.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDouble.go
index f0132be..379b716 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDouble.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagDouble.go
@@ -135,6 +135,8 @@ func BACnetContextTagDoubleParse(readBuffer utils.ReadBuffer, tagNumberArgument
if pullErr := readBuffer.PullContext("BACnetContextTagDouble"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEmpty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEmpty.go
index 4510231..10e7755 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEmpty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEmpty.go
@@ -116,6 +116,8 @@ func BACnetContextTagEmptyParse(readBuffer utils.ReadBuffer, tagNumberArgument u
if pullErr := readBuffer.PullContext("BACnetContextTagEmpty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetContextTagEmpty"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEnumerated.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEnumerated.go
index 4ad74ba..a441af8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEnumerated.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEnumerated.go
@@ -135,6 +135,8 @@ func BACnetContextTagEnumeratedParse(readBuffer utils.ReadBuffer, tagNumberArgum
if pullErr := readBuffer.PullContext("BACnetContextTagEnumerated"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventState.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventState.go
index 494443e..864cdfe 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventState.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventState.go
@@ -147,6 +147,8 @@ func BACnetContextTagEventStateParse(readBuffer utils.ReadBuffer, tagNumberArgum
if pullErr := readBuffer.PullContext("BACnetContextTagEventState"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventType.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventType.go
index 581bd37..4a932d4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventType.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagEventType.go
@@ -147,6 +147,8 @@ func BACnetContextTagEventTypeParse(readBuffer utils.ReadBuffer, tagNumberArgume
if pullErr := readBuffer.PullContext("BACnetContextTagEventType"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagNotifyType.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagNotifyType.go
index 881066e..d753939 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagNotifyType.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagNotifyType.go
@@ -129,6 +129,8 @@ func BACnetContextTagNotifyTypeParse(readBuffer utils.ReadBuffer, tagNumberArgum
if pullErr := readBuffer.PullContext("BACnetContextTagNotifyType"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagObjectIdentifier.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagObjectIdentifier.go
index f2c45b5..e763134 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagObjectIdentifier.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagObjectIdentifier.go
@@ -143,6 +143,8 @@ func BACnetContextTagObjectIdentifierParse(readBuffer utils.ReadBuffer, tagNumbe
if pullErr := readBuffer.PullContext("BACnetContextTagObjectIdentifier"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagOctetString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagOctetString.go
index 340e74d..e49a910 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagOctetString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagOctetString.go
@@ -128,6 +128,8 @@ func BACnetContextTagOctetStringParse(readBuffer utils.ReadBuffer, tagNumberArgu
if pullErr := readBuffer.PullContext("BACnetContextTagOctetString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagPropertyIdentifier.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagPropertyIdentifier.go
index c47a02a..e84d225 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagPropertyIdentifier.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagPropertyIdentifier.go
@@ -147,6 +147,8 @@ func BACnetContextTagPropertyIdentifierParse(readBuffer utils.ReadBuffer, tagNum
if pullErr := readBuffer.PullContext("BACnetContextTagPropertyIdentifier"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagReal.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagReal.go
index c50229e..edaff45 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagReal.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagReal.go
@@ -135,6 +135,8 @@ func BACnetContextTagRealParse(readBuffer utils.ReadBuffer, tagNumberArgument ui
if pullErr := readBuffer.PullContext("BACnetContextTagReal"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagSignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagSignedInteger.go
index ea0c05c..4ea79da 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagSignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagSignedInteger.go
@@ -135,6 +135,8 @@ func BACnetContextTagSignedIntegerParse(readBuffer utils.ReadBuffer, tagNumberAr
if pullErr := readBuffer.PullContext("BACnetContextTagSignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagTime.go
index b2e5f2b..d61bdd1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagTime.go
@@ -128,6 +128,8 @@ func BACnetContextTagTimeParse(readBuffer utils.ReadBuffer, tagNumberArgument ui
if pullErr := readBuffer.PullContext("BACnetContextTagTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagUnsignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagUnsignedInteger.go
index b8dd3ed..6c9baf4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagUnsignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetContextTagUnsignedInteger.go
@@ -135,6 +135,8 @@ func BACnetContextTagUnsignedIntegerParse(readBuffer utils.ReadBuffer, tagNumber
if pullErr := readBuffer.PullContext("BACnetContextTagUnsignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(isNotOpeningOrClosingTag) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDateTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDateTime.go
index d5da5ad..7534a04 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDateTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDateTime.go
@@ -130,6 +130,8 @@ func BACnetDateTimeParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACnetD
if pullErr := readBuffer.PullContext("BACnetDateTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDeviceObjectPropertyReference.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDeviceObjectPropertyReference.go
index 42c0c34..e8f37ac 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDeviceObjectPropertyReference.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetDeviceObjectPropertyReference.go
@@ -155,6 +155,8 @@ func BACnetDeviceObjectPropertyReferenceParse(readBuffer utils.ReadBuffer, tagNu
if pullErr := readBuffer.PullContext("BACnetDeviceObjectPropertyReference"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -198,7 +200,7 @@ func BACnetDeviceObjectPropertyReferenceParse(readBuffer utils.ReadBuffer, tagNu
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
@@ -219,7 +221,7 @@ func BACnetDeviceObjectPropertyReferenceParse(readBuffer utils.ReadBuffer, tagNu
// Optional Field (deviceIdentifier) (Can be skipped, if a given expression evaluates to false)
var deviceIdentifier *BACnetContextTagObjectIdentifier = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceIdentifier"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetError.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetError.go
index f2f8d62..f7997d6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetError.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetError.go
@@ -128,6 +128,8 @@ func BACnetErrorParse(readBuffer utils.ReadBuffer) (*BACnetError, error) {
if pullErr := readBuffer.PullContext("BACnetError"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (serviceChoice) (Used as input to a switch field)
serviceChoice, _serviceChoiceErr := readBuffer.ReadUint8("serviceChoice", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAcknowledgeAlarm.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAcknowledgeAlarm.go
index e0f98b5..b917958 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAcknowledgeAlarm.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAcknowledgeAlarm.go
@@ -114,6 +114,8 @@ func BACnetErrorAcknowledgeAlarmParse(readBuffer utils.ReadBuffer) (*BACnetError
if pullErr := readBuffer.PullContext("BACnetErrorAcknowledgeAlarm"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorAcknowledgeAlarm"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicReadFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicReadFile.go
index e9336de..9e8ac75 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicReadFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicReadFile.go
@@ -114,6 +114,8 @@ func BACnetErrorAtomicReadFileParse(readBuffer utils.ReadBuffer) (*BACnetError,
if pullErr := readBuffer.PullContext("BACnetErrorAtomicReadFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorAtomicReadFile"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicWriteFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicWriteFile.go
index e7320ba..25a8598 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicWriteFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorAtomicWriteFile.go
@@ -114,6 +114,8 @@ func BACnetErrorAtomicWriteFileParse(readBuffer utils.ReadBuffer) (*BACnetError,
if pullErr := readBuffer.PullContext("BACnetErrorAtomicWriteFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorAtomicWriteFile"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedEventNotification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedEventNotification.go
index dcae4a3..bc20997 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedEventNotification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedEventNotification.go
@@ -114,6 +114,8 @@ func BACnetErrorConfirmedEventNotificationParse(readBuffer utils.ReadBuffer) (*B
if pullErr := readBuffer.PullContext("BACnetErrorConfirmedEventNotification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorConfirmedEventNotification"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedPrivateTransfer.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedPrivateTransfer.go
index d5cbc67..927c5f0 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedPrivateTransfer.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorConfirmedPrivateTransfer.go
@@ -114,6 +114,8 @@ func BACnetErrorConfirmedPrivateTransferParse(readBuffer utils.ReadBuffer) (*BAC
if pullErr := readBuffer.PullContext("BACnetErrorConfirmedPrivateTransfer"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorConfirmedPrivateTransfer"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorCreateObject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorCreateObject.go
index f8ea0d2..bb9ad95 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorCreateObject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorCreateObject.go
@@ -114,6 +114,8 @@ func BACnetErrorCreateObjectParse(readBuffer utils.ReadBuffer) (*BACnetError, er
if pullErr := readBuffer.PullContext("BACnetErrorCreateObject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorCreateObject"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorDeviceCommunicationProtocol.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorDeviceCommunicationProtocol.go
index 9812894..14ea849 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorDeviceCommunicationProtocol.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorDeviceCommunicationProtocol.go
@@ -114,6 +114,8 @@ func BACnetErrorDeviceCommunicationProtocolParse(readBuffer utils.ReadBuffer) (*
if pullErr := readBuffer.PullContext("BACnetErrorDeviceCommunicationProtocol"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorDeviceCommunicationProtocol"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetAlarmSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetAlarmSummary.go
index 27cfbfd..b5a75b1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetAlarmSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetAlarmSummary.go
@@ -114,6 +114,8 @@ func BACnetErrorGetAlarmSummaryParse(readBuffer utils.ReadBuffer) (*BACnetError,
if pullErr := readBuffer.PullContext("BACnetErrorGetAlarmSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorGetAlarmSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEnrollmentSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEnrollmentSummary.go
index 77565b9..f6b6d83 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEnrollmentSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEnrollmentSummary.go
@@ -114,6 +114,8 @@ func BACnetErrorGetEnrollmentSummaryParse(readBuffer utils.ReadBuffer) (*BACnetE
if pullErr := readBuffer.PullContext("BACnetErrorGetEnrollmentSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorGetEnrollmentSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEventInformation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEventInformation.go
index 13adfe0..2193851 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEventInformation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorGetEventInformation.go
@@ -114,6 +114,8 @@ func BACnetErrorGetEventInformationParse(readBuffer utils.ReadBuffer) (*BACnetEr
if pullErr := readBuffer.PullContext("BACnetErrorGetEventInformation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorGetEventInformation"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorPasswordFailure.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorPasswordFailure.go
index 1c04e8a..24f69ea 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorPasswordFailure.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorPasswordFailure.go
@@ -114,6 +114,8 @@ func BACnetErrorPasswordFailureParse(readBuffer utils.ReadBuffer) (*BACnetError,
if pullErr := readBuffer.PullContext("BACnetErrorPasswordFailure"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorPasswordFailure"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadProperty.go
index 9886b43..2acd95a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadProperty.go
@@ -114,6 +114,8 @@ func BACnetErrorReadPropertyParse(readBuffer utils.ReadBuffer) (*BACnetError, er
if pullErr := readBuffer.PullContext("BACnetErrorReadProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorReadProperty"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadPropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadPropertyMultiple.go
index f089658..1b83699 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadPropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadPropertyMultiple.go
@@ -114,6 +114,8 @@ func BACnetErrorReadPropertyMultipleParse(readBuffer utils.ReadBuffer) (*BACnetE
if pullErr := readBuffer.PullContext("BACnetErrorReadPropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorReadPropertyMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadRange.go
index e9e3635..4f270d8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorReadRange.go
@@ -114,6 +114,8 @@ func BACnetErrorReadRangeParse(readBuffer utils.ReadBuffer) (*BACnetError, error
if pullErr := readBuffer.PullContext("BACnetErrorReadRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorReadRange"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedAuthenticate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedAuthenticate.go
index b090174..8feaf3e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedAuthenticate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedAuthenticate.go
@@ -114,6 +114,8 @@ func BACnetErrorRemovedAuthenticateParse(readBuffer utils.ReadBuffer) (*BACnetEr
if pullErr := readBuffer.PullContext("BACnetErrorRemovedAuthenticate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorRemovedAuthenticate"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedReadPropertyConditional.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedReadPropertyConditional.go
index ceb0fe8..7499bc9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedReadPropertyConditional.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorRemovedReadPropertyConditional.go
@@ -114,6 +114,8 @@ func BACnetErrorRemovedReadPropertyConditionalParse(readBuffer utils.ReadBuffer)
if pullErr := readBuffer.PullContext("BACnetErrorRemovedReadPropertyConditional"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorRemovedReadPropertyConditional"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorUnknown.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorUnknown.go
index 3122b0c..3eba7a7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorUnknown.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorUnknown.go
@@ -114,6 +114,8 @@ func BACnetErrorUnknownParse(readBuffer utils.ReadBuffer) (*BACnetError, error)
if pullErr := readBuffer.PullContext("BACnetErrorUnknown"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorUnknown"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTData.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTData.go
index 4f661f6..093bedd 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTData.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTData.go
@@ -114,6 +114,8 @@ func BACnetErrorVTDataParse(readBuffer utils.ReadBuffer) (*BACnetError, error) {
if pullErr := readBuffer.PullContext("BACnetErrorVTData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorVTData"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTOpen.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTOpen.go
index 2aa9612..7ccfbc4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTOpen.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorVTOpen.go
@@ -114,6 +114,8 @@ func BACnetErrorVTOpenParse(readBuffer utils.ReadBuffer) (*BACnetError, error) {
if pullErr := readBuffer.PullContext("BACnetErrorVTOpen"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorVTOpen"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorWriteProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorWriteProperty.go
index 09b898f..cd6173a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorWriteProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetErrorWriteProperty.go
@@ -114,6 +114,8 @@ func BACnetErrorWritePropertyParse(readBuffer utils.ReadBuffer) (*BACnetError, e
if pullErr := readBuffer.PullContext("BACnetErrorWriteProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetErrorWriteProperty"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParameters.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParameters.go
index cfb3833..3f4f485 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParameters.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParameters.go
@@ -144,6 +144,8 @@ func BACnetNotificationParametersParse(readBuffer utils.ReadBuffer, tagNumber ui
if pullErr := readBuffer.PullContext("BACnetNotificationParameters"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -159,7 +161,7 @@ func BACnetNotificationParametersParse(readBuffer utils.ReadBuffer, tagNumber ui
}
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersBufferReady.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersBufferReady.go
index 766a3ab..8de47ef 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersBufferReady.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersBufferReady.go
@@ -174,6 +174,8 @@ func BACnetNotificationParametersBufferReadyParse(readBuffer utils.ReadBuffer, t
if pullErr := readBuffer.PullContext("BACnetNotificationParametersBufferReady"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfBitString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfBitString.go
index a257d64..87b7ba5 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfBitString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfBitString.go
@@ -163,6 +163,8 @@ func BACnetNotificationParametersChangeOfBitStringParse(readBuffer utils.ReadBuf
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfBitString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfState.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfState.go
index 5ec308c..1e4ff0b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfState.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfState.go
@@ -163,6 +163,8 @@ func BACnetNotificationParametersChangeOfStateParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfState"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValue.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValue.go
index ff45c0a..4cce394 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValue.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValue.go
@@ -163,6 +163,8 @@ func BACnetNotificationParametersChangeOfValueParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfValue"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValue.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValue.go
index 29b24c5..6b26153 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValue.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValue.go
@@ -143,6 +143,8 @@ func BACnetNotificationParametersChangeOfValueNewValueParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfValueNewValue"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -158,7 +160,7 @@ func BACnetNotificationParametersChangeOfValueNewValueParse(readBuffer utils.Rea
}
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedBits.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedBits.go
index 951e630..6eb3dc8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedBits.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedBits.go
@@ -129,6 +129,8 @@ func BACnetNotificationParametersChangeOfValueNewValueChangedBitsParse(readBuffe
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfValueNewValueChangedBits"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (changedBits)
if pullErr := readBuffer.PullContext("changedBits"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedValue.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedValue.go
index 006acd1..5838757 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedValue.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersChangeOfValueNewValueChangedValue.go
@@ -129,6 +129,8 @@ func BACnetNotificationParametersChangeOfValueNewValueChangedValueParse(readBuff
if pullErr := readBuffer.PullContext("BACnetNotificationParametersChangeOfValueNewValueChangedValue"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (changedValue)
if pullErr := readBuffer.PullContext("changedValue"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersComplexEventType.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersComplexEventType.go
index 062aef1..7ded7a1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersComplexEventType.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersComplexEventType.go
@@ -130,6 +130,8 @@ func BACnetNotificationParametersComplexEventTypeParse(readBuffer utils.ReadBuff
if pullErr := readBuffer.PullContext("BACnetNotificationParametersComplexEventType"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (listOfValues)
if pullErr := readBuffer.PullContext("listOfValues"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtended.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtended.go
index fea54d3..77d39e8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtended.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtended.go
@@ -174,6 +174,8 @@ func BACnetNotificationParametersExtendedParse(readBuffer utils.ReadBuffer, tagN
if pullErr := readBuffer.PullContext("BACnetNotificationParametersExtended"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtendedParameters.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtendedParameters.go
index c2d5d9f..9db4afb 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtendedParameters.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersExtendedParameters.go
@@ -279,6 +279,8 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
if pullErr := readBuffer.PullContext("BACnetNotificationParametersExtendedParameters"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -296,7 +298,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (nullValue) (Can be skipped, if a given expression evaluates to false)
var nullValue *BACnetApplicationTagNull = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("nullValue"); pullErr != nil {
return nil, pullErr
}
@@ -317,7 +319,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (realValue) (Can be skipped, if a given expression evaluates to false)
var realValue *BACnetApplicationTagReal = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("realValue"); pullErr != nil {
return nil, pullErr
}
@@ -338,7 +340,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (unsignedValue) (Can be skipped, if a given expression evaluates to false)
var unsignedValue *BACnetApplicationTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("unsignedValue"); pullErr != nil {
return nil, pullErr
}
@@ -359,7 +361,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (booleanValue) (Can be skipped, if a given expression evaluates to false)
var booleanValue *BACnetApplicationTagBoolean = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("booleanValue"); pullErr != nil {
return nil, pullErr
}
@@ -380,7 +382,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (integerValue) (Can be skipped, if a given expression evaluates to false)
var integerValue *BACnetApplicationTagSignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("integerValue"); pullErr != nil {
return nil, pullErr
}
@@ -401,7 +403,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (doubleValue) (Can be skipped, if a given expression evaluates to false)
var doubleValue *BACnetApplicationTagDouble = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("doubleValue"); pullErr != nil {
return nil, pullErr
}
@@ -422,7 +424,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (octetStringValue) (Can be skipped, if a given expression evaluates to false)
var octetStringValue *BACnetApplicationTagOctetString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("octetStringValue"); pullErr != nil {
return nil, pullErr
}
@@ -443,7 +445,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (characterStringValue) (Can be skipped, if a given expression evaluates to false)
var characterStringValue *BACnetApplicationTagCharacterString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("characterStringValue"); pullErr != nil {
return nil, pullErr
}
@@ -464,7 +466,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (bitStringValue) (Can be skipped, if a given expression evaluates to false)
var bitStringValue *BACnetApplicationTagBitString = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("bitStringValue"); pullErr != nil {
return nil, pullErr
}
@@ -485,7 +487,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (enumeratedValue) (Can be skipped, if a given expression evaluates to false)
var enumeratedValue *BACnetApplicationTagEnumerated = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("enumeratedValue"); pullErr != nil {
return nil, pullErr
}
@@ -506,7 +508,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (dateValue) (Can be skipped, if a given expression evaluates to false)
var dateValue *BACnetApplicationTagDate = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("dateValue"); pullErr != nil {
return nil, pullErr
}
@@ -527,7 +529,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (timeValue) (Can be skipped, if a given expression evaluates to false)
var timeValue *BACnetApplicationTagTime = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("timeValue"); pullErr != nil {
return nil, pullErr
}
@@ -548,7 +550,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (objectIdentifier) (Can be skipped, if a given expression evaluates to false)
var objectIdentifier *BACnetApplicationTagObjectIdentifier = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
return nil, pullErr
}
@@ -569,7 +571,7 @@ func BACnetNotificationParametersExtendedParametersParse(readBuffer utils.ReadBu
// Optional Field (reference) (Can be skipped, if a given expression evaluates to false)
var reference *BACnetDeviceObjectPropertyReference = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("reference"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersFloatingLimit.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersFloatingLimit.go
index 598a937..382ecac 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersFloatingLimit.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersFloatingLimit.go
@@ -185,6 +185,8 @@ func BACnetNotificationParametersFloatingLimitParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetNotificationParametersFloatingLimit"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersOutOfRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersOutOfRange.go
index 0f3cc3d..d55ac90 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersOutOfRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersOutOfRange.go
@@ -185,6 +185,8 @@ func BACnetNotificationParametersOutOfRangeParse(readBuffer utils.ReadBuffer, ta
if pullErr := readBuffer.PullContext("BACnetNotificationParametersOutOfRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersUnsignedRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersUnsignedRange.go
index 0680b3a..9ad1940 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersUnsignedRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetNotificationParametersUnsignedRange.go
@@ -174,6 +174,8 @@ func BACnetNotificationParametersUnsignedRangeParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetNotificationParametersUnsignedRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetOpeningTag.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetOpeningTag.go
index fe0e9ad..12b343e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetOpeningTag.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetOpeningTag.go
@@ -117,6 +117,8 @@ func BACnetOpeningTagParse(readBuffer utils.ReadBuffer, tagNumberArgument uint8,
if pullErr := readBuffer.PullContext("BACnetOpeningTag"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Validation
if !(bool((actualLength) == (6))) {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyReference.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyReference.go
index 53ee3d0..2f75857 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyReference.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyReference.go
@@ -110,6 +110,8 @@ func BACnetPropertyReferenceParse(readBuffer utils.ReadBuffer) (*BACnetPropertyR
if pullErr := readBuffer.PullContext("BACnetPropertyReference"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (propertyIdentifier)
if pullErr := readBuffer.PullContext("propertyIdentifier"); pullErr != nil {
@@ -127,7 +129,7 @@ func BACnetPropertyReferenceParse(readBuffer utils.ReadBuffer) (*BACnetPropertyR
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStates.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStates.go
index 5f1e9d5..3b939ef 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStates.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStates.go
@@ -143,6 +143,8 @@ func BACnetPropertyStatesParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*B
if pullErr := readBuffer.PullContext("BACnetPropertyStates"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -158,7 +160,7 @@ func BACnetPropertyStatesParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*B
}
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesAction.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesAction.go
index ec210c7..88240b6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesAction.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesAction.go
@@ -132,11 +132,13 @@ func BACnetPropertyStatesActionParse(readBuffer utils.ReadBuffer, tagNumber uint
if pullErr := readBuffer.PullContext("BACnetPropertyStatesAction"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (action) (Can be skipped, if a given expression evaluates to false)
var action *BACnetAction = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("action"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBinaryValue.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBinaryValue.go
index 4ed972b..34d36da 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBinaryValue.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBinaryValue.go
@@ -132,11 +132,13 @@ func BACnetPropertyStatesBinaryValueParse(readBuffer utils.ReadBuffer, tagNumber
if pullErr := readBuffer.PullContext("BACnetPropertyStatesBinaryValue"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (binaryValue) (Can be skipped, if a given expression evaluates to false)
var binaryValue *BACnetBinaryPV = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("binaryValue"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBoolean.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBoolean.go
index 0914e2a..d402a53 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBoolean.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyStatesBoolean.go
@@ -132,11 +132,13 @@ func BACnetPropertyStatesBooleanParse(readBuffer utils.ReadBuffer, tagNumber uin
if pullErr := readBuffer.PullContext("BACnetPropertyStatesBoolean"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (booleanValue) (Can be skipped, if a given expression evaluates to false)
var booleanValue *BACnetContextTagBoolean = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("booleanValue"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValue.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValue.go
index 367e355..239a9ca 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValue.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValue.go
@@ -137,6 +137,8 @@ func BACnetPropertyValueParse(readBuffer utils.ReadBuffer, objectType BACnetObje
if pullErr := readBuffer.PullContext("BACnetPropertyValue"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (propertyIdentifier)
if pullErr := readBuffer.PullContext("propertyIdentifier"); pullErr != nil {
@@ -154,7 +156,7 @@ func BACnetPropertyValueParse(readBuffer utils.ReadBuffer, objectType BACnetObje
// Optional Field (propertyArrayIndex) (Can be skipped, if a given expression evaluates to false)
var propertyArrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("propertyArrayIndex"); pullErr != nil {
return nil, pullErr
}
@@ -175,7 +177,7 @@ func BACnetPropertyValueParse(readBuffer utils.ReadBuffer, objectType BACnetObje
// Optional Field (propertyValue) (Can be skipped, if a given expression evaluates to false)
var propertyValue *BACnetConstructedDataElement = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("propertyValue"); pullErr != nil {
return nil, pullErr
}
@@ -196,7 +198,7 @@ func BACnetPropertyValueParse(readBuffer utils.ReadBuffer, objectType BACnetObje
// Optional Field (priority) (Can be skipped, if a given expression evaluates to false)
var priority *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("priority"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValues.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValues.go
index d3e236f..08d583f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValues.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetPropertyValues.go
@@ -125,6 +125,8 @@ func BACnetPropertyValuesParse(readBuffer utils.ReadBuffer, tagNumber uint8, obj
if pullErr := readBuffer.PullContext("BACnetPropertyValues"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (innerOpeningTag)
if pullErr := readBuffer.PullContext("innerOpeningTag"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetReadAccessSpecification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetReadAccessSpecification.go
index 7c710f0..9f3bab8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetReadAccessSpecification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetReadAccessSpecification.go
@@ -131,6 +131,8 @@ func BACnetReadAccessSpecificationParse(readBuffer utils.ReadBuffer) (*BACnetRea
if pullErr := readBuffer.PullContext("BACnetReadAccessSpecification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (objectIdentifier)
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetSegmentation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetSegmentation.go
index 3d7242f..efe530b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetSegmentation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetSegmentation.go
@@ -128,6 +128,8 @@ func BACnetSegmentationParse(readBuffer utils.ReadBuffer) (*BACnetSegmentation,
if pullErr := readBuffer.PullContext("BACnetSegmentation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (rawData)
if pullErr := readBuffer.PullContext("rawData"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAck.go
index 0bc809c..1efa640 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAck.go
@@ -109,6 +109,8 @@ func BACnetServiceAckParse(readBuffer utils.ReadBuffer) (*BACnetServiceAck, erro
if pullErr := readBuffer.PullContext("BACnetServiceAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (serviceChoice) (Used as input to a switch field)
serviceChoice, _serviceChoiceErr := readBuffer.ReadUint8("serviceChoice", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFile.go
index 284af2b..b681854 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFile.go
@@ -133,6 +133,8 @@ func BACnetServiceAckAtomicReadFileParse(readBuffer utils.ReadBuffer) (*BACnetSe
if pullErr := readBuffer.PullContext("BACnetServiceAckAtomicReadFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (endOfFile)
if pullErr := readBuffer.PullContext("endOfFile"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileRecord.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileRecord.go
index d35a8f4..f9310e5 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileRecord.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileRecord.go
@@ -153,6 +153,8 @@ func BACnetServiceAckAtomicReadFileRecordParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetServiceAckAtomicReadFileRecord"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileStartRecord)
if pullErr := readBuffer.PullContext("fileStartRecord"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStream.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStream.go
index e558eef..42f9103 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStream.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStream.go
@@ -137,6 +137,8 @@ func BACnetServiceAckAtomicReadFileStreamParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetServiceAckAtomicReadFileStream"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileStartPosition)
if pullErr := readBuffer.PullContext("fileStartPosition"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStreamOrRecord.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStreamOrRecord.go
index 0916431..43ab6fe 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStreamOrRecord.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileStreamOrRecord.go
@@ -140,9 +140,11 @@ func BACnetServiceAckAtomicReadFileStreamOrRecordParse(readBuffer utils.ReadBuff
if pullErr := readBuffer.PullContext("BACnetServiceAckAtomicReadFileStreamOrRecord"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicWriteFile.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicWriteFile.go
index 7c4ad80..614eb66 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicWriteFile.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckAtomicWriteFile.go
@@ -122,6 +122,8 @@ func BACnetServiceAckAtomicWriteFileParse(readBuffer utils.ReadBuffer) (*BACnetS
if pullErr := readBuffer.PullContext("BACnetServiceAckAtomicWriteFile"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (fileStartPosition)
if pullErr := readBuffer.PullContext("fileStartPosition"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckConfirmedPrivateTransfer.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckConfirmedPrivateTransfer.go
index 8bbf7c5..146c286 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckConfirmedPrivateTransfer.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckConfirmedPrivateTransfer.go
@@ -111,6 +111,8 @@ func BACnetServiceAckConfirmedPrivateTransferParse(readBuffer utils.ReadBuffer)
if pullErr := readBuffer.PullContext("BACnetServiceAckConfirmedPrivateTransfer"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckConfirmedPrivateTransfer"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckCreateObject.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckCreateObject.go
index 1dd5e3f..dbd34c3 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckCreateObject.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckCreateObject.go
@@ -111,6 +111,8 @@ func BACnetServiceAckCreateObjectParse(readBuffer utils.ReadBuffer) (*BACnetServ
if pullErr := readBuffer.PullContext("BACnetServiceAckCreateObject"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckCreateObject"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetAlarmSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetAlarmSummary.go
index 894dbe8..fcfc8a7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetAlarmSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetAlarmSummary.go
@@ -111,6 +111,8 @@ func BACnetServiceAckGetAlarmSummaryParse(readBuffer utils.ReadBuffer) (*BACnetS
if pullErr := readBuffer.PullContext("BACnetServiceAckGetAlarmSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckGetAlarmSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEnrollmentSummary.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEnrollmentSummary.go
index 8089ec4..8824cba 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEnrollmentSummary.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEnrollmentSummary.go
@@ -111,6 +111,8 @@ func BACnetServiceAckGetEnrollmentSummaryParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetServiceAckGetEnrollmentSummary"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckGetEnrollmentSummary"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEventInformation.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEventInformation.go
index 7c3486c..a8bf301 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEventInformation.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckGetEventInformation.go
@@ -111,6 +111,8 @@ func BACnetServiceAckGetEventInformationParse(readBuffer utils.ReadBuffer) (*BAC
if pullErr := readBuffer.PullContext("BACnetServiceAckGetEventInformation"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckGetEventInformation"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadProperty.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadProperty.go
index b718585..47c094b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadProperty.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadProperty.go
@@ -160,6 +160,8 @@ func BACnetServiceAckReadPropertyParse(readBuffer utils.ReadBuffer) (*BACnetServ
if pullErr := readBuffer.PullContext("BACnetServiceAckReadProperty"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (objectIdentifier)
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
@@ -190,7 +192,7 @@ func BACnetServiceAckReadPropertyParse(readBuffer utils.ReadBuffer) (*BACnetServ
// Optional Field (arrayIndex) (Can be skipped, if a given expression evaluates to false)
var arrayIndex *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("arrayIndex"); pullErr != nil {
return nil, pullErr
}
@@ -211,7 +213,7 @@ func BACnetServiceAckReadPropertyParse(readBuffer utils.ReadBuffer) (*BACnetServ
// Optional Field (values) (Can be skipped, if a given expression evaluates to false)
var values *BACnetConstructedData = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("values"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadPropertyMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadPropertyMultiple.go
index fc41dda..9b31ae7 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadPropertyMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadPropertyMultiple.go
@@ -111,6 +111,8 @@ func BACnetServiceAckReadPropertyMultipleParse(readBuffer utils.ReadBuffer) (*BA
if pullErr := readBuffer.PullContext("BACnetServiceAckReadPropertyMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckReadPropertyMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadRange.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadRange.go
index 6f33f85..be4f556 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadRange.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckReadRange.go
@@ -111,6 +111,8 @@ func BACnetServiceAckReadRangeParse(readBuffer utils.ReadBuffer) (*BACnetService
if pullErr := readBuffer.PullContext("BACnetServiceAckReadRange"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckReadRange"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedAuthenticate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedAuthenticate.go
index ad8c3ae..152cefe 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedAuthenticate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedAuthenticate.go
@@ -111,6 +111,8 @@ func BACnetServiceAckRemovedAuthenticateParse(readBuffer utils.ReadBuffer) (*BAC
if pullErr := readBuffer.PullContext("BACnetServiceAckRemovedAuthenticate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckRemovedAuthenticate"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedReadPropertyConditional.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedReadPropertyConditional.go
index a4f0e5f..57b1269 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedReadPropertyConditional.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckRemovedReadPropertyConditional.go
@@ -111,6 +111,8 @@ func BACnetServiceAckRemovedReadPropertyConditionalParse(readBuffer utils.ReadBu
if pullErr := readBuffer.PullContext("BACnetServiceAckRemovedReadPropertyConditional"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckRemovedReadPropertyConditional"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTData.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTData.go
index a7e1483..09289d6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTData.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTData.go
@@ -111,6 +111,8 @@ func BACnetServiceAckVTDataParse(readBuffer utils.ReadBuffer) (*BACnetServiceAck
if pullErr := readBuffer.PullContext("BACnetServiceAckVTData"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckVTData"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTOpen.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTOpen.go
index 9e20c83..2929536 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTOpen.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetServiceAckVTOpen.go
@@ -111,6 +111,8 @@ func BACnetServiceAckVTOpenParse(readBuffer utils.ReadBuffer) (*BACnetServiceAck
if pullErr := readBuffer.PullContext("BACnetServiceAckVTOpen"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetServiceAckVTOpen"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetStatusFlags.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetStatusFlags.go
index ef4d0b2..be7bb28 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetStatusFlags.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetStatusFlags.go
@@ -131,6 +131,8 @@ func BACnetStatusFlagsParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACn
if pullErr := readBuffer.PullContext("BACnetStatusFlags"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (rawBits)
if pullErr := readBuffer.PullContext("rawBits"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagHeader.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagHeader.go
index ee5879a..f7f59b3 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagHeader.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagHeader.go
@@ -248,6 +248,8 @@ func BACnetTagHeaderParse(readBuffer utils.ReadBuffer) (*BACnetTagHeader, error)
if pullErr := readBuffer.PullContext("BACnetTagHeader"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (tagNumber)
_tagNumber, _tagNumberErr := readBuffer.ReadUint8("tagNumber", 4)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBitString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBitString.go
index 0daf8e1..da3ef12 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBitString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBitString.go
@@ -124,6 +124,8 @@ func BACnetTagPayloadBitStringParse(readBuffer utils.ReadBuffer, actualLength ui
if pullErr := readBuffer.PullContext("BACnetTagPayloadBitString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (unusedBits)
_unusedBits, _unusedBitsErr := readBuffer.ReadUint8("unusedBits", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBoolean.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBoolean.go
index 670164e..0341541 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBoolean.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadBoolean.go
@@ -114,6 +114,8 @@ func BACnetTagPayloadBooleanParse(readBuffer utils.ReadBuffer, actualLength uint
if pullErr := readBuffer.PullContext("BACnetTagPayloadBoolean"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_value := bool((actualLength) == (1))
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadCharacterString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadCharacterString.go
index 79ef4a6..62796fb 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadCharacterString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadCharacterString.go
@@ -117,6 +117,8 @@ func BACnetTagPayloadCharacterStringParse(readBuffer utils.ReadBuffer, actualLen
if pullErr := readBuffer.PullContext("BACnetTagPayloadCharacterString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (encoding)
if pullErr := readBuffer.PullContext("encoding"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDate.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDate.go
index 255dc97..0bfd00b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDate.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDate.go
@@ -214,6 +214,8 @@ func BACnetTagPayloadDateParse(readBuffer utils.ReadBuffer) (*BACnetTagPayloadDa
if pullErr := readBuffer.PullContext("BACnetTagPayloadDate"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_wildcard := 0xFF
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDouble.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDouble.go
index ed0a863..7d5919a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDouble.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadDouble.go
@@ -97,6 +97,8 @@ func BACnetTagPayloadDoubleParse(readBuffer utils.ReadBuffer) (*BACnetTagPayload
if pullErr := readBuffer.PullContext("BACnetTagPayloadDouble"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (value)
_value, _valueErr := readBuffer.ReadFloat64("value", 64)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadEnumerated.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadEnumerated.go
index 644e3dc..5fbea08 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadEnumerated.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadEnumerated.go
@@ -109,6 +109,8 @@ func BACnetTagPayloadEnumeratedParse(readBuffer utils.ReadBuffer, actualLength u
if pullErr := readBuffer.PullContext("BACnetTagPayloadEnumerated"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Byte Array field (data)
numberOfBytesdata := int(actualLength)
data, _readArrayErr := readBuffer.ReadByteArray("data", numberOfBytesdata)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadObjectIdentifier.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadObjectIdentifier.go
index 8e2a63c..6a7436f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadObjectIdentifier.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadObjectIdentifier.go
@@ -124,6 +124,8 @@ func BACnetTagPayloadObjectIdentifierParse(readBuffer utils.ReadBuffer) (*BACnet
if pullErr := readBuffer.PullContext("BACnetTagPayloadObjectIdentifier"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Manual Field (objectType)
objectType, _objectTypeErr := ReadObjectType(readBuffer)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadOctetString.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadOctetString.go
index 6fa33ce..2be415f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadOctetString.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadOctetString.go
@@ -107,6 +107,8 @@ func BACnetTagPayloadOctetStringParse(readBuffer utils.ReadBuffer, actualLength
if pullErr := readBuffer.PullContext("BACnetTagPayloadOctetString"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_actualLengthInBit := uint16(actualLength) * uint16(uint16(8))
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadReal.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadReal.go
index 62a5d72..b3645e6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadReal.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadReal.go
@@ -97,6 +97,8 @@ func BACnetTagPayloadRealParse(readBuffer utils.ReadBuffer) (*BACnetTagPayloadRe
if pullErr := readBuffer.PullContext("BACnetTagPayloadReal"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (value)
_value, _valueErr := readBuffer.ReadFloat32("value", 32)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadSignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadSignedInteger.go
index 5107202..7b568a2 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadSignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadSignedInteger.go
@@ -413,6 +413,8 @@ func BACnetTagPayloadSignedIntegerParse(readBuffer utils.ReadBuffer, actualLengt
if pullErr := readBuffer.PullContext("BACnetTagPayloadSignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_isInt8 := bool((actualLength) == (1))
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadTime.go
index e2dce96..80f0360 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadTime.go
@@ -166,6 +166,8 @@ func BACnetTagPayloadTimeParse(readBuffer utils.ReadBuffer) (*BACnetTagPayloadTi
if pullErr := readBuffer.PullContext("BACnetTagPayloadTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_wildcard := 0xFF
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadUnsignedInteger.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadUnsignedInteger.go
index e7749fd..c943a1b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadUnsignedInteger.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTagPayloadUnsignedInteger.go
@@ -413,6 +413,8 @@ func BACnetTagPayloadUnsignedIntegerParse(readBuffer utils.ReadBuffer, actualLen
if pullErr := readBuffer.PullContext("BACnetTagPayloadUnsignedInteger"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Virtual field
_isUint8 := bool((actualLength) == (1))
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStamp.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStamp.go
index 686bd31..36aa016 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStamp.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStamp.go
@@ -143,6 +143,8 @@ func BACnetTimeStampParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACnet
if pullErr := readBuffer.PullContext("BACnetTimeStamp"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (openingTag)
if pullErr := readBuffer.PullContext("openingTag"); pullErr != nil {
@@ -158,7 +160,7 @@ func BACnetTimeStampParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BACnet
}
// Peek Field (peekedTagHeader)
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("peekedTagHeader"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampDateTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampDateTime.go
index 92bfaf8..3303e7e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampDateTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampDateTime.go
@@ -129,6 +129,8 @@ func BACnetTimeStampDateTimeParse(readBuffer utils.ReadBuffer, tagNumber uint8)
if pullErr := readBuffer.PullContext("BACnetTimeStampDateTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (dateTimeValue)
if pullErr := readBuffer.PullContext("dateTimeValue"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampSequence.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampSequence.go
index 253b1a5..13f14ea 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampSequence.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampSequence.go
@@ -129,6 +129,8 @@ func BACnetTimeStampSequenceParse(readBuffer utils.ReadBuffer, tagNumber uint8)
if pullErr := readBuffer.PullContext("BACnetTimeStampSequence"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (sequenceNumber)
if pullErr := readBuffer.PullContext("sequenceNumber"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampTime.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampTime.go
index 09c5856..7c1b3a9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampTime.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetTimeStampTime.go
@@ -129,6 +129,8 @@ func BACnetTimeStampTimeParse(readBuffer utils.ReadBuffer, tagNumber uint8) (*BA
if pullErr := readBuffer.PullContext("BACnetTimeStampTime"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (timeValue)
if pullErr := readBuffer.PullContext("timeValue"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequest.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequest.go
index 6f63126..65a5536 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequest.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequest.go
@@ -112,6 +112,8 @@ func BACnetUnconfirmedServiceRequestParse(readBuffer utils.ReadBuffer, len uint1
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequest"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (serviceChoice) (Used as input to a switch field)
serviceChoice, _serviceChoiceErr := readBuffer.ReadUint8("serviceChoice", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIAm.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIAm.go
index bc10611..1e2be22 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIAm.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIAm.go
@@ -159,6 +159,8 @@ func BACnetUnconfirmedServiceRequestIAmParse(readBuffer utils.ReadBuffer, len ui
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestIAm"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (deviceIdentifier)
if pullErr := readBuffer.PullContext("deviceIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIHave.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIHave.go
index c5698b3..b9f17a8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIHave.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestIHave.go
@@ -148,6 +148,8 @@ func BACnetUnconfirmedServiceRequestIHaveParse(readBuffer utils.ReadBuffer, len
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestIHave"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (deviceIdentifier)
if pullErr := readBuffer.PullContext("deviceIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestTimeSynchronization.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestTimeSynchronization.go
index 4cc302c..12410e6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestTimeSynchronization.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestTimeSynchronization.go
@@ -137,6 +137,8 @@ func BACnetUnconfirmedServiceRequestTimeSynchronizationParse(readBuffer utils.Re
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestTimeSynchronization"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (synchronizedDate)
if pullErr := readBuffer.PullContext("synchronizedDate"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUTCTimeSynchronization.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUTCTimeSynchronization.go
index 14abd1f..90d31bc 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUTCTimeSynchronization.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUTCTimeSynchronization.go
@@ -115,6 +115,8 @@ func BACnetUnconfirmedServiceRequestUTCTimeSynchronizationParse(readBuffer utils
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUTCTimeSynchronization"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetUnconfirmedServiceRequestUTCTimeSynchronization"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotification.go
index fb5bc8e..bbbe093 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotification.go
@@ -170,6 +170,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationParse(readBuffer u
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedCOVNotification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (subscriberProcessIdentifier)
if pullErr := readBuffer.PullContext("subscriberProcessIdentifier"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple.go
index e2e50e0..67666b0 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple.go
@@ -115,6 +115,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultipleParse(read
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetUnconfirmedServiceRequestUnconfirmedCOVNotificationMultiple"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedEventNotification.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedEventNotification.go
index d3a1576..452bf38 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedEventNotification.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedEventNotification.go
@@ -115,6 +115,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedEventNotificationParse(readBuffer
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedEventNotification"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetUnconfirmedServiceRequestUnconfirmedEventNotification"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransfer.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransfer.go
index 47717bc..cead9c6 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransfer.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransfer.go
@@ -151,6 +151,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransferParse(readBuffer u
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransfer"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (vendorId)
if pullErr := readBuffer.PullContext("vendorId"); pullErr != nil {
@@ -181,7 +183,7 @@ func BACnetUnconfirmedServiceRequestUnconfirmedPrivateTransferParse(readBuffer u
// Optional Field (serviceParameters) (Can be skipped, if a given expression evaluates to false)
var serviceParameters *BACnetPropertyValues = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("serviceParameters"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedTextMessage.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedTextMessage.go
index a7b7a20..31aa98d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedTextMessage.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedTextMessage.go
@@ -115,6 +115,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedTextMessageParse(readBuffer utils
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedTextMessage"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetUnconfirmedServiceRequestUnconfirmedTextMessage"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedUnknown.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedUnknown.go
index 3a1ef21..e953ccb 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedUnknown.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestUnconfirmedUnknown.go
@@ -128,6 +128,8 @@ func BACnetUnconfirmedServiceRequestUnconfirmedUnknownParse(readBuffer utils.Rea
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestUnconfirmedUnknown"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Byte Array field (unknownBytes)
numberOfBytesunknownBytes := int(utils.InlineIf(bool(bool((len) > (0))), func() interface{} { return uint16(uint16(uint16(len) - uint16(uint16(1)))) }, func() interface{} { return uint16(uint16(0)) }).(uint16))
unknownBytes, _readArrayErr := readBuffer.ReadByteArray("unknownBytes", numberOfBytesunknownBytes)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoHas.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoHas.go
index 66d8bb0..bd7f223 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoHas.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoHas.go
@@ -168,11 +168,13 @@ func BACnetUnconfirmedServiceRequestWhoHasParse(readBuffer utils.ReadBuffer, len
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestWhoHas"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (deviceInstanceRangeLowLimit) (Can be skipped, if a given expression evaluates to false)
var deviceInstanceRangeLowLimit *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceInstanceRangeLowLimit"); pullErr != nil {
return nil, pullErr
}
@@ -193,7 +195,7 @@ func BACnetUnconfirmedServiceRequestWhoHasParse(readBuffer utils.ReadBuffer, len
// Optional Field (deviceInstanceRangeHighLimit) (Can be skipped, if a given expression evaluates to false)
var deviceInstanceRangeHighLimit *BACnetContextTagUnsignedInteger = nil
if bool((deviceInstanceRangeLowLimit) != (nil)) {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceInstanceRangeHighLimit"); pullErr != nil {
return nil, pullErr
}
@@ -214,7 +216,7 @@ func BACnetUnconfirmedServiceRequestWhoHasParse(readBuffer utils.ReadBuffer, len
// Optional Field (objectIdentifier) (Can be skipped, if a given expression evaluates to false)
var objectIdentifier *BACnetContextTagObjectIdentifier = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("objectIdentifier"); pullErr != nil {
return nil, pullErr
}
@@ -235,7 +237,7 @@ func BACnetUnconfirmedServiceRequestWhoHasParse(readBuffer utils.ReadBuffer, len
// Optional Field (objectName) (Can be skipped, if a given expression evaluates to false)
var objectName *BACnetContextTagOctetString = nil
if bool((objectIdentifier) == (nil)) {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("objectName"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoIs.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoIs.go
index ff708a0..5f7e0a4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoIs.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWhoIs.go
@@ -142,11 +142,13 @@ func BACnetUnconfirmedServiceRequestWhoIsParse(readBuffer utils.ReadBuffer, len
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestWhoIs"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Optional Field (deviceInstanceRangeLowLimit) (Can be skipped, if a given expression evaluates to false)
var deviceInstanceRangeLowLimit *BACnetContextTagUnsignedInteger = nil
{
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceInstanceRangeLowLimit"); pullErr != nil {
return nil, pullErr
}
@@ -167,7 +169,7 @@ func BACnetUnconfirmedServiceRequestWhoIsParse(readBuffer utils.ReadBuffer, len
// Optional Field (deviceInstanceRangeHighLimit) (Can be skipped, if a given expression evaluates to false)
var deviceInstanceRangeHighLimit *BACnetContextTagUnsignedInteger = nil
if bool((deviceInstanceRangeLowLimit) != (nil)) {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("deviceInstanceRangeHighLimit"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWriteGroup.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWriteGroup.go
index e270b17..b908f2c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWriteGroup.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BACnetUnconfirmedServiceRequestWriteGroup.go
@@ -115,6 +115,8 @@ func BACnetUnconfirmedServiceRequestWriteGroupParse(readBuffer utils.ReadBuffer,
if pullErr := readBuffer.PullContext("BACnetUnconfirmedServiceRequestWriteGroup"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BACnetUnconfirmedServiceRequestWriteGroup"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLC.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLC.go
index 96b3b3b..4749696 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLC.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLC.go
@@ -126,6 +126,8 @@ func BVLCParse(readBuffer utils.ReadBuffer) (*BVLC, error) {
if pullErr := readBuffer.PullContext("BVLC"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Const Field (bacnetType)
bacnetType, _bacnetTypeErr := readBuffer.ReadUint8("bacnetType", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDeleteForeignDeviceTableEntry.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDeleteForeignDeviceTableEntry.go
index 82f0efb..6d13daf 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDeleteForeignDeviceTableEntry.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDeleteForeignDeviceTableEntry.go
@@ -111,6 +111,8 @@ func BVLCDeleteForeignDeviceTableEntryParse(readBuffer utils.ReadBuffer) (*BVLC,
if pullErr := readBuffer.PullContext("BVLCDeleteForeignDeviceTableEntry"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCDeleteForeignDeviceTableEntry"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDistributeBroadcastToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDistributeBroadcastToNetwork.go
index c4024d5..cf796f4 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDistributeBroadcastToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCDistributeBroadcastToNetwork.go
@@ -125,6 +125,8 @@ func BVLCDistributeBroadcastToNetworkParse(readBuffer utils.ReadBuffer, bvlcPayl
if pullErr := readBuffer.PullContext("BVLCDistributeBroadcastToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (npdu)
if pullErr := readBuffer.PullContext("npdu"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCForwardedNPDU.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCForwardedNPDU.go
index b36f4bb..75e6159 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCForwardedNPDU.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCForwardedNPDU.go
@@ -149,6 +149,8 @@ func BVLCForwardedNPDUParse(readBuffer utils.ReadBuffer, bvlcPayloadLength uint1
if pullErr := readBuffer.PullContext("BVLCForwardedNPDU"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (ip)
if pullErr := readBuffer.PullContext("ip", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalBroadcastNPDU.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalBroadcastNPDU.go
index af91f5a..5ac1dd1 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalBroadcastNPDU.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalBroadcastNPDU.go
@@ -125,6 +125,8 @@ func BVLCOriginalBroadcastNPDUParse(readBuffer utils.ReadBuffer, bvlcPayloadLeng
if pullErr := readBuffer.PullContext("BVLCOriginalBroadcastNPDU"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (npdu)
if pullErr := readBuffer.PullContext("npdu"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalUnicastNPDU.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalUnicastNPDU.go
index f4a563b..eec5e48 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalUnicastNPDU.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCOriginalUnicastNPDU.go
@@ -125,6 +125,8 @@ func BVLCOriginalUnicastNPDUParse(readBuffer utils.ReadBuffer, bvlcPayloadLength
if pullErr := readBuffer.PullContext("BVLCOriginalUnicastNPDU"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (npdu)
if pullErr := readBuffer.PullContext("npdu"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTable.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTable.go
index 6b5788b..2916d3d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTable.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTable.go
@@ -111,6 +111,8 @@ func BVLCReadBroadcastDistributionTableParse(readBuffer utils.ReadBuffer) (*BVLC
if pullErr := readBuffer.PullContext("BVLCReadBroadcastDistributionTable"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCReadBroadcastDistributionTable"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTableAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTableAck.go
index 936e2ae..c885606 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTableAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadBroadcastDistributionTableAck.go
@@ -111,6 +111,8 @@ func BVLCReadBroadcastDistributionTableAckParse(readBuffer utils.ReadBuffer) (*B
if pullErr := readBuffer.PullContext("BVLCReadBroadcastDistributionTableAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCReadBroadcastDistributionTableAck"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTable.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTable.go
index 860c49a..fe0598e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTable.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTable.go
@@ -111,6 +111,8 @@ func BVLCReadForeignDeviceTableParse(readBuffer utils.ReadBuffer) (*BVLC, error)
if pullErr := readBuffer.PullContext("BVLCReadForeignDeviceTable"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCReadForeignDeviceTable"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTableAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTableAck.go
index ecdee56..88e79c8 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTableAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCReadForeignDeviceTableAck.go
@@ -111,6 +111,8 @@ func BVLCReadForeignDeviceTableAckParse(readBuffer utils.ReadBuffer) (*BVLC, err
if pullErr := readBuffer.PullContext("BVLCReadForeignDeviceTableAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCReadForeignDeviceTableAck"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCRegisterForeignDevice.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCRegisterForeignDevice.go
index e30fbcd..13c7732 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCRegisterForeignDevice.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCRegisterForeignDevice.go
@@ -122,6 +122,8 @@ func BVLCRegisterForeignDeviceParse(readBuffer utils.ReadBuffer) (*BVLC, error)
if pullErr := readBuffer.PullContext("BVLCRegisterForeignDevice"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (ttl)
_ttl, _ttlErr := readBuffer.ReadUint16("ttl", 16)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCResult.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCResult.go
index 4de740d..5700d43 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCResult.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCResult.go
@@ -122,6 +122,8 @@ func BVLCResultParse(readBuffer utils.ReadBuffer) (*BVLC, error) {
if pullErr := readBuffer.PullContext("BVLCResult"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (code)
if pullErr := readBuffer.PullContext("code"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCSecureBVLL.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCSecureBVLL.go
index b94743d..915207f 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCSecureBVLL.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCSecureBVLL.go
@@ -111,6 +111,8 @@ func BVLCSecureBVLLParse(readBuffer utils.ReadBuffer) (*BVLC, error) {
if pullErr := readBuffer.PullContext("BVLCSecureBVLL"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
if closeErr := readBuffer.CloseContext("BVLCSecureBVLL"); closeErr != nil {
return nil, closeErr
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTable.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTable.go
index 44e8aae..2334417 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTable.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTable.go
@@ -129,6 +129,8 @@ func BVLCWriteBroadcastDistributionTableParse(readBuffer utils.ReadBuffer, bvlcP
if pullErr := readBuffer.PullContext("BVLCWriteBroadcastDistributionTable"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (table)
if pullErr := readBuffer.PullContext("table", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTableEntry.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTableEntry.go
index 3f7993d..c2e226d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTableEntry.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/BVLCWriteBroadcastDistributionTableEntry.go
@@ -121,6 +121,8 @@ func BVLCWriteBroadcastDistributionTableEntryParse(readBuffer utils.ReadBuffer)
if pullErr := readBuffer.PullContext("BVLCWriteBroadcastDistributionTableEntry"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (ip)
if pullErr := readBuffer.PullContext("ip", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLM.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLM.go
index 9ea8607..2c70a93 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLM.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLM.go
@@ -123,6 +123,8 @@ func NLMParse(readBuffer utils.ReadBuffer, apduLength uint16) (*NLM, error) {
if pullErr := readBuffer.PullContext("NLM"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Discriminator Field (messageType) (Used as input to a switch field)
messageType, _messageTypeErr := readBuffer.ReadUint8("messageType", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMDisconnectConnectionToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMDisconnectConnectionToNetwork.go
index 412eac9..13d4eb9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMDisconnectConnectionToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMDisconnectConnectionToNetwork.go
@@ -127,6 +127,8 @@ func NLMDisconnectConnectionToNetworkParse(readBuffer utils.ReadBuffer, apduLeng
if pullErr := readBuffer.PullContext("NLMDisconnectConnectionToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (destinationNetworkAddress)
_destinationNetworkAddress, _destinationNetworkAddressErr := readBuffer.ReadUint16("destinationNetworkAddress", 16)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMEstablishConnectionToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMEstablishConnectionToNetwork.go
index 3b66c02..4956e6e 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMEstablishConnectionToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMEstablishConnectionToNetwork.go
@@ -138,6 +138,8 @@ func NLMEstablishConnectionToNetworkParse(readBuffer utils.ReadBuffer, apduLengt
if pullErr := readBuffer.PullContext("NLMEstablishConnectionToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (destinationNetworkAddress)
_destinationNetworkAddress, _destinationNetworkAddressErr := readBuffer.ReadUint16("destinationNetworkAddress", 16)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMIAmRouterToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMIAmRouterToNetwork.go
index bd0300b..0767a25 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMIAmRouterToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMIAmRouterToNetwork.go
@@ -129,6 +129,8 @@ func NLMIAmRouterToNetworkParse(readBuffer utils.ReadBuffer, apduLength uint16,
if pullErr := readBuffer.PullContext("NLMIAmRouterToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (destinationNetworkAddress)
if pullErr := readBuffer.PullContext("destinationNetworkAddress", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMICouldBeRouterToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMICouldBeRouterToNetwork.go
index eac6cd7..38fc634 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMICouldBeRouterToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMICouldBeRouterToNetwork.go
@@ -138,6 +138,8 @@ func NLMICouldBeRouterToNetworkParse(readBuffer utils.ReadBuffer, apduLength uin
if pullErr := readBuffer.PullContext("NLMICouldBeRouterToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (destinationNetworkAddress)
_destinationNetworkAddress, _destinationNetworkAddressErr := readBuffer.ReadUint16("destinationNetworkAddress", 16)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTable.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTable.go
index 950eb78..ebfa58c 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTable.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTable.go
@@ -143,6 +143,8 @@ func NLMInitalizeRoutingTableParse(readBuffer utils.ReadBuffer, apduLength uint1
if pullErr := readBuffer.PullContext("NLMInitalizeRoutingTable"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (numberOfPorts)
_numberOfPorts, _numberOfPortsErr := readBuffer.ReadUint8("numberOfPorts", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTableAck.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTableAck.go
index b43e8d3..6e0d603 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTableAck.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTableAck.go
@@ -143,6 +143,8 @@ func NLMInitalizeRoutingTableAckParse(readBuffer utils.ReadBuffer, apduLength ui
if pullErr := readBuffer.PullContext("NLMInitalizeRoutingTableAck"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (numberOfPorts)
_numberOfPorts, _numberOfPortsErr := readBuffer.ReadUint8("numberOfPorts", 8)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTablePortMapping.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTablePortMapping.go
index b38bf31..9dc311a 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTablePortMapping.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMInitalizeRoutingTablePortMapping.go
@@ -129,6 +129,8 @@ func NLMInitalizeRoutingTablePortMappingParse(readBuffer utils.ReadBuffer) (*NLM
if pullErr := readBuffer.PullContext("NLMInitalizeRoutingTablePortMapping"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (destinationNetworkAddress)
_destinationNetworkAddress, _destinationNetworkAddressErr := readBuffer.ReadUint16("destinationNetworkAddress", 16)
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRejectRouterToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRejectRouterToNetwork.go
index dd4df62..76dd25b 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRejectRouterToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRejectRouterToNetwork.go
@@ -138,6 +138,8 @@ func NLMRejectRouterToNetworkParse(readBuffer utils.ReadBuffer, apduLength uint1
if pullErr := readBuffer.PullContext("NLMRejectRouterToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (rejectReason)
if pullErr := readBuffer.PullContext("rejectReason"); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterAvailableToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterAvailableToNetwork.go
index c37e0f7..4986572 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterAvailableToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterAvailableToNetwork.go
@@ -129,6 +129,8 @@ func NLMRouterAvailableToNetworkParse(readBuffer utils.ReadBuffer, apduLength ui
if pullErr := readBuffer.PullContext("NLMRouterAvailableToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (destinationNetworkAddress)
if pullErr := readBuffer.PullContext("destinationNetworkAddress", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterBusyToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterBusyToNetwork.go
index 0ce1418..52dc874 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterBusyToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMRouterBusyToNetwork.go
@@ -129,6 +129,8 @@ func NLMRouterBusyToNetworkParse(readBuffer utils.ReadBuffer, apduLength uint16,
if pullErr := readBuffer.PullContext("NLMRouterBusyToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (destinationNetworkAddress)
if pullErr := readBuffer.PullContext("destinationNetworkAddress", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMWhoIsRouterToNetwork.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMWhoIsRouterToNetwork.go
index b66fe2a..3126563 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMWhoIsRouterToNetwork.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NLMWhoIsRouterToNetwork.go
@@ -129,6 +129,8 @@ func NLMWhoIsRouterToNetworkParse(readBuffer utils.ReadBuffer, apduLength uint16
if pullErr := readBuffer.PullContext("NLMWhoIsRouterToNetwork"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Array field (destinationNetworkAddress)
if pullErr := readBuffer.PullContext("destinationNetworkAddress", utils.WithRenderAsList(true)); pullErr != nil {
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDU.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDU.go
index 5594a37..a93796d 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDU.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDU.go
@@ -284,6 +284,8 @@ func NPDUParse(readBuffer utils.ReadBuffer, npduLength uint16) (*NPDU, error) {
if pullErr := readBuffer.PullContext("NPDU"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (protocolVersionNumber)
_protocolVersionNumber, _protocolVersionNumberErr := readBuffer.ReadUint8("protocolVersionNumber", 8)
@@ -411,7 +413,7 @@ func NPDUParse(readBuffer utils.ReadBuffer, npduLength uint16) (*NPDU, error) {
// Optional Field (nlm) (Can be skipped, if a given expression evaluates to false)
var nlm *NLM = nil
if control.GetMessageTypeFieldPresent() {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("nlm"); pullErr != nil {
return nil, pullErr
}
@@ -432,7 +434,7 @@ func NPDUParse(readBuffer utils.ReadBuffer, npduLength uint16) (*NPDU, error) {
// Optional Field (apdu) (Can be skipped, if a given expression evaluates to false)
var apdu *APDU = nil
if !(control.GetMessageTypeFieldPresent()) {
- currentPos := readBuffer.GetPos()
+ currentPos = readBuffer.GetPos()
if pullErr := readBuffer.PullContext("apdu"); pullErr != nil {
return nil, pullErr
}
diff --git a/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDUControl.go b/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDUControl.go
index f9f5b6e..cf352a9 100644
--- a/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDUControl.go
+++ b/plc4go/internal/plc4go/bacnetip/readwrite/model/NPDUControl.go
@@ -144,6 +144,8 @@ func NPDUControlParse(readBuffer utils.ReadBuffer) (*NPDUControl, error) {
if pullErr := readBuffer.PullContext("NPDUControl"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
// Simple Field (messageTypeFieldPresent)
_messageTypeFieldPresent, _messageTypeFieldPresentErr := readBuffer.ReadBit("messageTypeFieldPresent")
diff --git a/plc4go/internal/plc4go/cbus/readwrite/ParserHelper.go b/plc4go/internal/plc4go/cbus/readwrite/ParserHelper.go
new file mode 100644
index 0000000..73481c7
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/ParserHelper.go
@@ -0,0 +1,119 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package readwrite
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/cbus/readwrite/model"
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+type CbusParserHelper struct {
+}
+
+func (m CbusParserHelper) Parse(typeName string, arguments []string, io utils.ReadBuffer) (interface{}, error) {
+ switch typeName {
+ case "CALData":
+ return model.CALDataParse(io)
+ case "Checksum":
+ return model.ChecksumParse(io)
+ case "BridgeAddress":
+ return model.BridgeAddressParse(io)
+ case "CALReply":
+ return model.CALReplyParse(io)
+ case "MonitoredSAL":
+ return model.MonitoredSALParse(io)
+ case "ExclamationMark":
+ return model.ExclamationMarkParse(io)
+ case "ParameterChange":
+ return model.ParameterChangeParse(io)
+ case "StatusByte":
+ return model.StatusByteParse(io)
+ case "ReplyNetwork":
+ return model.ReplyNetworkParse(io)
+ case "NetworkRoute":
+ return model.NetworkRouteParse(io)
+ case "ExtendedStatusHeader":
+ return model.ExtendedStatusHeaderParse(io)
+ case "CommandHeader":
+ return model.CommandHeaderParse(io)
+ case "Confirmation":
+ return model.ConfirmationParse(io)
+ case "CBusPointToMultiPointCommand":
+ srchk, err := utils.StrToBool(arguments[0])
+ if err != nil {
+ return nil, errors.Wrap(err, "Error parsing")
+ }
+ return model.CBusPointToMultiPointCommandParse(io, srchk)
+ case "Application":
+ return model.ApplicationParse(io)
+ case "StatusHeader":
+ return model.StatusHeaderParse(io)
+ case "StatusRequest":
+ return model.StatusRequestParse(io)
+ case "NetworkNumber":
+ return model.NetworkNumberParse(io)
+ case "StandardFormatStatusReply":
+ return model.StandardFormatStatusReplyParse(io)
+ case "CBusOptions":
+ return model.CBusOptionsParse(io)
+ case "SALData":
+ return model.SALDataParse(io)
+ case "CBusCommand":
+ srchk, err := utils.StrToBool(arguments[0])
+ if err != nil {
+ return nil, errors.Wrap(err, "Error parsing")
+ }
+ return model.CBusCommandParse(io, srchk)
+ case "UnitAddress":
+ return model.UnitAddressParse(io)
+ case "NetworkProtocolControlInformation":
+ return model.NetworkProtocolControlInformationParse(io)
+ case "ExtendedFormatStatusReply":
+ return model.ExtendedFormatStatusReplyParse(io)
+ case "CBusHeader":
+ return model.CBusHeaderParse(io)
+ case "CBusPointToPointCommand":
+ srchk, err := utils.StrToBool(arguments[0])
+ if err != nil {
+ return nil, errors.Wrap(err, "Error parsing")
+ }
+ return model.CBusPointToPointCommandParse(io, srchk)
+ case "BridgeCount":
+ return model.BridgeCountParse(io)
+ case "Alpha":
+ return model.AlphaParse(io)
+ case "PowerUp":
+ return model.PowerUpParse(io)
+ case "CBusPointToPointToMultipointCommand":
+ srchk, err := utils.StrToBool(arguments[0])
+ if err != nil {
+ return nil, errors.Wrap(err, "Error parsing")
+ }
+ return model.CBusPointToPointToMultipointCommandParse(io, srchk)
+ case "Reply":
+ return model.ReplyParse(io)
+ case "SerialInterfaceAddress":
+ return model.SerialInterfaceAddressParse(io)
+ }
+ return nil, errors.Errorf("Unsupported type %s", typeName)
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/XmlParserHelper.go b/plc4go/internal/plc4go/cbus/readwrite/XmlParserHelper.go
new file mode 100644
index 0000000..834a764
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/XmlParserHelper.go
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package readwrite
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/cbus/readwrite/model"
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+ "strconv"
+ "strings"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+type CbusXmlParserHelper struct {
+}
+
+// Temporary imports to silent compiler warnings (TODO: migrate from static to emission based imports)
+func init() {
+ _ = strconv.ParseUint
+ _ = strconv.ParseInt
+ _ = strings.Join
+ _ = utils.Dump
+}
+
+func (m CbusXmlParserHelper) Parse(typeName string, xmlString string, parserArguments ...string) (interface{}, error) {
+ switch typeName {
+ case "CALData":
+ return model.CALDataParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "Checksum":
+ return model.ChecksumParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "BridgeAddress":
+ return model.BridgeAddressParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CALReply":
+ return model.CALReplyParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "MonitoredSAL":
+ return model.MonitoredSALParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "ExclamationMark":
+ return model.ExclamationMarkParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "ParameterChange":
+ return model.ParameterChangeParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "StatusByte":
+ return model.StatusByteParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "ReplyNetwork":
+ return model.ReplyNetworkParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "NetworkRoute":
+ return model.NetworkRouteParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "ExtendedStatusHeader":
+ return model.ExtendedStatusHeaderParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CommandHeader":
+ return model.CommandHeaderParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "Confirmation":
+ return model.ConfirmationParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusPointToMultiPointCommand":
+ srchk := parserArguments[0] == "true"
+ return model.CBusPointToMultiPointCommandParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)), srchk)
+ case "Application":
+ return model.ApplicationParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "StatusHeader":
+ return model.StatusHeaderParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "StatusRequest":
+ return model.StatusRequestParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "NetworkNumber":
+ return model.NetworkNumberParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "StandardFormatStatusReply":
+ return model.StandardFormatStatusReplyParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusOptions":
+ return model.CBusOptionsParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "SALData":
+ return model.SALDataParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusCommand":
+ srchk := parserArguments[0] == "true"
+ return model.CBusCommandParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)), srchk)
+ case "UnitAddress":
+ return model.UnitAddressParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "NetworkProtocolControlInformation":
+ return model.NetworkProtocolControlInformationParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "ExtendedFormatStatusReply":
+ return model.ExtendedFormatStatusReplyParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusHeader":
+ return model.CBusHeaderParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusPointToPointCommand":
+ srchk := parserArguments[0] == "true"
+ return model.CBusPointToPointCommandParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)), srchk)
+ case "BridgeCount":
+ return model.BridgeCountParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "Alpha":
+ return model.AlphaParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "PowerUp":
+ return model.PowerUpParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "CBusPointToPointToMultipointCommand":
+ srchk := parserArguments[0] == "true"
+ return model.CBusPointToPointToMultipointCommandParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)), srchk)
+ case "Reply":
+ return model.ReplyParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ case "SerialInterfaceAddress":
+ return model.SerialInterfaceAddressParse(utils.NewXmlReadBuffer(strings.NewReader(xmlString)))
+ }
+ return nil, errors.Errorf("Unsupported type %s", typeName)
+}
diff --git a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go b/plc4go/internal/plc4go/cbus/readwrite/model/Alpha.go
similarity index 56%
copy from plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/Alpha.go
index e6894f7..5d65e44 100644
--- a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/Alpha.go
@@ -27,14 +27,14 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type Dummy struct {
- Dummy uint16
+type Alpha struct {
+ Character byte
}
// The corresponding interface
-type IDummy interface {
- // GetDummy returns Dummy
- GetDummy() uint16
+type IAlpha interface {
+ // GetCharacter returns Character
+ GetCharacter() byte
// GetLengthInBytes returns the length in bytes
GetLengthInBytes() uint16
// GetLengthInBits returns the length in bits
@@ -46,25 +46,25 @@ type IDummy interface {
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
-func (m *Dummy) GetDummy() uint16 {
- return m.Dummy
+func (m *Alpha) GetCharacter() byte {
+ return m.Character
}
///////////////////////////////////////////////////////////
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewDummy factory function for Dummy
-func NewDummy(dummy uint16) *Dummy {
- return &Dummy{Dummy: dummy}
+// NewAlpha factory function for Alpha
+func NewAlpha(character byte) *Alpha {
+ return &Alpha{Character: character}
}
-func CastDummy(structType interface{}) *Dummy {
- castFunc := func(typ interface{}) *Dummy {
- if casted, ok := typ.(Dummy); ok {
+func CastAlpha(structType interface{}) *Alpha {
+ castFunc := func(typ interface{}) *Alpha {
+ if casted, ok := typ.(Alpha); ok {
return &casted
}
- if casted, ok := typ.(*Dummy); ok {
+ if casted, ok := typ.(*Alpha); ok {
return casted
}
return nil
@@ -72,66 +72,68 @@ func CastDummy(structType interface{}) *Dummy {
return castFunc(structType)
}
-func (m *Dummy) GetTypeName() string {
- return "Dummy"
+func (m *Alpha) GetTypeName() string {
+ return "Alpha"
}
-func (m *Dummy) GetLengthInBits() uint16 {
+func (m *Alpha) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *Dummy) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *Alpha) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(0)
- // Simple field (dummy)
- lengthInBits += 16
+ // Simple field (character)
+ lengthInBits += 8
return lengthInBits
}
-func (m *Dummy) GetLengthInBytes() uint16 {
+func (m *Alpha) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func DummyParse(readBuffer utils.ReadBuffer) (*Dummy, error) {
- if pullErr := readBuffer.PullContext("Dummy"); pullErr != nil {
+func AlphaParse(readBuffer utils.ReadBuffer) (*Alpha, error) {
+ if pullErr := readBuffer.PullContext("Alpha"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
- // Simple Field (dummy)
- _dummy, _dummyErr := readBuffer.ReadUint16("dummy", 16)
- if _dummyErr != nil {
- return nil, errors.Wrap(_dummyErr, "Error parsing 'dummy' field")
+ // Simple Field (character)
+ _character, _characterErr := readBuffer.ReadByte("character")
+ if _characterErr != nil {
+ return nil, errors.Wrap(_characterErr, "Error parsing 'character' field")
}
- dummy := _dummy
+ character := _character
- if closeErr := readBuffer.CloseContext("Dummy"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("Alpha"); closeErr != nil {
return nil, closeErr
}
// Create the instance
- return NewDummy(dummy), nil
+ return NewAlpha(character), nil
}
-func (m *Dummy) Serialize(writeBuffer utils.WriteBuffer) error {
- if pushErr := writeBuffer.PushContext("Dummy"); pushErr != nil {
+func (m *Alpha) Serialize(writeBuffer utils.WriteBuffer) error {
+ if pushErr := writeBuffer.PushContext("Alpha"); pushErr != nil {
return pushErr
}
- // Simple Field (dummy)
- dummy := uint16(m.Dummy)
- _dummyErr := writeBuffer.WriteUint16("dummy", 16, (dummy))
- if _dummyErr != nil {
- return errors.Wrap(_dummyErr, "Error serializing 'dummy' field")
+ // Simple Field (character)
+ character := byte(m.Character)
+ _characterErr := writeBuffer.WriteByte("character", (character))
+ if _characterErr != nil {
+ return errors.Wrap(_characterErr, "Error serializing 'character' field")
}
- if popErr := writeBuffer.PopContext("Dummy"); popErr != nil {
+ if popErr := writeBuffer.PopContext("Alpha"); popErr != nil {
return popErr
}
return nil
}
-func (m *Dummy) String() string {
+func (m *Alpha) String() string {
if m == nil {
return "<nil>"
}
diff --git a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go b/plc4go/internal/plc4go/cbus/readwrite/model/Application.go
similarity index 56%
copy from plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/Application.go
index e6894f7..342515f 100644
--- a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/Application.go
@@ -27,14 +27,14 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type Dummy struct {
- Dummy uint16
+type Application struct {
+ Id byte
}
// The corresponding interface
-type IDummy interface {
- // GetDummy returns Dummy
- GetDummy() uint16
+type IApplication interface {
+ // GetId returns Id
+ GetId() byte
// GetLengthInBytes returns the length in bytes
GetLengthInBytes() uint16
// GetLengthInBits returns the length in bits
@@ -46,25 +46,25 @@ type IDummy interface {
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
-func (m *Dummy) GetDummy() uint16 {
- return m.Dummy
+func (m *Application) GetId() byte {
+ return m.Id
}
///////////////////////////////////////////////////////////
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewDummy factory function for Dummy
-func NewDummy(dummy uint16) *Dummy {
- return &Dummy{Dummy: dummy}
+// NewApplication factory function for Application
+func NewApplication(id byte) *Application {
+ return &Application{Id: id}
}
-func CastDummy(structType interface{}) *Dummy {
- castFunc := func(typ interface{}) *Dummy {
- if casted, ok := typ.(Dummy); ok {
+func CastApplication(structType interface{}) *Application {
+ castFunc := func(typ interface{}) *Application {
+ if casted, ok := typ.(Application); ok {
return &casted
}
- if casted, ok := typ.(*Dummy); ok {
+ if casted, ok := typ.(*Application); ok {
return casted
}
return nil
@@ -72,66 +72,68 @@ func CastDummy(structType interface{}) *Dummy {
return castFunc(structType)
}
-func (m *Dummy) GetTypeName() string {
- return "Dummy"
+func (m *Application) GetTypeName() string {
+ return "Application"
}
-func (m *Dummy) GetLengthInBits() uint16 {
+func (m *Application) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *Dummy) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *Application) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(0)
- // Simple field (dummy)
- lengthInBits += 16
+ // Simple field (id)
+ lengthInBits += 8
return lengthInBits
}
-func (m *Dummy) GetLengthInBytes() uint16 {
+func (m *Application) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func DummyParse(readBuffer utils.ReadBuffer) (*Dummy, error) {
- if pullErr := readBuffer.PullContext("Dummy"); pullErr != nil {
+func ApplicationParse(readBuffer utils.ReadBuffer) (*Application, error) {
+ if pullErr := readBuffer.PullContext("Application"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
- // Simple Field (dummy)
- _dummy, _dummyErr := readBuffer.ReadUint16("dummy", 16)
- if _dummyErr != nil {
- return nil, errors.Wrap(_dummyErr, "Error parsing 'dummy' field")
+ // Simple Field (id)
+ _id, _idErr := readBuffer.ReadByte("id")
+ if _idErr != nil {
+ return nil, errors.Wrap(_idErr, "Error parsing 'id' field")
}
- dummy := _dummy
+ id := _id
- if closeErr := readBuffer.CloseContext("Dummy"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("Application"); closeErr != nil {
return nil, closeErr
}
// Create the instance
- return NewDummy(dummy), nil
+ return NewApplication(id), nil
}
-func (m *Dummy) Serialize(writeBuffer utils.WriteBuffer) error {
- if pushErr := writeBuffer.PushContext("Dummy"); pushErr != nil {
+func (m *Application) Serialize(writeBuffer utils.WriteBuffer) error {
+ if pushErr := writeBuffer.PushContext("Application"); pushErr != nil {
return pushErr
}
- // Simple Field (dummy)
- dummy := uint16(m.Dummy)
- _dummyErr := writeBuffer.WriteUint16("dummy", 16, (dummy))
- if _dummyErr != nil {
- return errors.Wrap(_dummyErr, "Error serializing 'dummy' field")
+ // Simple Field (id)
+ id := byte(m.Id)
+ _idErr := writeBuffer.WriteByte("id", (id))
+ if _idErr != nil {
+ return errors.Wrap(_idErr, "Error serializing 'id' field")
}
- if popErr := writeBuffer.PopContext("Dummy"); popErr != nil {
+ if popErr := writeBuffer.PopContext("Application"); popErr != nil {
return popErr
}
return nil
}
-func (m *Dummy) String() string {
+func (m *Application) String() string {
if m == nil {
return "<nil>"
}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/Attribute.go b/plc4go/internal/plc4go/cbus/readwrite/model/Attribute.go
new file mode 100644
index 0000000..e690d55
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/Attribute.go
@@ -0,0 +1,339 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+type Attribute uint8
+
+type IAttribute interface {
+ BytesReturned() uint8
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+const (
+ Attribute_Manufacturer Attribute = 0x00
+ Attribute_Type Attribute = 0x01
+ Attribute_FirmwareVersion Attribute = 0x02
+ Attribute_Summary Attribute = 0x03
+ Attribute_ExtendedDiagnosticSummary Attribute = 0x04
+ Attribute_NetworkTerminalLevels Attribute = 0x05
+ Attribute_TerminalLevel Attribute = 0x06
+ Attribute_NetworkVoltage Attribute = 0x07
+ Attribute_GAVValuesCurrent Attribute = 0x08
+ Attribute_GAVValuesStored Attribute = 0x09
+ Attribute_GAVPhysicalAddresses Attribute = 0x0A
+ Attribute_LogicalAssignment Attribute = 0x0B
+ Attribute_Delays Attribute = 0x0C
+ Attribute_MinimumLevels Attribute = 0x0D
+ Attribute_MaximumLevels Attribute = 0x0E
+ Attribute_CurrentSenseLevels Attribute = 0x0F
+ Attribute_OutputUnitSummary Attribute = 0x10
+ Attribute_DSIStatus Attribute = 0x11
+)
+
+var AttributeValues []Attribute
+
+func init() {
+ _ = errors.New
+ AttributeValues = []Attribute{
+ Attribute_Manufacturer,
+ Attribute_Type,
+ Attribute_FirmwareVersion,
+ Attribute_Summary,
+ Attribute_ExtendedDiagnosticSummary,
+ Attribute_NetworkTerminalLevels,
+ Attribute_TerminalLevel,
+ Attribute_NetworkVoltage,
+ Attribute_GAVValuesCurrent,
+ Attribute_GAVValuesStored,
+ Attribute_GAVPhysicalAddresses,
+ Attribute_LogicalAssignment,
+ Attribute_Delays,
+ Attribute_MinimumLevels,
+ Attribute_MaximumLevels,
+ Attribute_CurrentSenseLevels,
+ Attribute_OutputUnitSummary,
+ Attribute_DSIStatus,
+ }
+}
+
+func (e Attribute) BytesReturned() uint8 {
+ switch e {
+ case 0x00:
+ { /* '0x00' */
+ return 8
+ }
+ case 0x01:
+ { /* '0x01' */
+ return 8
+ }
+ case 0x02:
+ { /* '0x02' */
+ return 8
+ }
+ case 0x03:
+ { /* '0x03' */
+ return 9
+ }
+ case 0x04:
+ { /* '0x04' */
+ return 13
+ }
+ case 0x05:
+ { /* '0x05' */
+ return 13
+ }
+ case 0x06:
+ { /* '0x06' */
+ return 13
+ }
+ case 0x07:
+ { /* '0x07' */
+ return 5
+ }
+ case 0x08:
+ { /* '0x08' */
+ return 16
+ }
+ case 0x09:
+ { /* '0x09' */
+ return 16
+ }
+ case 0x0A:
+ { /* '0x0A' */
+ return 16
+ }
+ case 0x0B:
+ { /* '0x0B' */
+ return 13
+ }
+ case 0x0C:
+ { /* '0x0C' */
+ return 14
+ }
+ case 0x0D:
+ { /* '0x0D' */
+ return 13
+ }
+ case 0x0E:
+ { /* '0x0E' */
+ return 13
+ }
+ case 0x0F:
+ { /* '0x0F' */
+ return 8
+ }
+ case 0x10:
+ { /* '0x10' */
+ return 4
+ }
+ case 0x11:
+ { /* '0x11' */
+ return 10
+ }
+ default:
+ {
+ return 0
+ }
+ }
+}
+
+func AttributeFirstEnumForFieldBytesReturned(value uint8) (Attribute, error) {
+ for _, sizeValue := range AttributeValues {
+ if sizeValue.BytesReturned() == value {
+ return sizeValue, nil
+ }
+ }
+ return 0, errors.Errorf("enum for %v describing BytesReturned not found", value)
+}
+func AttributeByValue(value uint8) Attribute {
+ switch value {
+ case 0x00:
+ return Attribute_Manufacturer
+ case 0x01:
+ return Attribute_Type
+ case 0x02:
+ return Attribute_FirmwareVersion
+ case 0x03:
+ return Attribute_Summary
+ case 0x04:
+ return Attribute_ExtendedDiagnosticSummary
+ case 0x05:
+ return Attribute_NetworkTerminalLevels
+ case 0x06:
+ return Attribute_TerminalLevel
+ case 0x07:
+ return Attribute_NetworkVoltage
+ case 0x08:
+ return Attribute_GAVValuesCurrent
+ case 0x09:
+ return Attribute_GAVValuesStored
+ case 0x0A:
+ return Attribute_GAVPhysicalAddresses
+ case 0x0B:
+ return Attribute_LogicalAssignment
+ case 0x0C:
+ return Attribute_Delays
+ case 0x0D:
+ return Attribute_MinimumLevels
+ case 0x0E:
+ return Attribute_MaximumLevels
+ case 0x0F:
+ return Attribute_CurrentSenseLevels
+ case 0x10:
+ return Attribute_OutputUnitSummary
+ case 0x11:
+ return Attribute_DSIStatus
+ }
+ return 0
+}
+
+func AttributeByName(value string) Attribute {
+ switch value {
+ case "Manufacturer":
+ return Attribute_Manufacturer
+ case "Type":
+ return Attribute_Type
+ case "FirmwareVersion":
+ return Attribute_FirmwareVersion
+ case "Summary":
+ return Attribute_Summary
+ case "ExtendedDiagnosticSummary":
+ return Attribute_ExtendedDiagnosticSummary
+ case "NetworkTerminalLevels":
+ return Attribute_NetworkTerminalLevels
+ case "TerminalLevel":
+ return Attribute_TerminalLevel
+ case "NetworkVoltage":
+ return Attribute_NetworkVoltage
+ case "GAVValuesCurrent":
+ return Attribute_GAVValuesCurrent
+ case "GAVValuesStored":
+ return Attribute_GAVValuesStored
+ case "GAVPhysicalAddresses":
+ return Attribute_GAVPhysicalAddresses
+ case "LogicalAssignment":
+ return Attribute_LogicalAssignment
+ case "Delays":
+ return Attribute_Delays
+ case "MinimumLevels":
+ return Attribute_MinimumLevels
+ case "MaximumLevels":
+ return Attribute_MaximumLevels
+ case "CurrentSenseLevels":
+ return Attribute_CurrentSenseLevels
+ case "OutputUnitSummary":
+ return Attribute_OutputUnitSummary
+ case "DSIStatus":
+ return Attribute_DSIStatus
+ }
+ return 0
+}
+
+func AttributeKnows(value uint8) bool {
+ for _, typeValue := range AttributeValues {
+ if uint8(typeValue) == value {
+ return true
+ }
+ }
+ return false
+}
+
+func CastAttribute(structType interface{}) Attribute {
+ castFunc := func(typ interface{}) Attribute {
+ if sAttribute, ok := typ.(Attribute); ok {
+ return sAttribute
+ }
+ return 0
+ }
+ return castFunc(structType)
+}
+
+func (m Attribute) GetLengthInBits() uint16 {
+ return 8
+}
+
+func (m Attribute) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func AttributeParse(readBuffer utils.ReadBuffer) (Attribute, error) {
+ val, err := readBuffer.ReadUint8("Attribute", 8)
+ if err != nil {
+ return 0, nil
+ }
+ return AttributeByValue(val), nil
+}
+
+func (e Attribute) Serialize(writeBuffer utils.WriteBuffer) error {
+ return writeBuffer.WriteUint8("Attribute", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.name()))
+}
+
+func (e Attribute) name() string {
+ switch e {
+ case Attribute_Manufacturer:
+ return "Manufacturer"
+ case Attribute_Type:
+ return "Type"
+ case Attribute_FirmwareVersion:
+ return "FirmwareVersion"
+ case Attribute_Summary:
+ return "Summary"
+ case Attribute_ExtendedDiagnosticSummary:
+ return "ExtendedDiagnosticSummary"
+ case Attribute_NetworkTerminalLevels:
+ return "NetworkTerminalLevels"
+ case Attribute_TerminalLevel:
+ return "TerminalLevel"
+ case Attribute_NetworkVoltage:
+ return "NetworkVoltage"
+ case Attribute_GAVValuesCurrent:
+ return "GAVValuesCurrent"
+ case Attribute_GAVValuesStored:
+ return "GAVValuesStored"
+ case Attribute_GAVPhysicalAddresses:
+ return "GAVPhysicalAddresses"
+ case Attribute_LogicalAssignment:
+ return "LogicalAssignment"
+ case Attribute_Delays:
+ return "Delays"
+ case Attribute_MinimumLevels:
+ return "MinimumLevels"
+ case Attribute_MaximumLevels:
+ return "MaximumLevels"
+ case Attribute_CurrentSenseLevels:
+ return "CurrentSenseLevels"
+ case Attribute_OutputUnitSummary:
+ return "OutputUnitSummary"
+ case Attribute_DSIStatus:
+ return "DSIStatus"
+ }
+ return ""
+}
+
+func (e Attribute) String() string {
+ return e.name()
+}
diff --git a/plc4go/internal/plc4go/knxnetip/readwrite/model/MACAddress.go b/plc4go/internal/plc4go/cbus/readwrite/model/BridgeAddress.go
similarity index 54%
copy from plc4go/internal/plc4go/knxnetip/readwrite/model/MACAddress.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/BridgeAddress.go
index 2e7b982..efed092 100644
--- a/plc4go/internal/plc4go/knxnetip/readwrite/model/MACAddress.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/BridgeAddress.go
@@ -27,14 +27,14 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type MACAddress struct {
- Addr []byte
+type BridgeAddress struct {
+ Address byte
}
// The corresponding interface
-type IMACAddress interface {
- // GetAddr returns Addr
- GetAddr() []byte
+type IBridgeAddress interface {
+ // GetAddress returns Address
+ GetAddress() byte
// GetLengthInBytes returns the length in bytes
GetLengthInBytes() uint16
// GetLengthInBits returns the length in bits
@@ -46,25 +46,25 @@ type IMACAddress interface {
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
-func (m *MACAddress) GetAddr() []byte {
- return m.Addr
+func (m *BridgeAddress) GetAddress() byte {
+ return m.Address
}
///////////////////////////////////////////////////////////
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewMACAddress factory function for MACAddress
-func NewMACAddress(addr []byte) *MACAddress {
- return &MACAddress{Addr: addr}
+// NewBridgeAddress factory function for BridgeAddress
+func NewBridgeAddress(address byte) *BridgeAddress {
+ return &BridgeAddress{Address: address}
}
-func CastMACAddress(structType interface{}) *MACAddress {
- castFunc := func(typ interface{}) *MACAddress {
- if casted, ok := typ.(MACAddress); ok {
+func CastBridgeAddress(structType interface{}) *BridgeAddress {
+ castFunc := func(typ interface{}) *BridgeAddress {
+ if casted, ok := typ.(BridgeAddress); ok {
return &casted
}
- if casted, ok := typ.(*MACAddress); ok {
+ if casted, ok := typ.(*BridgeAddress); ok {
return casted
}
return nil
@@ -72,69 +72,68 @@ func CastMACAddress(structType interface{}) *MACAddress {
return castFunc(structType)
}
-func (m *MACAddress) GetTypeName() string {
- return "MACAddress"
+func (m *BridgeAddress) GetTypeName() string {
+ return "BridgeAddress"
}
-func (m *MACAddress) GetLengthInBits() uint16 {
+func (m *BridgeAddress) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *MACAddress) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *BridgeAddress) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(0)
- // Array field
- if len(m.Addr) > 0 {
- lengthInBits += 8 * uint16(len(m.Addr))
- }
+ // Simple field (address)
+ lengthInBits += 8
return lengthInBits
}
-func (m *MACAddress) GetLengthInBytes() uint16 {
+func (m *BridgeAddress) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func MACAddressParse(readBuffer utils.ReadBuffer) (*MACAddress, error) {
- if pullErr := readBuffer.PullContext("MACAddress"); pullErr != nil {
+func BridgeAddressParse(readBuffer utils.ReadBuffer) (*BridgeAddress, error) {
+ if pullErr := readBuffer.PullContext("BridgeAddress"); pullErr != nil {
return nil, pullErr
}
- // Byte Array field (addr)
- numberOfBytesaddr := int(uint16(6))
- addr, _readArrayErr := readBuffer.ReadByteArray("addr", numberOfBytesaddr)
- if _readArrayErr != nil {
- return nil, errors.Wrap(_readArrayErr, "Error parsing 'addr' field")
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (address)
+ _address, _addressErr := readBuffer.ReadByte("address")
+ if _addressErr != nil {
+ return nil, errors.Wrap(_addressErr, "Error parsing 'address' field")
}
+ address := _address
- if closeErr := readBuffer.CloseContext("MACAddress"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("BridgeAddress"); closeErr != nil {
return nil, closeErr
}
// Create the instance
- return NewMACAddress(addr), nil
+ return NewBridgeAddress(address), nil
}
-func (m *MACAddress) Serialize(writeBuffer utils.WriteBuffer) error {
- if pushErr := writeBuffer.PushContext("MACAddress"); pushErr != nil {
+func (m *BridgeAddress) Serialize(writeBuffer utils.WriteBuffer) error {
+ if pushErr := writeBuffer.PushContext("BridgeAddress"); pushErr != nil {
return pushErr
}
- // Array Field (addr)
- if m.Addr != nil {
- // Byte Array field (addr)
- _writeArrayErr := writeBuffer.WriteByteArray("addr", m.Addr)
- if _writeArrayErr != nil {
- return errors.Wrap(_writeArrayErr, "Error serializing 'addr' field")
- }
+ // Simple Field (address)
+ address := byte(m.Address)
+ _addressErr := writeBuffer.WriteByte("address", (address))
+ if _addressErr != nil {
+ return errors.Wrap(_addressErr, "Error serializing 'address' field")
}
- if popErr := writeBuffer.PopContext("MACAddress"); popErr != nil {
+ if popErr := writeBuffer.PopContext("BridgeAddress"); popErr != nil {
return popErr
}
return nil
}
-func (m *MACAddress) String() string {
+func (m *BridgeAddress) String() string {
if m == nil {
return "<nil>"
}
diff --git a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go b/plc4go/internal/plc4go/cbus/readwrite/model/BridgeCount.go
similarity index 55%
copy from plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/BridgeCount.go
index e6894f7..41c8b93 100644
--- a/plc4go/internal/plc4go/simulated/readwrite/model/Dummy.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/BridgeCount.go
@@ -27,14 +27,14 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type Dummy struct {
- Dummy uint16
+type BridgeCount struct {
+ Count uint8
}
// The corresponding interface
-type IDummy interface {
- // GetDummy returns Dummy
- GetDummy() uint16
+type IBridgeCount interface {
+ // GetCount returns Count
+ GetCount() uint8
// GetLengthInBytes returns the length in bytes
GetLengthInBytes() uint16
// GetLengthInBits returns the length in bits
@@ -46,25 +46,25 @@ type IDummy interface {
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
-func (m *Dummy) GetDummy() uint16 {
- return m.Dummy
+func (m *BridgeCount) GetCount() uint8 {
+ return m.Count
}
///////////////////////////////////////////////////////////
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewDummy factory function for Dummy
-func NewDummy(dummy uint16) *Dummy {
- return &Dummy{Dummy: dummy}
+// NewBridgeCount factory function for BridgeCount
+func NewBridgeCount(count uint8) *BridgeCount {
+ return &BridgeCount{Count: count}
}
-func CastDummy(structType interface{}) *Dummy {
- castFunc := func(typ interface{}) *Dummy {
- if casted, ok := typ.(Dummy); ok {
+func CastBridgeCount(structType interface{}) *BridgeCount {
+ castFunc := func(typ interface{}) *BridgeCount {
+ if casted, ok := typ.(BridgeCount); ok {
return &casted
}
- if casted, ok := typ.(*Dummy); ok {
+ if casted, ok := typ.(*BridgeCount); ok {
return casted
}
return nil
@@ -72,66 +72,68 @@ func CastDummy(structType interface{}) *Dummy {
return castFunc(structType)
}
-func (m *Dummy) GetTypeName() string {
- return "Dummy"
+func (m *BridgeCount) GetTypeName() string {
+ return "BridgeCount"
}
-func (m *Dummy) GetLengthInBits() uint16 {
+func (m *BridgeCount) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *Dummy) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *BridgeCount) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(0)
- // Simple field (dummy)
- lengthInBits += 16
+ // Simple field (count)
+ lengthInBits += 8
return lengthInBits
}
-func (m *Dummy) GetLengthInBytes() uint16 {
+func (m *BridgeCount) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func DummyParse(readBuffer utils.ReadBuffer) (*Dummy, error) {
- if pullErr := readBuffer.PullContext("Dummy"); pullErr != nil {
+func BridgeCountParse(readBuffer utils.ReadBuffer) (*BridgeCount, error) {
+ if pullErr := readBuffer.PullContext("BridgeCount"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
- // Simple Field (dummy)
- _dummy, _dummyErr := readBuffer.ReadUint16("dummy", 16)
- if _dummyErr != nil {
- return nil, errors.Wrap(_dummyErr, "Error parsing 'dummy' field")
+ // Simple Field (count)
+ _count, _countErr := readBuffer.ReadUint8("count", 8)
+ if _countErr != nil {
+ return nil, errors.Wrap(_countErr, "Error parsing 'count' field")
}
- dummy := _dummy
+ count := _count
- if closeErr := readBuffer.CloseContext("Dummy"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("BridgeCount"); closeErr != nil {
return nil, closeErr
}
// Create the instance
- return NewDummy(dummy), nil
+ return NewBridgeCount(count), nil
}
-func (m *Dummy) Serialize(writeBuffer utils.WriteBuffer) error {
- if pushErr := writeBuffer.PushContext("Dummy"); pushErr != nil {
+func (m *BridgeCount) Serialize(writeBuffer utils.WriteBuffer) error {
+ if pushErr := writeBuffer.PushContext("BridgeCount"); pushErr != nil {
return pushErr
}
- // Simple Field (dummy)
- dummy := uint16(m.Dummy)
- _dummyErr := writeBuffer.WriteUint16("dummy", 16, (dummy))
- if _dummyErr != nil {
- return errors.Wrap(_dummyErr, "Error serializing 'dummy' field")
+ // Simple Field (count)
+ count := uint8(m.Count)
+ _countErr := writeBuffer.WriteUint8("count", 8, (count))
+ if _countErr != nil {
+ return errors.Wrap(_countErr, "Error serializing 'count' field")
}
- if popErr := writeBuffer.PopContext("Dummy"); popErr != nil {
+ if popErr := writeBuffer.PopContext("BridgeCount"); popErr != nil {
return popErr
}
return nil
}
-func (m *Dummy) String() string {
+func (m *BridgeCount) String() string {
if m == nil {
return "<nil>"
}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandType.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandType.go
new file mode 100644
index 0000000..2c30bf5
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandType.go
@@ -0,0 +1,157 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+type CALCommandType uint8
+
+type ICALCommandType interface {
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+const (
+ CALCommandType_RESET CALCommandType = 0x0
+ CALCommandType_RECALL CALCommandType = 0x0
+ CALCommandType_IDENTIFY CALCommandType = 0x1
+ CALCommandType_GET_STATUS CALCommandType = 0x2
+ CALCommandType_REPLY CALCommandType = 0x3
+ CALCommandType_ACKNOWLEDGE CALCommandType = 0x4
+ CALCommandType_STATUS CALCommandType = 0x5
+ CALCommandType_STATUS_EXTENDED CALCommandType = 0x5
+)
+
+var CALCommandTypeValues []CALCommandType
+
+func init() {
+ _ = errors.New
+ CALCommandTypeValues = []CALCommandType{
+ CALCommandType_RESET,
+ CALCommandType_RECALL,
+ CALCommandType_IDENTIFY,
+ CALCommandType_GET_STATUS,
+ CALCommandType_REPLY,
+ CALCommandType_ACKNOWLEDGE,
+ CALCommandType_STATUS,
+ CALCommandType_STATUS_EXTENDED,
+ }
+}
+
+func CALCommandTypeByValue(value uint8) CALCommandType {
+ switch value {
+ case 0x0:
+ return CALCommandType_RESET
+ case 0x1:
+ return CALCommandType_IDENTIFY
+ case 0x2:
+ return CALCommandType_GET_STATUS
+ case 0x3:
+ return CALCommandType_REPLY
+ case 0x4:
+ return CALCommandType_ACKNOWLEDGE
+ case 0x5:
+ return CALCommandType_STATUS
+ }
+ return 0
+}
+
+func CALCommandTypeByName(value string) CALCommandType {
+ switch value {
+ case "RESET":
+ return CALCommandType_RESET
+ case "IDENTIFY":
+ return CALCommandType_IDENTIFY
+ case "GET_STATUS":
+ return CALCommandType_GET_STATUS
+ case "REPLY":
+ return CALCommandType_REPLY
+ case "ACKNOWLEDGE":
+ return CALCommandType_ACKNOWLEDGE
+ case "STATUS":
+ return CALCommandType_STATUS
+ }
+ return 0
+}
+
+func CALCommandTypeKnows(value uint8) bool {
+ for _, typeValue := range CALCommandTypeValues {
+ if uint8(typeValue) == value {
+ return true
+ }
+ }
+ return false
+}
+
+func CastCALCommandType(structType interface{}) CALCommandType {
+ castFunc := func(typ interface{}) CALCommandType {
+ if sCALCommandType, ok := typ.(CALCommandType); ok {
+ return sCALCommandType
+ }
+ return 0
+ }
+ return castFunc(structType)
+}
+
+func (m CALCommandType) GetLengthInBits() uint16 {
+ return 4
+}
+
+func (m CALCommandType) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALCommandTypeParse(readBuffer utils.ReadBuffer) (CALCommandType, error) {
+ val, err := readBuffer.ReadUint8("CALCommandType", 4)
+ if err != nil {
+ return 0, nil
+ }
+ return CALCommandTypeByValue(val), nil
+}
+
+func (e CALCommandType) Serialize(writeBuffer utils.WriteBuffer) error {
+ return writeBuffer.WriteUint8("CALCommandType", 4, uint8(e), utils.WithAdditionalStringRepresentation(e.name()))
+}
+
+func (e CALCommandType) name() string {
+ switch e {
+ case CALCommandType_RESET:
+ return "RESET"
+ case CALCommandType_IDENTIFY:
+ return "IDENTIFY"
+ case CALCommandType_GET_STATUS:
+ return "GET_STATUS"
+ case CALCommandType_REPLY:
+ return "REPLY"
+ case CALCommandType_ACKNOWLEDGE:
+ return "ACKNOWLEDGE"
+ case CALCommandType_STATUS:
+ return "STATUS"
+ }
+ return ""
+}
+
+func (e CALCommandType) String() string {
+ return e.name()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandTypeContainer.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandTypeContainer.go
new file mode 100644
index 0000000..5fae0c8
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALCommandTypeContainer.go
@@ -0,0 +1,1696 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+type CALCommandTypeContainer uint8
+
+type ICALCommandTypeContainer interface {
+ NumBytes() uint8
+ CommandType() CALCommandType
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+const (
+ CALCommandTypeContainer_CALCommandReset CALCommandTypeContainer = 0x08
+ CALCommandTypeContainer_CALCommandRecall CALCommandTypeContainer = 0x1A
+ CALCommandTypeContainer_CALCommandIdentify CALCommandTypeContainer = 0x21
+ CALCommandTypeContainer_CALCommandGetStatus CALCommandTypeContainer = 0x2A
+ CALCommandTypeContainer_CALCommandReply_1Bytes CALCommandTypeContainer = 0x81
+ CALCommandTypeContainer_CALCommandReply_2Bytes CALCommandTypeContainer = 0x82
+ CALCommandTypeContainer_CALCommandReply_3Bytes CALCommandTypeContainer = 0x83
+ CALCommandTypeContainer_CALCommandReply_4Bytes CALCommandTypeContainer = 0x84
+ CALCommandTypeContainer_CALCommandReply_5Bytes CALCommandTypeContainer = 0x85
+ CALCommandTypeContainer_CALCommandReply_6Bytes CALCommandTypeContainer = 0x86
+ CALCommandTypeContainer_CALCommandReply_7Bytes CALCommandTypeContainer = 0x87
+ CALCommandTypeContainer_CALCommandReply_8Bytes CALCommandTypeContainer = 0x88
+ CALCommandTypeContainer_CALCommandReply_9Bytes CALCommandTypeContainer = 0x89
+ CALCommandTypeContainer_CALCommandReply_10Bytes CALCommandTypeContainer = 0x8A
+ CALCommandTypeContainer_CALCommandReply_11Bytes CALCommandTypeContainer = 0x8B
+ CALCommandTypeContainer_CALCommandReply_12Bytes CALCommandTypeContainer = 0x8C
+ CALCommandTypeContainer_CALCommandReply_13Bytes CALCommandTypeContainer = 0x8D
+ CALCommandTypeContainer_CALCommandReply_14Bytes CALCommandTypeContainer = 0x8E
+ CALCommandTypeContainer_CALCommandReply_15Bytes CALCommandTypeContainer = 0x8F
+ CALCommandTypeContainer_CALCommandReply_16Bytes CALCommandTypeContainer = 0x90
+ CALCommandTypeContainer_CALCommandReply_17Bytes CALCommandTypeContainer = 0x91
+ CALCommandTypeContainer_CALCommandReply_18Bytes CALCommandTypeContainer = 0x92
+ CALCommandTypeContainer_CALCommandReply_19Bytes CALCommandTypeContainer = 0x93
+ CALCommandTypeContainer_CALCommandReply_20Bytes CALCommandTypeContainer = 0x94
+ CALCommandTypeContainer_CALCommandReply_21Bytes CALCommandTypeContainer = 0x95
+ CALCommandTypeContainer_CALCommandReply_22Bytes CALCommandTypeContainer = 0x96
+ CALCommandTypeContainer_CALCommandReply_23Bytes CALCommandTypeContainer = 0x97
+ CALCommandTypeContainer_CALCommandReply_24Bytes CALCommandTypeContainer = 0x98
+ CALCommandTypeContainer_CALCommandReply_25Bytes CALCommandTypeContainer = 0x99
+ CALCommandTypeContainer_CALCommandReply_26Bytes CALCommandTypeContainer = 0x9A
+ CALCommandTypeContainer_CALCommandReply_27Bytes CALCommandTypeContainer = 0x9B
+ CALCommandTypeContainer_CALCommandReply_28Bytes CALCommandTypeContainer = 0x9C
+ CALCommandTypeContainer_CALCommandReply_29Bytes CALCommandTypeContainer = 0x9D
+ CALCommandTypeContainer_CALCommandReply_30Bytes CALCommandTypeContainer = 0x9E
+ CALCommandTypeContainer_CALCommandReply_31Bytes CALCommandTypeContainer = 0x9F
+ CALCommandTypeContainer_CALCommandAcknowledge CALCommandTypeContainer = 0x32
+ CALCommandTypeContainer_CALCommandStatus_1Bytes CALCommandTypeContainer = 0xC1
+ CALCommandTypeContainer_CALCommandStatus_2Bytes CALCommandTypeContainer = 0xC2
+ CALCommandTypeContainer_CALCommandStatus_3Bytes CALCommandTypeContainer = 0xC3
+ CALCommandTypeContainer_CALCommandStatus_4Bytes CALCommandTypeContainer = 0xC4
+ CALCommandTypeContainer_CALCommandStatus_5Bytes CALCommandTypeContainer = 0xC5
+ CALCommandTypeContainer_CALCommandStatus_6Bytes CALCommandTypeContainer = 0xC6
+ CALCommandTypeContainer_CALCommandStatus_7Bytes CALCommandTypeContainer = 0xC7
+ CALCommandTypeContainer_CALCommandStatus_8Bytes CALCommandTypeContainer = 0xC8
+ CALCommandTypeContainer_CALCommandStatus_9Bytes CALCommandTypeContainer = 0xC9
+ CALCommandTypeContainer_CALCommandStatus_10Bytes CALCommandTypeContainer = 0xCA
+ CALCommandTypeContainer_CALCommandStatus_11Bytes CALCommandTypeContainer = 0xCB
+ CALCommandTypeContainer_CALCommandStatus_12Bytes CALCommandTypeContainer = 0xCC
+ CALCommandTypeContainer_CALCommandStatus_13Bytes CALCommandTypeContainer = 0xCD
+ CALCommandTypeContainer_CALCommandStatus_14Bytes CALCommandTypeContainer = 0xCE
+ CALCommandTypeContainer_CALCommandStatus_15Bytes CALCommandTypeContainer = 0xCF
+ CALCommandTypeContainer_CALCommandStatus_16Bytes CALCommandTypeContainer = 0xD0
+ CALCommandTypeContainer_CALCommandStatus_17Bytes CALCommandTypeContainer = 0xD1
+ CALCommandTypeContainer_CALCommandStatus_18Bytes CALCommandTypeContainer = 0xD2
+ CALCommandTypeContainer_CALCommandStatus_19Bytes CALCommandTypeContainer = 0xD3
+ CALCommandTypeContainer_CALCommandStatus_20Bytes CALCommandTypeContainer = 0xD4
+ CALCommandTypeContainer_CALCommandStatus_21Bytes CALCommandTypeContainer = 0xD5
+ CALCommandTypeContainer_CALCommandStatus_22Bytes CALCommandTypeContainer = 0xD6
+ CALCommandTypeContainer_CALCommandStatus_23Bytes CALCommandTypeContainer = 0xD7
+ CALCommandTypeContainer_CALCommandStatus_24Bytes CALCommandTypeContainer = 0xD8
+ CALCommandTypeContainer_CALCommandStatus_25Bytes CALCommandTypeContainer = 0xD9
+ CALCommandTypeContainer_CALCommandStatus_26Bytes CALCommandTypeContainer = 0xDA
+ CALCommandTypeContainer_CALCommandStatus_27Bytes CALCommandTypeContainer = 0xDB
+ CALCommandTypeContainer_CALCommandStatus_28Bytes CALCommandTypeContainer = 0xDC
+ CALCommandTypeContainer_CALCommandStatus_29Bytes CALCommandTypeContainer = 0xDD
+ CALCommandTypeContainer_CALCommandStatus_30Bytes CALCommandTypeContainer = 0xDE
+ CALCommandTypeContainer_CALCommandStatus_31Bytes CALCommandTypeContainer = 0xDF
+ CALCommandTypeContainer_CALCommandStatusExtended_1Bytes CALCommandTypeContainer = 0xE1
+ CALCommandTypeContainer_CALCommandStatusExtended_2Bytes CALCommandTypeContainer = 0xE1
+ CALCommandTypeContainer_CALCommandStatusExtended_3Bytes CALCommandTypeContainer = 0xE3
+ CALCommandTypeContainer_CALCommandStatusExtended_4Bytes CALCommandTypeContainer = 0xE4
+ CALCommandTypeContainer_CALCommandStatusExtended_5Bytes CALCommandTypeContainer = 0xE5
+ CALCommandTypeContainer_CALCommandStatusExtended_6Bytes CALCommandTypeContainer = 0xE6
+ CALCommandTypeContainer_CALCommandStatusExtended_7Bytes CALCommandTypeContainer = 0xE7
+ CALCommandTypeContainer_CALCommandStatusExtended_8Bytes CALCommandTypeContainer = 0xE8
+ CALCommandTypeContainer_CALCommandStatusExtended_9Bytes CALCommandTypeContainer = 0xE9
+ CALCommandTypeContainer_CALCommandStatusExtended_10Bytes CALCommandTypeContainer = 0xEA
+ CALCommandTypeContainer_CALCommandStatusExtended_11Bytes CALCommandTypeContainer = 0xEB
+ CALCommandTypeContainer_CALCommandStatusExtended_12Bytes CALCommandTypeContainer = 0xEC
+ CALCommandTypeContainer_CALCommandStatusExtended_13Bytes CALCommandTypeContainer = 0xED
+ CALCommandTypeContainer_CALCommandStatusExtended_14Bytes CALCommandTypeContainer = 0xEE
+ CALCommandTypeContainer_CALCommandStatusExtended_15Bytes CALCommandTypeContainer = 0xEF
+ CALCommandTypeContainer_CALCommandStatusExtended_16Bytes CALCommandTypeContainer = 0xF0
+ CALCommandTypeContainer_CALCommandStatusExtended_17Bytes CALCommandTypeContainer = 0xF1
+ CALCommandTypeContainer_CALCommandStatusExtended_18Bytes CALCommandTypeContainer = 0xF2
+ CALCommandTypeContainer_CALCommandStatusExtended_19Bytes CALCommandTypeContainer = 0xF3
+ CALCommandTypeContainer_CALCommandStatusExtended_20Bytes CALCommandTypeContainer = 0xF4
+ CALCommandTypeContainer_CALCommandStatusExtended_21Bytes CALCommandTypeContainer = 0xF5
+ CALCommandTypeContainer_CALCommandStatusExtended_22Bytes CALCommandTypeContainer = 0xF6
+ CALCommandTypeContainer_CALCommandStatusExtended_23Bytes CALCommandTypeContainer = 0xF7
+ CALCommandTypeContainer_CALCommandStatusExtended_24Bytes CALCommandTypeContainer = 0xF8
+ CALCommandTypeContainer_CALCommandStatusExtended_25Bytes CALCommandTypeContainer = 0xF9
+ CALCommandTypeContainer_CALCommandStatusExtended_26Bytes CALCommandTypeContainer = 0xFA
+ CALCommandTypeContainer_CALCommandStatusExtended_27Bytes CALCommandTypeContainer = 0xFB
+ CALCommandTypeContainer_CALCommandStatusExtended_28Bytes CALCommandTypeContainer = 0xFC
+ CALCommandTypeContainer_CALCommandStatusExtended_29Bytes CALCommandTypeContainer = 0xFD
+ CALCommandTypeContainer_CALCommandStatusExtended_30Bytes CALCommandTypeContainer = 0xFE
+ CALCommandTypeContainer_CALCommandStatusExtended_31Bytes CALCommandTypeContainer = 0xFF
+)
+
+var CALCommandTypeContainerValues []CALCommandTypeContainer
+
+func init() {
+ _ = errors.New
+ CALCommandTypeContainerValues = []CALCommandTypeContainer{
+ CALCommandTypeContainer_CALCommandReset,
+ CALCommandTypeContainer_CALCommandRecall,
+ CALCommandTypeContainer_CALCommandIdentify,
+ CALCommandTypeContainer_CALCommandGetStatus,
+ CALCommandTypeContainer_CALCommandReply_1Bytes,
+ CALCommandTypeContainer_CALCommandReply_2Bytes,
+ CALCommandTypeContainer_CALCommandReply_3Bytes,
+ CALCommandTypeContainer_CALCommandReply_4Bytes,
+ CALCommandTypeContainer_CALCommandReply_5Bytes,
+ CALCommandTypeContainer_CALCommandReply_6Bytes,
+ CALCommandTypeContainer_CALCommandReply_7Bytes,
+ CALCommandTypeContainer_CALCommandReply_8Bytes,
+ CALCommandTypeContainer_CALCommandReply_9Bytes,
+ CALCommandTypeContainer_CALCommandReply_10Bytes,
+ CALCommandTypeContainer_CALCommandReply_11Bytes,
+ CALCommandTypeContainer_CALCommandReply_12Bytes,
+ CALCommandTypeContainer_CALCommandReply_13Bytes,
+ CALCommandTypeContainer_CALCommandReply_14Bytes,
+ CALCommandTypeContainer_CALCommandReply_15Bytes,
+ CALCommandTypeContainer_CALCommandReply_16Bytes,
+ CALCommandTypeContainer_CALCommandReply_17Bytes,
+ CALCommandTypeContainer_CALCommandReply_18Bytes,
+ CALCommandTypeContainer_CALCommandReply_19Bytes,
+ CALCommandTypeContainer_CALCommandReply_20Bytes,
+ CALCommandTypeContainer_CALCommandReply_21Bytes,
+ CALCommandTypeContainer_CALCommandReply_22Bytes,
+ CALCommandTypeContainer_CALCommandReply_23Bytes,
+ CALCommandTypeContainer_CALCommandReply_24Bytes,
+ CALCommandTypeContainer_CALCommandReply_25Bytes,
+ CALCommandTypeContainer_CALCommandReply_26Bytes,
+ CALCommandTypeContainer_CALCommandReply_27Bytes,
+ CALCommandTypeContainer_CALCommandReply_28Bytes,
+ CALCommandTypeContainer_CALCommandReply_29Bytes,
+ CALCommandTypeContainer_CALCommandReply_30Bytes,
+ CALCommandTypeContainer_CALCommandReply_31Bytes,
+ CALCommandTypeContainer_CALCommandAcknowledge,
+ CALCommandTypeContainer_CALCommandStatus_1Bytes,
+ CALCommandTypeContainer_CALCommandStatus_2Bytes,
+ CALCommandTypeContainer_CALCommandStatus_3Bytes,
+ CALCommandTypeContainer_CALCommandStatus_4Bytes,
+ CALCommandTypeContainer_CALCommandStatus_5Bytes,
+ CALCommandTypeContainer_CALCommandStatus_6Bytes,
+ CALCommandTypeContainer_CALCommandStatus_7Bytes,
+ CALCommandTypeContainer_CALCommandStatus_8Bytes,
+ CALCommandTypeContainer_CALCommandStatus_9Bytes,
+ CALCommandTypeContainer_CALCommandStatus_10Bytes,
+ CALCommandTypeContainer_CALCommandStatus_11Bytes,
+ CALCommandTypeContainer_CALCommandStatus_12Bytes,
+ CALCommandTypeContainer_CALCommandStatus_13Bytes,
+ CALCommandTypeContainer_CALCommandStatus_14Bytes,
+ CALCommandTypeContainer_CALCommandStatus_15Bytes,
+ CALCommandTypeContainer_CALCommandStatus_16Bytes,
+ CALCommandTypeContainer_CALCommandStatus_17Bytes,
+ CALCommandTypeContainer_CALCommandStatus_18Bytes,
+ CALCommandTypeContainer_CALCommandStatus_19Bytes,
+ CALCommandTypeContainer_CALCommandStatus_20Bytes,
+ CALCommandTypeContainer_CALCommandStatus_21Bytes,
+ CALCommandTypeContainer_CALCommandStatus_22Bytes,
+ CALCommandTypeContainer_CALCommandStatus_23Bytes,
+ CALCommandTypeContainer_CALCommandStatus_24Bytes,
+ CALCommandTypeContainer_CALCommandStatus_25Bytes,
+ CALCommandTypeContainer_CALCommandStatus_26Bytes,
+ CALCommandTypeContainer_CALCommandStatus_27Bytes,
+ CALCommandTypeContainer_CALCommandStatus_28Bytes,
+ CALCommandTypeContainer_CALCommandStatus_29Bytes,
+ CALCommandTypeContainer_CALCommandStatus_30Bytes,
+ CALCommandTypeContainer_CALCommandStatus_31Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_1Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_2Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_3Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_4Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_5Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_6Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_7Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_8Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_9Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_10Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_11Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_12Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_13Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_14Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_15Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_16Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_17Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_18Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_19Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_20Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_21Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_22Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_23Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_24Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_25Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_26Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_27Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_28Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_29Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_30Bytes,
+ CALCommandTypeContainer_CALCommandStatusExtended_31Bytes,
+ }
+}
+
+func (e CALCommandTypeContainer) NumBytes() uint8 {
+ switch e {
+ case 0x08:
+ { /* '0x08' */
+ return 0
+ }
+ case 0x1A:
+ { /* '0x1A' */
+ return 0
+ }
+ case 0x21:
+ { /* '0x21' */
+ return 0
+ }
+ case 0x2A:
+ { /* '0x2A' */
+ return 0
+ }
+ case 0x32:
+ { /* '0x32' */
+ return 0
+ }
+ case 0x81:
+ { /* '0x81' */
+ return 1
+ }
+ case 0x82:
+ { /* '0x82' */
+ return 2
+ }
+ case 0x83:
+ { /* '0x83' */
+ return 3
+ }
+ case 0x84:
+ { /* '0x84' */
+ return 4
+ }
+ case 0x85:
+ { /* '0x85' */
+ return 5
+ }
+ case 0x86:
+ { /* '0x86' */
+ return 6
+ }
+ case 0x87:
+ { /* '0x87' */
+ return 7
+ }
+ case 0x88:
+ { /* '0x88' */
+ return 8
+ }
+ case 0x89:
+ { /* '0x89' */
+ return 9
+ }
+ case 0x8A:
+ { /* '0x8A' */
+ return 10
+ }
+ case 0x8B:
+ { /* '0x8B' */
+ return 11
+ }
+ case 0x8C:
+ { /* '0x8C' */
+ return 12
+ }
+ case 0x8D:
+ { /* '0x8D' */
+ return 13
+ }
+ case 0x8E:
+ { /* '0x8E' */
+ return 14
+ }
+ case 0x8F:
+ { /* '0x8F' */
+ return 15
+ }
+ case 0x90:
+ { /* '0x90' */
+ return 16
+ }
+ case 0x91:
+ { /* '0x91' */
+ return 17
+ }
+ case 0x92:
+ { /* '0x92' */
+ return 18
+ }
+ case 0x93:
+ { /* '0x93' */
+ return 19
+ }
+ case 0x94:
+ { /* '0x94' */
+ return 20
+ }
+ case 0x95:
+ { /* '0x95' */
+ return 21
+ }
+ case 0x96:
+ { /* '0x96' */
+ return 22
+ }
+ case 0x97:
+ { /* '0x97' */
+ return 23
+ }
+ case 0x98:
+ { /* '0x98' */
+ return 24
+ }
+ case 0x99:
+ { /* '0x99' */
+ return 25
+ }
+ case 0x9A:
+ { /* '0x9A' */
+ return 26
+ }
+ case 0x9B:
+ { /* '0x9B' */
+ return 27
+ }
+ case 0x9C:
+ { /* '0x9C' */
+ return 28
+ }
+ case 0x9D:
+ { /* '0x9D' */
+ return 29
+ }
+ case 0x9E:
+ { /* '0x9E' */
+ return 30
+ }
+ case 0x9F:
+ { /* '0x9F' */
+ return 31
+ }
+ case 0xC1:
+ { /* '0xC1' */
+ return 1
+ }
+ case 0xC2:
+ { /* '0xC2' */
+ return 2
+ }
+ case 0xC3:
+ { /* '0xC3' */
+ return 3
+ }
+ case 0xC4:
+ { /* '0xC4' */
+ return 4
+ }
+ case 0xC5:
+ { /* '0xC5' */
+ return 5
+ }
+ case 0xC6:
+ { /* '0xC6' */
+ return 6
+ }
+ case 0xC7:
+ { /* '0xC7' */
+ return 7
+ }
+ case 0xC8:
+ { /* '0xC8' */
+ return 8
+ }
+ case 0xC9:
+ { /* '0xC9' */
+ return 9
+ }
+ case 0xCA:
+ { /* '0xCA' */
+ return 10
+ }
+ case 0xCB:
+ { /* '0xCB' */
+ return 11
+ }
+ case 0xCC:
+ { /* '0xCC' */
+ return 12
+ }
+ case 0xCD:
+ { /* '0xCD' */
+ return 13
+ }
+ case 0xCE:
+ { /* '0xCE' */
+ return 14
+ }
+ case 0xCF:
+ { /* '0xCF' */
+ return 15
+ }
+ case 0xD0:
+ { /* '0xD0' */
+ return 16
+ }
+ case 0xD1:
+ { /* '0xD1' */
+ return 17
+ }
+ case 0xD2:
+ { /* '0xD2' */
+ return 18
+ }
+ case 0xD3:
+ { /* '0xD3' */
+ return 19
+ }
+ case 0xD4:
+ { /* '0xD4' */
+ return 20
+ }
+ case 0xD5:
+ { /* '0xD5' */
+ return 21
+ }
+ case 0xD6:
+ { /* '0xD6' */
+ return 22
+ }
+ case 0xD7:
+ { /* '0xD7' */
+ return 23
+ }
+ case 0xD8:
+ { /* '0xD8' */
+ return 24
+ }
+ case 0xD9:
+ { /* '0xD9' */
+ return 25
+ }
+ case 0xDA:
+ { /* '0xDA' */
+ return 26
+ }
+ case 0xDB:
+ { /* '0xDB' */
+ return 27
+ }
+ case 0xDC:
+ { /* '0xDC' */
+ return 28
+ }
+ case 0xDD:
+ { /* '0xDD' */
+ return 29
+ }
+ case 0xDE:
+ { /* '0xDE' */
+ return 30
+ }
+ case 0xDF:
+ { /* '0xDF' */
+ return 31
+ }
+ case 0xE1:
+ { /* '0xE1' */
+ return 1
+ }
+ case 0xE3:
+ { /* '0xE3' */
+ return 3
+ }
+ case 0xE4:
+ { /* '0xE4' */
+ return 4
+ }
+ case 0xE5:
+ { /* '0xE5' */
+ return 5
+ }
+ case 0xE6:
+ { /* '0xE6' */
+ return 6
+ }
+ case 0xE7:
+ { /* '0xE7' */
+ return 7
+ }
+ case 0xE8:
+ { /* '0xE8' */
+ return 8
+ }
+ case 0xE9:
+ { /* '0xE9' */
+ return 9
+ }
+ case 0xEA:
+ { /* '0xEA' */
+ return 10
+ }
+ case 0xEB:
+ { /* '0xEB' */
+ return 11
+ }
+ case 0xEC:
+ { /* '0xEC' */
+ return 12
+ }
+ case 0xED:
+ { /* '0xED' */
+ return 13
+ }
+ case 0xEE:
+ { /* '0xEE' */
+ return 14
+ }
+ case 0xEF:
+ { /* '0xEF' */
+ return 15
+ }
+ case 0xF0:
+ { /* '0xF0' */
+ return 16
+ }
+ case 0xF1:
+ { /* '0xF1' */
+ return 17
+ }
+ case 0xF2:
+ { /* '0xF2' */
+ return 18
+ }
+ case 0xF3:
+ { /* '0xF3' */
+ return 19
+ }
+ case 0xF4:
+ { /* '0xF4' */
+ return 20
+ }
+ case 0xF5:
+ { /* '0xF5' */
+ return 21
+ }
+ case 0xF6:
+ { /* '0xF6' */
+ return 22
+ }
+ case 0xF7:
+ { /* '0xF7' */
+ return 23
+ }
+ case 0xF8:
+ { /* '0xF8' */
+ return 24
+ }
+ case 0xF9:
+ { /* '0xF9' */
+ return 25
+ }
+ case 0xFA:
+ { /* '0xFA' */
+ return 26
+ }
+ case 0xFB:
+ { /* '0xFB' */
+ return 27
+ }
+ case 0xFC:
+ { /* '0xFC' */
+ return 28
+ }
+ case 0xFD:
+ { /* '0xFD' */
+ return 29
+ }
+ case 0xFE:
+ { /* '0xFE' */
+ return 30
+ }
+ case 0xFF:
+ { /* '0xFF' */
+ return 31
+ }
+ default:
+ {
+ return 0
+ }
+ }
+}
+
+func CALCommandTypeContainerFirstEnumForFieldNumBytes(value uint8) (CALCommandTypeContainer, error) {
+ for _, sizeValue := range CALCommandTypeContainerValues {
+ if sizeValue.NumBytes() == value {
+ return sizeValue, nil
+ }
+ }
+ return 0, errors.Errorf("enum for %v describing NumBytes not found", value)
+}
+
+func (e CALCommandTypeContainer) CommandType() CALCommandType {
+ switch e {
+ case 0x08:
+ { /* '0x08' */
+ return CALCommandType_RESET
+ }
+ case 0x1A:
+ { /* '0x1A' */
+ return CALCommandType_RECALL
+ }
+ case 0x21:
+ { /* '0x21' */
+ return CALCommandType_IDENTIFY
+ }
+ case 0x2A:
+ { /* '0x2A' */
+ return CALCommandType_GET_STATUS
+ }
+ case 0x32:
+ { /* '0x32' */
+ return CALCommandType_ACKNOWLEDGE
+ }
+ case 0x81:
+ { /* '0x81' */
+ return CALCommandType_REPLY
+ }
+ case 0x82:
+ { /* '0x82' */
+ return CALCommandType_REPLY
+ }
+ case 0x83:
+ { /* '0x83' */
+ return CALCommandType_REPLY
+ }
+ case 0x84:
+ { /* '0x84' */
+ return CALCommandType_REPLY
+ }
+ case 0x85:
+ { /* '0x85' */
+ return CALCommandType_REPLY
+ }
+ case 0x86:
+ { /* '0x86' */
+ return CALCommandType_REPLY
+ }
+ case 0x87:
+ { /* '0x87' */
+ return CALCommandType_REPLY
+ }
+ case 0x88:
+ { /* '0x88' */
+ return CALCommandType_REPLY
+ }
+ case 0x89:
+ { /* '0x89' */
+ return CALCommandType_REPLY
+ }
+ case 0x8A:
+ { /* '0x8A' */
+ return CALCommandType_REPLY
+ }
+ case 0x8B:
+ { /* '0x8B' */
+ return CALCommandType_REPLY
+ }
+ case 0x8C:
+ { /* '0x8C' */
+ return CALCommandType_REPLY
+ }
+ case 0x8D:
+ { /* '0x8D' */
+ return CALCommandType_REPLY
+ }
+ case 0x8E:
+ { /* '0x8E' */
+ return CALCommandType_REPLY
+ }
+ case 0x8F:
+ { /* '0x8F' */
+ return CALCommandType_REPLY
+ }
+ case 0x90:
+ { /* '0x90' */
+ return CALCommandType_REPLY
+ }
+ case 0x91:
+ { /* '0x91' */
+ return CALCommandType_REPLY
+ }
+ case 0x92:
+ { /* '0x92' */
+ return CALCommandType_REPLY
+ }
+ case 0x93:
+ { /* '0x93' */
+ return CALCommandType_REPLY
+ }
+ case 0x94:
+ { /* '0x94' */
+ return CALCommandType_REPLY
+ }
+ case 0x95:
+ { /* '0x95' */
+ return CALCommandType_REPLY
+ }
+ case 0x96:
+ { /* '0x96' */
+ return CALCommandType_REPLY
+ }
+ case 0x97:
+ { /* '0x97' */
+ return CALCommandType_REPLY
+ }
+ case 0x98:
+ { /* '0x98' */
+ return CALCommandType_REPLY
+ }
+ case 0x99:
+ { /* '0x99' */
+ return CALCommandType_REPLY
+ }
+ case 0x9A:
+ { /* '0x9A' */
+ return CALCommandType_REPLY
+ }
+ case 0x9B:
+ { /* '0x9B' */
+ return CALCommandType_REPLY
+ }
+ case 0x9C:
+ { /* '0x9C' */
+ return CALCommandType_REPLY
+ }
+ case 0x9D:
+ { /* '0x9D' */
+ return CALCommandType_REPLY
+ }
+ case 0x9E:
+ { /* '0x9E' */
+ return CALCommandType_REPLY
+ }
+ case 0x9F:
+ { /* '0x9F' */
+ return CALCommandType_REPLY
+ }
+ case 0xC1:
+ { /* '0xC1' */
+ return CALCommandType_STATUS
+ }
+ case 0xC2:
+ { /* '0xC2' */
+ return CALCommandType_STATUS
+ }
+ case 0xC3:
+ { /* '0xC3' */
+ return CALCommandType_STATUS
+ }
+ case 0xC4:
+ { /* '0xC4' */
+ return CALCommandType_STATUS
+ }
+ case 0xC5:
+ { /* '0xC5' */
+ return CALCommandType_STATUS
+ }
+ case 0xC6:
+ { /* '0xC6' */
+ return CALCommandType_STATUS
+ }
+ case 0xC7:
+ { /* '0xC7' */
+ return CALCommandType_STATUS
+ }
+ case 0xC8:
+ { /* '0xC8' */
+ return CALCommandType_STATUS
+ }
+ case 0xC9:
+ { /* '0xC9' */
+ return CALCommandType_STATUS
+ }
+ case 0xCA:
+ { /* '0xCA' */
+ return CALCommandType_STATUS
+ }
+ case 0xCB:
+ { /* '0xCB' */
+ return CALCommandType_STATUS
+ }
+ case 0xCC:
+ { /* '0xCC' */
+ return CALCommandType_STATUS
+ }
+ case 0xCD:
+ { /* '0xCD' */
+ return CALCommandType_STATUS
+ }
+ case 0xCE:
+ { /* '0xCE' */
+ return CALCommandType_STATUS
+ }
+ case 0xCF:
+ { /* '0xCF' */
+ return CALCommandType_STATUS
+ }
+ case 0xD0:
+ { /* '0xD0' */
+ return CALCommandType_STATUS
+ }
+ case 0xD1:
+ { /* '0xD1' */
+ return CALCommandType_STATUS
+ }
+ case 0xD2:
+ { /* '0xD2' */
+ return CALCommandType_STATUS
+ }
+ case 0xD3:
+ { /* '0xD3' */
+ return CALCommandType_STATUS
+ }
+ case 0xD4:
+ { /* '0xD4' */
+ return CALCommandType_STATUS
+ }
+ case 0xD5:
+ { /* '0xD5' */
+ return CALCommandType_STATUS
+ }
+ case 0xD6:
+ { /* '0xD6' */
+ return CALCommandType_STATUS
+ }
+ case 0xD7:
+ { /* '0xD7' */
+ return CALCommandType_STATUS
+ }
+ case 0xD8:
+ { /* '0xD8' */
+ return CALCommandType_STATUS
+ }
+ case 0xD9:
+ { /* '0xD9' */
+ return CALCommandType_STATUS
+ }
+ case 0xDA:
+ { /* '0xDA' */
+ return CALCommandType_STATUS
+ }
+ case 0xDB:
+ { /* '0xDB' */
+ return CALCommandType_STATUS
+ }
+ case 0xDC:
+ { /* '0xDC' */
+ return CALCommandType_STATUS
+ }
+ case 0xDD:
+ { /* '0xDD' */
+ return CALCommandType_STATUS
+ }
+ case 0xDE:
+ { /* '0xDE' */
+ return CALCommandType_STATUS
+ }
+ case 0xDF:
+ { /* '0xDF' */
+ return CALCommandType_STATUS
+ }
+ case 0xE1:
+ { /* '0xE1' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE3:
+ { /* '0xE3' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE4:
+ { /* '0xE4' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE5:
+ { /* '0xE5' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE6:
+ { /* '0xE6' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE7:
+ { /* '0xE7' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE8:
+ { /* '0xE8' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xE9:
+ { /* '0xE9' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xEA:
+ { /* '0xEA' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xEB:
+ { /* '0xEB' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xEC:
+ { /* '0xEC' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xED:
+ { /* '0xED' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xEE:
+ { /* '0xEE' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xEF:
+ { /* '0xEF' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF0:
+ { /* '0xF0' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF1:
+ { /* '0xF1' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF2:
+ { /* '0xF2' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF3:
+ { /* '0xF3' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF4:
+ { /* '0xF4' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF5:
+ { /* '0xF5' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF6:
+ { /* '0xF6' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF7:
+ { /* '0xF7' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF8:
+ { /* '0xF8' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xF9:
+ { /* '0xF9' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFA:
+ { /* '0xFA' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFB:
+ { /* '0xFB' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFC:
+ { /* '0xFC' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFD:
+ { /* '0xFD' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFE:
+ { /* '0xFE' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ case 0xFF:
+ { /* '0xFF' */
+ return CALCommandType_STATUS_EXTENDED
+ }
+ default:
+ {
+ return 0
+ }
+ }
+}
+
+func CALCommandTypeContainerFirstEnumForFieldCommandType(value CALCommandType) (CALCommandTypeContainer, error) {
+ for _, sizeValue := range CALCommandTypeContainerValues {
+ if sizeValue.CommandType() == value {
+ return sizeValue, nil
+ }
+ }
+ return 0, errors.Errorf("enum for %v describing CommandType not found", value)
+}
+func CALCommandTypeContainerByValue(value uint8) CALCommandTypeContainer {
+ switch value {
+ case 0x08:
+ return CALCommandTypeContainer_CALCommandReset
+ case 0x1A:
+ return CALCommandTypeContainer_CALCommandRecall
+ case 0x21:
+ return CALCommandTypeContainer_CALCommandIdentify
+ case 0x2A:
+ return CALCommandTypeContainer_CALCommandGetStatus
+ case 0x32:
+ return CALCommandTypeContainer_CALCommandAcknowledge
+ case 0x81:
+ return CALCommandTypeContainer_CALCommandReply_1Bytes
+ case 0x82:
+ return CALCommandTypeContainer_CALCommandReply_2Bytes
+ case 0x83:
+ return CALCommandTypeContainer_CALCommandReply_3Bytes
+ case 0x84:
+ return CALCommandTypeContainer_CALCommandReply_4Bytes
+ case 0x85:
+ return CALCommandTypeContainer_CALCommandReply_5Bytes
+ case 0x86:
+ return CALCommandTypeContainer_CALCommandReply_6Bytes
+ case 0x87:
+ return CALCommandTypeContainer_CALCommandReply_7Bytes
+ case 0x88:
+ return CALCommandTypeContainer_CALCommandReply_8Bytes
+ case 0x89:
+ return CALCommandTypeContainer_CALCommandReply_9Bytes
+ case 0x8A:
+ return CALCommandTypeContainer_CALCommandReply_10Bytes
+ case 0x8B:
+ return CALCommandTypeContainer_CALCommandReply_11Bytes
+ case 0x8C:
+ return CALCommandTypeContainer_CALCommandReply_12Bytes
+ case 0x8D:
+ return CALCommandTypeContainer_CALCommandReply_13Bytes
+ case 0x8E:
+ return CALCommandTypeContainer_CALCommandReply_14Bytes
+ case 0x8F:
+ return CALCommandTypeContainer_CALCommandReply_15Bytes
+ case 0x90:
+ return CALCommandTypeContainer_CALCommandReply_16Bytes
+ case 0x91:
+ return CALCommandTypeContainer_CALCommandReply_17Bytes
+ case 0x92:
+ return CALCommandTypeContainer_CALCommandReply_18Bytes
+ case 0x93:
+ return CALCommandTypeContainer_CALCommandReply_19Bytes
+ case 0x94:
+ return CALCommandTypeContainer_CALCommandReply_20Bytes
+ case 0x95:
+ return CALCommandTypeContainer_CALCommandReply_21Bytes
+ case 0x96:
+ return CALCommandTypeContainer_CALCommandReply_22Bytes
+ case 0x97:
+ return CALCommandTypeContainer_CALCommandReply_23Bytes
+ case 0x98:
+ return CALCommandTypeContainer_CALCommandReply_24Bytes
+ case 0x99:
+ return CALCommandTypeContainer_CALCommandReply_25Bytes
+ case 0x9A:
+ return CALCommandTypeContainer_CALCommandReply_26Bytes
+ case 0x9B:
+ return CALCommandTypeContainer_CALCommandReply_27Bytes
+ case 0x9C:
+ return CALCommandTypeContainer_CALCommandReply_28Bytes
+ case 0x9D:
+ return CALCommandTypeContainer_CALCommandReply_29Bytes
+ case 0x9E:
+ return CALCommandTypeContainer_CALCommandReply_30Bytes
+ case 0x9F:
+ return CALCommandTypeContainer_CALCommandReply_31Bytes
+ case 0xC1:
+ return CALCommandTypeContainer_CALCommandStatus_1Bytes
+ case 0xC2:
+ return CALCommandTypeContainer_CALCommandStatus_2Bytes
+ case 0xC3:
+ return CALCommandTypeContainer_CALCommandStatus_3Bytes
+ case 0xC4:
+ return CALCommandTypeContainer_CALCommandStatus_4Bytes
+ case 0xC5:
+ return CALCommandTypeContainer_CALCommandStatus_5Bytes
+ case 0xC6:
+ return CALCommandTypeContainer_CALCommandStatus_6Bytes
+ case 0xC7:
+ return CALCommandTypeContainer_CALCommandStatus_7Bytes
+ case 0xC8:
+ return CALCommandTypeContainer_CALCommandStatus_8Bytes
+ case 0xC9:
+ return CALCommandTypeContainer_CALCommandStatus_9Bytes
+ case 0xCA:
+ return CALCommandTypeContainer_CALCommandStatus_10Bytes
+ case 0xCB:
+ return CALCommandTypeContainer_CALCommandStatus_11Bytes
+ case 0xCC:
+ return CALCommandTypeContainer_CALCommandStatus_12Bytes
+ case 0xCD:
+ return CALCommandTypeContainer_CALCommandStatus_13Bytes
+ case 0xCE:
+ return CALCommandTypeContainer_CALCommandStatus_14Bytes
+ case 0xCF:
+ return CALCommandTypeContainer_CALCommandStatus_15Bytes
+ case 0xD0:
+ return CALCommandTypeContainer_CALCommandStatus_16Bytes
+ case 0xD1:
+ return CALCommandTypeContainer_CALCommandStatus_17Bytes
+ case 0xD2:
+ return CALCommandTypeContainer_CALCommandStatus_18Bytes
+ case 0xD3:
+ return CALCommandTypeContainer_CALCommandStatus_19Bytes
+ case 0xD4:
+ return CALCommandTypeContainer_CALCommandStatus_20Bytes
+ case 0xD5:
+ return CALCommandTypeContainer_CALCommandStatus_21Bytes
+ case 0xD6:
+ return CALCommandTypeContainer_CALCommandStatus_22Bytes
+ case 0xD7:
+ return CALCommandTypeContainer_CALCommandStatus_23Bytes
+ case 0xD8:
+ return CALCommandTypeContainer_CALCommandStatus_24Bytes
+ case 0xD9:
+ return CALCommandTypeContainer_CALCommandStatus_25Bytes
+ case 0xDA:
+ return CALCommandTypeContainer_CALCommandStatus_26Bytes
+ case 0xDB:
+ return CALCommandTypeContainer_CALCommandStatus_27Bytes
+ case 0xDC:
+ return CALCommandTypeContainer_CALCommandStatus_28Bytes
+ case 0xDD:
+ return CALCommandTypeContainer_CALCommandStatus_29Bytes
+ case 0xDE:
+ return CALCommandTypeContainer_CALCommandStatus_30Bytes
+ case 0xDF:
+ return CALCommandTypeContainer_CALCommandStatus_31Bytes
+ case 0xE1:
+ return CALCommandTypeContainer_CALCommandStatusExtended_1Bytes
+ case 0xE3:
+ return CALCommandTypeContainer_CALCommandStatusExtended_3Bytes
+ case 0xE4:
+ return CALCommandTypeContainer_CALCommandStatusExtended_4Bytes
+ case 0xE5:
+ return CALCommandTypeContainer_CALCommandStatusExtended_5Bytes
+ case 0xE6:
+ return CALCommandTypeContainer_CALCommandStatusExtended_6Bytes
+ case 0xE7:
+ return CALCommandTypeContainer_CALCommandStatusExtended_7Bytes
+ case 0xE8:
+ return CALCommandTypeContainer_CALCommandStatusExtended_8Bytes
+ case 0xE9:
+ return CALCommandTypeContainer_CALCommandStatusExtended_9Bytes
+ case 0xEA:
+ return CALCommandTypeContainer_CALCommandStatusExtended_10Bytes
+ case 0xEB:
+ return CALCommandTypeContainer_CALCommandStatusExtended_11Bytes
+ case 0xEC:
+ return CALCommandTypeContainer_CALCommandStatusExtended_12Bytes
+ case 0xED:
+ return CALCommandTypeContainer_CALCommandStatusExtended_13Bytes
+ case 0xEE:
+ return CALCommandTypeContainer_CALCommandStatusExtended_14Bytes
+ case 0xEF:
+ return CALCommandTypeContainer_CALCommandStatusExtended_15Bytes
+ case 0xF0:
+ return CALCommandTypeContainer_CALCommandStatusExtended_16Bytes
+ case 0xF1:
+ return CALCommandTypeContainer_CALCommandStatusExtended_17Bytes
+ case 0xF2:
+ return CALCommandTypeContainer_CALCommandStatusExtended_18Bytes
+ case 0xF3:
+ return CALCommandTypeContainer_CALCommandStatusExtended_19Bytes
+ case 0xF4:
+ return CALCommandTypeContainer_CALCommandStatusExtended_20Bytes
+ case 0xF5:
+ return CALCommandTypeContainer_CALCommandStatusExtended_21Bytes
+ case 0xF6:
+ return CALCommandTypeContainer_CALCommandStatusExtended_22Bytes
+ case 0xF7:
+ return CALCommandTypeContainer_CALCommandStatusExtended_23Bytes
+ case 0xF8:
+ return CALCommandTypeContainer_CALCommandStatusExtended_24Bytes
+ case 0xF9:
+ return CALCommandTypeContainer_CALCommandStatusExtended_25Bytes
+ case 0xFA:
+ return CALCommandTypeContainer_CALCommandStatusExtended_26Bytes
+ case 0xFB:
+ return CALCommandTypeContainer_CALCommandStatusExtended_27Bytes
+ case 0xFC:
+ return CALCommandTypeContainer_CALCommandStatusExtended_28Bytes
+ case 0xFD:
+ return CALCommandTypeContainer_CALCommandStatusExtended_29Bytes
+ case 0xFE:
+ return CALCommandTypeContainer_CALCommandStatusExtended_30Bytes
+ case 0xFF:
+ return CALCommandTypeContainer_CALCommandStatusExtended_31Bytes
+ }
+ return 0
+}
+
+func CALCommandTypeContainerByName(value string) CALCommandTypeContainer {
+ switch value {
+ case "CALCommandReset":
+ return CALCommandTypeContainer_CALCommandReset
+ case "CALCommandRecall":
+ return CALCommandTypeContainer_CALCommandRecall
+ case "CALCommandIdentify":
+ return CALCommandTypeContainer_CALCommandIdentify
+ case "CALCommandGetStatus":
+ return CALCommandTypeContainer_CALCommandGetStatus
+ case "CALCommandAcknowledge":
+ return CALCommandTypeContainer_CALCommandAcknowledge
+ case "CALCommandReply_1Bytes":
+ return CALCommandTypeContainer_CALCommandReply_1Bytes
+ case "CALCommandReply_2Bytes":
+ return CALCommandTypeContainer_CALCommandReply_2Bytes
+ case "CALCommandReply_3Bytes":
+ return CALCommandTypeContainer_CALCommandReply_3Bytes
+ case "CALCommandReply_4Bytes":
+ return CALCommandTypeContainer_CALCommandReply_4Bytes
+ case "CALCommandReply_5Bytes":
+ return CALCommandTypeContainer_CALCommandReply_5Bytes
+ case "CALCommandReply_6Bytes":
+ return CALCommandTypeContainer_CALCommandReply_6Bytes
+ case "CALCommandReply_7Bytes":
+ return CALCommandTypeContainer_CALCommandReply_7Bytes
+ case "CALCommandReply_8Bytes":
+ return CALCommandTypeContainer_CALCommandReply_8Bytes
+ case "CALCommandReply_9Bytes":
+ return CALCommandTypeContainer_CALCommandReply_9Bytes
+ case "CALCommandReply_10Bytes":
+ return CALCommandTypeContainer_CALCommandReply_10Bytes
+ case "CALCommandReply_11Bytes":
+ return CALCommandTypeContainer_CALCommandReply_11Bytes
+ case "CALCommandReply_12Bytes":
+ return CALCommandTypeContainer_CALCommandReply_12Bytes
+ case "CALCommandReply_13Bytes":
+ return CALCommandTypeContainer_CALCommandReply_13Bytes
+ case "CALCommandReply_14Bytes":
+ return CALCommandTypeContainer_CALCommandReply_14Bytes
+ case "CALCommandReply_15Bytes":
+ return CALCommandTypeContainer_CALCommandReply_15Bytes
+ case "CALCommandReply_16Bytes":
+ return CALCommandTypeContainer_CALCommandReply_16Bytes
+ case "CALCommandReply_17Bytes":
+ return CALCommandTypeContainer_CALCommandReply_17Bytes
+ case "CALCommandReply_18Bytes":
+ return CALCommandTypeContainer_CALCommandReply_18Bytes
+ case "CALCommandReply_19Bytes":
+ return CALCommandTypeContainer_CALCommandReply_19Bytes
+ case "CALCommandReply_20Bytes":
+ return CALCommandTypeContainer_CALCommandReply_20Bytes
+ case "CALCommandReply_21Bytes":
+ return CALCommandTypeContainer_CALCommandReply_21Bytes
+ case "CALCommandReply_22Bytes":
+ return CALCommandTypeContainer_CALCommandReply_22Bytes
+ case "CALCommandReply_23Bytes":
+ return CALCommandTypeContainer_CALCommandReply_23Bytes
+ case "CALCommandReply_24Bytes":
+ return CALCommandTypeContainer_CALCommandReply_24Bytes
+ case "CALCommandReply_25Bytes":
+ return CALCommandTypeContainer_CALCommandReply_25Bytes
+ case "CALCommandReply_26Bytes":
+ return CALCommandTypeContainer_CALCommandReply_26Bytes
+ case "CALCommandReply_27Bytes":
+ return CALCommandTypeContainer_CALCommandReply_27Bytes
+ case "CALCommandReply_28Bytes":
+ return CALCommandTypeContainer_CALCommandReply_28Bytes
+ case "CALCommandReply_29Bytes":
+ return CALCommandTypeContainer_CALCommandReply_29Bytes
+ case "CALCommandReply_30Bytes":
+ return CALCommandTypeContainer_CALCommandReply_30Bytes
+ case "CALCommandReply_31Bytes":
+ return CALCommandTypeContainer_CALCommandReply_31Bytes
+ case "CALCommandStatus_1Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_1Bytes
+ case "CALCommandStatus_2Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_2Bytes
+ case "CALCommandStatus_3Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_3Bytes
+ case "CALCommandStatus_4Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_4Bytes
+ case "CALCommandStatus_5Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_5Bytes
+ case "CALCommandStatus_6Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_6Bytes
+ case "CALCommandStatus_7Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_7Bytes
+ case "CALCommandStatus_8Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_8Bytes
+ case "CALCommandStatus_9Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_9Bytes
+ case "CALCommandStatus_10Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_10Bytes
+ case "CALCommandStatus_11Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_11Bytes
+ case "CALCommandStatus_12Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_12Bytes
+ case "CALCommandStatus_13Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_13Bytes
+ case "CALCommandStatus_14Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_14Bytes
+ case "CALCommandStatus_15Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_15Bytes
+ case "CALCommandStatus_16Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_16Bytes
+ case "CALCommandStatus_17Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_17Bytes
+ case "CALCommandStatus_18Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_18Bytes
+ case "CALCommandStatus_19Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_19Bytes
+ case "CALCommandStatus_20Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_20Bytes
+ case "CALCommandStatus_21Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_21Bytes
+ case "CALCommandStatus_22Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_22Bytes
+ case "CALCommandStatus_23Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_23Bytes
+ case "CALCommandStatus_24Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_24Bytes
+ case "CALCommandStatus_25Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_25Bytes
+ case "CALCommandStatus_26Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_26Bytes
+ case "CALCommandStatus_27Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_27Bytes
+ case "CALCommandStatus_28Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_28Bytes
+ case "CALCommandStatus_29Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_29Bytes
+ case "CALCommandStatus_30Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_30Bytes
+ case "CALCommandStatus_31Bytes":
+ return CALCommandTypeContainer_CALCommandStatus_31Bytes
+ case "CALCommandStatusExtended_1Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_1Bytes
+ case "CALCommandStatusExtended_3Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_3Bytes
+ case "CALCommandStatusExtended_4Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_4Bytes
+ case "CALCommandStatusExtended_5Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_5Bytes
+ case "CALCommandStatusExtended_6Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_6Bytes
+ case "CALCommandStatusExtended_7Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_7Bytes
+ case "CALCommandStatusExtended_8Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_8Bytes
+ case "CALCommandStatusExtended_9Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_9Bytes
+ case "CALCommandStatusExtended_10Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_10Bytes
+ case "CALCommandStatusExtended_11Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_11Bytes
+ case "CALCommandStatusExtended_12Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_12Bytes
+ case "CALCommandStatusExtended_13Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_13Bytes
+ case "CALCommandStatusExtended_14Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_14Bytes
+ case "CALCommandStatusExtended_15Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_15Bytes
+ case "CALCommandStatusExtended_16Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_16Bytes
+ case "CALCommandStatusExtended_17Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_17Bytes
+ case "CALCommandStatusExtended_18Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_18Bytes
+ case "CALCommandStatusExtended_19Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_19Bytes
+ case "CALCommandStatusExtended_20Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_20Bytes
+ case "CALCommandStatusExtended_21Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_21Bytes
+ case "CALCommandStatusExtended_22Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_22Bytes
+ case "CALCommandStatusExtended_23Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_23Bytes
+ case "CALCommandStatusExtended_24Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_24Bytes
+ case "CALCommandStatusExtended_25Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_25Bytes
+ case "CALCommandStatusExtended_26Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_26Bytes
+ case "CALCommandStatusExtended_27Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_27Bytes
+ case "CALCommandStatusExtended_28Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_28Bytes
+ case "CALCommandStatusExtended_29Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_29Bytes
+ case "CALCommandStatusExtended_30Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_30Bytes
+ case "CALCommandStatusExtended_31Bytes":
+ return CALCommandTypeContainer_CALCommandStatusExtended_31Bytes
+ }
+ return 0
+}
+
+func CALCommandTypeContainerKnows(value uint8) bool {
+ for _, typeValue := range CALCommandTypeContainerValues {
+ if uint8(typeValue) == value {
+ return true
+ }
+ }
+ return false
+}
+
+func CastCALCommandTypeContainer(structType interface{}) CALCommandTypeContainer {
+ castFunc := func(typ interface{}) CALCommandTypeContainer {
+ if sCALCommandTypeContainer, ok := typ.(CALCommandTypeContainer); ok {
+ return sCALCommandTypeContainer
+ }
+ return 0
+ }
+ return castFunc(structType)
+}
+
+func (m CALCommandTypeContainer) GetLengthInBits() uint16 {
+ return 8
+}
+
+func (m CALCommandTypeContainer) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALCommandTypeContainerParse(readBuffer utils.ReadBuffer) (CALCommandTypeContainer, error) {
+ val, err := readBuffer.ReadUint8("CALCommandTypeContainer", 8)
+ if err != nil {
+ return 0, nil
+ }
+ return CALCommandTypeContainerByValue(val), nil
+}
+
+func (e CALCommandTypeContainer) Serialize(writeBuffer utils.WriteBuffer) error {
+ return writeBuffer.WriteUint8("CALCommandTypeContainer", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.name()))
+}
+
+func (e CALCommandTypeContainer) name() string {
+ switch e {
+ case CALCommandTypeContainer_CALCommandReset:
+ return "CALCommandReset"
+ case CALCommandTypeContainer_CALCommandRecall:
+ return "CALCommandRecall"
+ case CALCommandTypeContainer_CALCommandIdentify:
+ return "CALCommandIdentify"
+ case CALCommandTypeContainer_CALCommandGetStatus:
+ return "CALCommandGetStatus"
+ case CALCommandTypeContainer_CALCommandAcknowledge:
+ return "CALCommandAcknowledge"
+ case CALCommandTypeContainer_CALCommandReply_1Bytes:
+ return "CALCommandReply_1Bytes"
+ case CALCommandTypeContainer_CALCommandReply_2Bytes:
+ return "CALCommandReply_2Bytes"
+ case CALCommandTypeContainer_CALCommandReply_3Bytes:
+ return "CALCommandReply_3Bytes"
+ case CALCommandTypeContainer_CALCommandReply_4Bytes:
+ return "CALCommandReply_4Bytes"
+ case CALCommandTypeContainer_CALCommandReply_5Bytes:
+ return "CALCommandReply_5Bytes"
+ case CALCommandTypeContainer_CALCommandReply_6Bytes:
+ return "CALCommandReply_6Bytes"
+ case CALCommandTypeContainer_CALCommandReply_7Bytes:
+ return "CALCommandReply_7Bytes"
+ case CALCommandTypeContainer_CALCommandReply_8Bytes:
+ return "CALCommandReply_8Bytes"
+ case CALCommandTypeContainer_CALCommandReply_9Bytes:
+ return "CALCommandReply_9Bytes"
+ case CALCommandTypeContainer_CALCommandReply_10Bytes:
+ return "CALCommandReply_10Bytes"
+ case CALCommandTypeContainer_CALCommandReply_11Bytes:
+ return "CALCommandReply_11Bytes"
+ case CALCommandTypeContainer_CALCommandReply_12Bytes:
+ return "CALCommandReply_12Bytes"
+ case CALCommandTypeContainer_CALCommandReply_13Bytes:
+ return "CALCommandReply_13Bytes"
+ case CALCommandTypeContainer_CALCommandReply_14Bytes:
+ return "CALCommandReply_14Bytes"
+ case CALCommandTypeContainer_CALCommandReply_15Bytes:
+ return "CALCommandReply_15Bytes"
+ case CALCommandTypeContainer_CALCommandReply_16Bytes:
+ return "CALCommandReply_16Bytes"
+ case CALCommandTypeContainer_CALCommandReply_17Bytes:
+ return "CALCommandReply_17Bytes"
+ case CALCommandTypeContainer_CALCommandReply_18Bytes:
+ return "CALCommandReply_18Bytes"
+ case CALCommandTypeContainer_CALCommandReply_19Bytes:
+ return "CALCommandReply_19Bytes"
+ case CALCommandTypeContainer_CALCommandReply_20Bytes:
+ return "CALCommandReply_20Bytes"
+ case CALCommandTypeContainer_CALCommandReply_21Bytes:
+ return "CALCommandReply_21Bytes"
+ case CALCommandTypeContainer_CALCommandReply_22Bytes:
+ return "CALCommandReply_22Bytes"
+ case CALCommandTypeContainer_CALCommandReply_23Bytes:
+ return "CALCommandReply_23Bytes"
+ case CALCommandTypeContainer_CALCommandReply_24Bytes:
+ return "CALCommandReply_24Bytes"
+ case CALCommandTypeContainer_CALCommandReply_25Bytes:
+ return "CALCommandReply_25Bytes"
+ case CALCommandTypeContainer_CALCommandReply_26Bytes:
+ return "CALCommandReply_26Bytes"
+ case CALCommandTypeContainer_CALCommandReply_27Bytes:
+ return "CALCommandReply_27Bytes"
+ case CALCommandTypeContainer_CALCommandReply_28Bytes:
+ return "CALCommandReply_28Bytes"
+ case CALCommandTypeContainer_CALCommandReply_29Bytes:
+ return "CALCommandReply_29Bytes"
+ case CALCommandTypeContainer_CALCommandReply_30Bytes:
+ return "CALCommandReply_30Bytes"
+ case CALCommandTypeContainer_CALCommandReply_31Bytes:
+ return "CALCommandReply_31Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_1Bytes:
+ return "CALCommandStatus_1Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_2Bytes:
+ return "CALCommandStatus_2Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_3Bytes:
+ return "CALCommandStatus_3Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_4Bytes:
+ return "CALCommandStatus_4Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_5Bytes:
+ return "CALCommandStatus_5Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_6Bytes:
+ return "CALCommandStatus_6Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_7Bytes:
+ return "CALCommandStatus_7Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_8Bytes:
+ return "CALCommandStatus_8Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_9Bytes:
+ return "CALCommandStatus_9Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_10Bytes:
+ return "CALCommandStatus_10Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_11Bytes:
+ return "CALCommandStatus_11Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_12Bytes:
+ return "CALCommandStatus_12Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_13Bytes:
+ return "CALCommandStatus_13Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_14Bytes:
+ return "CALCommandStatus_14Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_15Bytes:
+ return "CALCommandStatus_15Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_16Bytes:
+ return "CALCommandStatus_16Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_17Bytes:
+ return "CALCommandStatus_17Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_18Bytes:
+ return "CALCommandStatus_18Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_19Bytes:
+ return "CALCommandStatus_19Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_20Bytes:
+ return "CALCommandStatus_20Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_21Bytes:
+ return "CALCommandStatus_21Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_22Bytes:
+ return "CALCommandStatus_22Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_23Bytes:
+ return "CALCommandStatus_23Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_24Bytes:
+ return "CALCommandStatus_24Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_25Bytes:
+ return "CALCommandStatus_25Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_26Bytes:
+ return "CALCommandStatus_26Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_27Bytes:
+ return "CALCommandStatus_27Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_28Bytes:
+ return "CALCommandStatus_28Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_29Bytes:
+ return "CALCommandStatus_29Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_30Bytes:
+ return "CALCommandStatus_30Bytes"
+ case CALCommandTypeContainer_CALCommandStatus_31Bytes:
+ return "CALCommandStatus_31Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_1Bytes:
+ return "CALCommandStatusExtended_1Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_3Bytes:
+ return "CALCommandStatusExtended_3Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_4Bytes:
+ return "CALCommandStatusExtended_4Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_5Bytes:
+ return "CALCommandStatusExtended_5Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_6Bytes:
+ return "CALCommandStatusExtended_6Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_7Bytes:
+ return "CALCommandStatusExtended_7Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_8Bytes:
+ return "CALCommandStatusExtended_8Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_9Bytes:
+ return "CALCommandStatusExtended_9Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_10Bytes:
+ return "CALCommandStatusExtended_10Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_11Bytes:
+ return "CALCommandStatusExtended_11Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_12Bytes:
+ return "CALCommandStatusExtended_12Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_13Bytes:
+ return "CALCommandStatusExtended_13Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_14Bytes:
+ return "CALCommandStatusExtended_14Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_15Bytes:
+ return "CALCommandStatusExtended_15Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_16Bytes:
+ return "CALCommandStatusExtended_16Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_17Bytes:
+ return "CALCommandStatusExtended_17Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_18Bytes:
+ return "CALCommandStatusExtended_18Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_19Bytes:
+ return "CALCommandStatusExtended_19Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_20Bytes:
+ return "CALCommandStatusExtended_20Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_21Bytes:
+ return "CALCommandStatusExtended_21Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_22Bytes:
+ return "CALCommandStatusExtended_22Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_23Bytes:
+ return "CALCommandStatusExtended_23Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_24Bytes:
+ return "CALCommandStatusExtended_24Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_25Bytes:
+ return "CALCommandStatusExtended_25Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_26Bytes:
+ return "CALCommandStatusExtended_26Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_27Bytes:
+ return "CALCommandStatusExtended_27Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_28Bytes:
+ return "CALCommandStatusExtended_28Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_29Bytes:
+ return "CALCommandStatusExtended_29Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_30Bytes:
+ return "CALCommandStatusExtended_30Bytes"
+ case CALCommandTypeContainer_CALCommandStatusExtended_31Bytes:
+ return "CALCommandStatusExtended_31Bytes"
+ }
+ return ""
+}
+
+func (e CALCommandTypeContainer) String() string {
+ return e.name()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALData.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALData.go
new file mode 100644
index 0000000..33ca9f4
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALData.go
@@ -0,0 +1,227 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALData struct {
+ CommandTypeContainer CALCommandTypeContainer
+ Child ICALDataChild
+}
+
+// The corresponding interface
+type ICALData interface {
+ // CommandType returns CommandType
+ CommandType() CALCommandType
+ // GetCommandTypeContainer returns CommandTypeContainer
+ GetCommandTypeContainer() CALCommandTypeContainer
+ // GetCommandType returns CommandType
+ GetCommandType() CALCommandType
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+type ICALDataParent interface {
+ SerializeParent(writeBuffer utils.WriteBuffer, child ICALData, serializeChildFunction func() error) error
+ GetTypeName() string
+}
+
+type ICALDataChild interface {
+ Serialize(writeBuffer utils.WriteBuffer) error
+ InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer)
+ GetTypeName() string
+ ICALData
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALData) GetCommandTypeContainer() CALCommandTypeContainer {
+ return m.CommandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+func (m *CALData) GetCommandType() CALCommandType {
+ return m.GetCommandTypeContainer().CommandType()
+}
+
+// NewCALData factory function for CALData
+func NewCALData(commandTypeContainer CALCommandTypeContainer) *CALData {
+ return &CALData{CommandTypeContainer: commandTypeContainer}
+}
+
+func CastCALData(structType interface{}) *CALData {
+ castFunc := func(typ interface{}) *CALData {
+ if casted, ok := typ.(CALData); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return casted
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALData) GetTypeName() string {
+ return "CALData"
+}
+
+func (m *CALData) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALData) GetLengthInBitsConditional(lastItem bool) uint16 {
+ return m.Child.GetLengthInBits()
+}
+
+func (m *CALData) GetParentLengthInBits() uint16 {
+ lengthInBits := uint16(0)
+
+ // Simple field (commandTypeContainer)
+ lengthInBits += 8
+
+ // A virtual field doesn't have any in- or output.
+
+ return lengthInBits
+}
+
+func (m *CALData) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALData"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (commandTypeContainer)
+ if pullErr := readBuffer.PullContext("commandTypeContainer"); pullErr != nil {
+ return nil, pullErr
+ }
+ _commandTypeContainer, _commandTypeContainerErr := CALCommandTypeContainerParse(readBuffer)
+ if _commandTypeContainerErr != nil {
+ return nil, errors.Wrap(_commandTypeContainerErr, "Error parsing 'commandTypeContainer' field")
+ }
+ commandTypeContainer := _commandTypeContainer
+ if closeErr := readBuffer.CloseContext("commandTypeContainer"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Virtual field
+ _commandType := commandTypeContainer.CommandType()
+ commandType := CALCommandType(_commandType)
+ _ = commandType
+
+ // Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type)
+ var _parent *CALData
+ var typeSwitchError error
+ switch {
+ case commandType == CALCommandType_RESET: // CALDataRequestReset
+ _parent, typeSwitchError = CALDataRequestResetParse(readBuffer)
+ case commandType == CALCommandType_RECALL: // CALDataRequestRecall
+ _parent, typeSwitchError = CALDataRequestRecallParse(readBuffer)
+ case commandType == CALCommandType_IDENTIFY: // CALDataRequestIdentify
+ _parent, typeSwitchError = CALDataRequestIdentifyParse(readBuffer)
+ case commandType == CALCommandType_GET_STATUS: // CALDataRequestGetStatus
+ _parent, typeSwitchError = CALDataRequestGetStatusParse(readBuffer)
+ case commandType == CALCommandType_REPLY: // CALDataReplyReply
+ _parent, typeSwitchError = CALDataReplyReplyParse(readBuffer, commandTypeContainer)
+ case commandType == CALCommandType_ACKNOWLEDGE: // CALDataReplyAcknowledge
+ _parent, typeSwitchError = CALDataReplyAcknowledgeParse(readBuffer)
+ case commandType == CALCommandType_STATUS: // CALDataReplyStatus
+ _parent, typeSwitchError = CALDataReplyStatusParse(readBuffer, commandTypeContainer)
+ case commandType == CALCommandType_STATUS_EXTENDED: // CALDataReplyStatusExtended
+ _parent, typeSwitchError = CALDataReplyStatusExtendedParse(readBuffer, commandTypeContainer)
+ default:
+ // TODO: return actual type
+ typeSwitchError = errors.New("Unmapped type")
+ }
+ if typeSwitchError != nil {
+ return nil, errors.Wrap(typeSwitchError, "Error parsing sub-type for type-switch.")
+ }
+
+ if closeErr := readBuffer.CloseContext("CALData"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Finish initializing
+ _parent.Child.InitializeParent(_parent, commandTypeContainer)
+ return _parent, nil
+}
+
+func (m *CALData) Serialize(writeBuffer utils.WriteBuffer) error {
+ return m.Child.Serialize(writeBuffer)
+}
+
+func (m *CALData) SerializeParent(writeBuffer utils.WriteBuffer, child ICALData, serializeChildFunction func() error) error {
+ if pushErr := writeBuffer.PushContext("CALData"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (commandTypeContainer)
+ if pushErr := writeBuffer.PushContext("commandTypeContainer"); pushErr != nil {
+ return pushErr
+ }
+ _commandTypeContainerErr := m.CommandTypeContainer.Serialize(writeBuffer)
+ if popErr := writeBuffer.PopContext("commandTypeContainer"); popErr != nil {
+ return popErr
+ }
+ if _commandTypeContainerErr != nil {
+ return errors.Wrap(_commandTypeContainerErr, "Error serializing 'commandTypeContainer' field")
+ }
+ // Virtual field
+ if _commandTypeErr := writeBuffer.WriteVirtual("commandType", m.GetCommandType()); _commandTypeErr != nil {
+ return errors.Wrap(_commandTypeErr, "Error serializing 'commandType' field")
+ }
+
+ // Switch field (Depending on the discriminator values, passes the serialization to a sub-type)
+ if _typeSwitchErr := serializeChildFunction(); _typeSwitchErr != nil {
+ return errors.Wrap(_typeSwitchErr, "Error serializing sub-type field")
+ }
+
+ if popErr := writeBuffer.PopContext("CALData"); popErr != nil {
+ return popErr
+ }
+ return nil
+}
+
+func (m *CALData) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyAcknowledge.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyAcknowledge.go
new file mode 100644
index 0000000..5a90724
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyAcknowledge.go
@@ -0,0 +1,204 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataReplyAcknowledge struct {
+ *CALData
+ ParamNo uint8
+ Code uint8
+}
+
+// The corresponding interface
+type ICALDataReplyAcknowledge interface {
+ // GetParamNo returns ParamNo
+ GetParamNo() uint8
+ // GetCode returns Code
+ GetCode() uint8
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyAcknowledge) CommandType() CALCommandType {
+ return CALCommandType_ACKNOWLEDGE
+}
+
+func (m *CALDataReplyAcknowledge) GetCommandType() CALCommandType {
+ return CALCommandType_ACKNOWLEDGE
+}
+
+func (m *CALDataReplyAcknowledge) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyAcknowledge) GetParamNo() uint8 {
+ return m.ParamNo
+}
+
+func (m *CALDataReplyAcknowledge) GetCode() uint8 {
+ return m.Code
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataReplyAcknowledge factory function for CALDataReplyAcknowledge
+func NewCALDataReplyAcknowledge(paramNo uint8, code uint8, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataReplyAcknowledge{
+ ParamNo: paramNo,
+ Code: code,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataReplyAcknowledge(structType interface{}) *CALDataReplyAcknowledge {
+ castFunc := func(typ interface{}) *CALDataReplyAcknowledge {
+ if casted, ok := typ.(CALDataReplyAcknowledge); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataReplyAcknowledge); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataReplyAcknowledge(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataReplyAcknowledge(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataReplyAcknowledge) GetTypeName() string {
+ return "CALDataReplyAcknowledge"
+}
+
+func (m *CALDataReplyAcknowledge) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataReplyAcknowledge) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (paramNo)
+ lengthInBits += 8
+
+ // Simple field (code)
+ lengthInBits += 8
+
+ return lengthInBits
+}
+
+func (m *CALDataReplyAcknowledge) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataReplyAcknowledgeParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataReplyAcknowledge"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (paramNo)
+ _paramNo, _paramNoErr := readBuffer.ReadUint8("paramNo", 8)
+ if _paramNoErr != nil {
+ return nil, errors.Wrap(_paramNoErr, "Error parsing 'paramNo' field")
+ }
+ paramNo := _paramNo
+
+ // Simple Field (code)
+ _code, _codeErr := readBuffer.ReadUint8("code", 8)
+ if _codeErr != nil {
+ return nil, errors.Wrap(_codeErr, "Error parsing 'code' field")
+ }
+ code := _code
+
+ if closeErr := readBuffer.CloseContext("CALDataReplyAcknowledge"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataReplyAcknowledge{
+ ParamNo: paramNo,
+ Code: code,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataReplyAcknowledge) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataReplyAcknowledge"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (paramNo)
+ paramNo := uint8(m.ParamNo)
+ _paramNoErr := writeBuffer.WriteUint8("paramNo", 8, (paramNo))
+ if _paramNoErr != nil {
+ return errors.Wrap(_paramNoErr, "Error serializing 'paramNo' field")
+ }
+
+ // Simple Field (code)
+ code := uint8(m.Code)
+ _codeErr := writeBuffer.WriteUint8("code", 8, (code))
+ if _codeErr != nil {
+ return errors.Wrap(_codeErr, "Error serializing 'code' field")
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataReplyAcknowledge"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataReplyAcknowledge) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/knxnetip/readwrite/model/ApduDataExtAuthorizeRequest.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyReply.go
similarity index 51%
copy from plc4go/internal/plc4go/knxnetip/readwrite/model/ApduDataExtAuthorizeRequest.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyReply.go
index a242ac7..5015177 100644
--- a/plc4go/internal/plc4go/knxnetip/readwrite/model/ApduDataExtAuthorizeRequest.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyReply.go
@@ -27,19 +27,16 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type ApduDataExtAuthorizeRequest struct {
- *ApduDataExt
- Level uint8
- Data []byte
-
- // Arguments.
- Length uint8
+type CALDataReplyReply struct {
+ *CALData
+ ParamNumber uint8
+ Data []byte
}
// The corresponding interface
-type IApduDataExtAuthorizeRequest interface {
- // GetLevel returns Level
- GetLevel() uint8
+type ICALDataReplyReply interface {
+ // GetParamNumber returns ParamNumber
+ GetParamNumber() uint8
// GetData returns Data
GetData() []byte
// GetLengthInBytes returns the length in bytes
@@ -53,24 +50,26 @@ type IApduDataExtAuthorizeRequest interface {
///////////////////////////////////////////////////////////
// Accessors for discriminator values.
///////////////////////////////////////////////////////////
-func (m *ApduDataExtAuthorizeRequest) ExtApciType() uint8 {
- return 0x11
+func (m *CALDataReplyReply) CommandType() CALCommandType {
+ return CALCommandType_REPLY
}
-func (m *ApduDataExtAuthorizeRequest) GetExtApciType() uint8 {
- return 0x11
+func (m *CALDataReplyReply) GetCommandType() CALCommandType {
+ return CALCommandType_REPLY
}
-func (m *ApduDataExtAuthorizeRequest) InitializeParent(parent *ApduDataExt) {}
+func (m *CALDataReplyReply) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
-func (m *ApduDataExtAuthorizeRequest) GetLevel() uint8 {
- return m.Level
+func (m *CALDataReplyReply) GetParamNumber() uint8 {
+ return m.ParamNumber
}
-func (m *ApduDataExtAuthorizeRequest) GetData() []byte {
+func (m *CALDataReplyReply) GetData() []byte {
return m.Data
}
@@ -78,48 +77,48 @@ func (m *ApduDataExtAuthorizeRequest) GetData() []byte {
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewApduDataExtAuthorizeRequest factory function for ApduDataExtAuthorizeRequest
-func NewApduDataExtAuthorizeRequest(level uint8, data []byte, length uint8) *ApduDataExt {
- child := &ApduDataExtAuthorizeRequest{
- Level: level,
+// NewCALDataReplyReply factory function for CALDataReplyReply
+func NewCALDataReplyReply(paramNumber uint8, data []byte, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataReplyReply{
+ ParamNumber: paramNumber,
Data: data,
- ApduDataExt: NewApduDataExt(length),
+ CALData: NewCALData(commandTypeContainer),
}
child.Child = child
- return child.ApduDataExt
+ return child.CALData
}
-func CastApduDataExtAuthorizeRequest(structType interface{}) *ApduDataExtAuthorizeRequest {
- castFunc := func(typ interface{}) *ApduDataExtAuthorizeRequest {
- if casted, ok := typ.(ApduDataExtAuthorizeRequest); ok {
+func CastCALDataReplyReply(structType interface{}) *CALDataReplyReply {
+ castFunc := func(typ interface{}) *CALDataReplyReply {
+ if casted, ok := typ.(CALDataReplyReply); ok {
return &casted
}
- if casted, ok := typ.(*ApduDataExtAuthorizeRequest); ok {
+ if casted, ok := typ.(*CALDataReplyReply); ok {
return casted
}
- if casted, ok := typ.(ApduDataExt); ok {
- return CastApduDataExtAuthorizeRequest(casted.Child)
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataReplyReply(casted.Child)
}
- if casted, ok := typ.(*ApduDataExt); ok {
- return CastApduDataExtAuthorizeRequest(casted.Child)
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataReplyReply(casted.Child)
}
return nil
}
return castFunc(structType)
}
-func (m *ApduDataExtAuthorizeRequest) GetTypeName() string {
- return "ApduDataExtAuthorizeRequest"
+func (m *CALDataReplyReply) GetTypeName() string {
+ return "CALDataReplyReply"
}
-func (m *ApduDataExtAuthorizeRequest) GetLengthInBits() uint16 {
+func (m *CALDataReplyReply) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *ApduDataExtAuthorizeRequest) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *CALDataReplyReply) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(m.GetParentLengthInBits())
- // Simple field (level)
+ // Simple field (paramNumber)
lengthInBits += 8
// Array field
@@ -130,53 +129,55 @@ func (m *ApduDataExtAuthorizeRequest) GetLengthInBitsConditional(lastItem bool)
return lengthInBits
}
-func (m *ApduDataExtAuthorizeRequest) GetLengthInBytes() uint16 {
+func (m *CALDataReplyReply) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func ApduDataExtAuthorizeRequestParse(readBuffer utils.ReadBuffer, length uint8) (*ApduDataExt, error) {
- if pullErr := readBuffer.PullContext("ApduDataExtAuthorizeRequest"); pullErr != nil {
+func CALDataReplyReplyParse(readBuffer utils.ReadBuffer, commandTypeContainer CALCommandTypeContainer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataReplyReply"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
- // Simple Field (level)
- _level, _levelErr := readBuffer.ReadUint8("level", 8)
- if _levelErr != nil {
- return nil, errors.Wrap(_levelErr, "Error parsing 'level' field")
+ // Simple Field (paramNumber)
+ _paramNumber, _paramNumberErr := readBuffer.ReadUint8("paramNumber", 8)
+ if _paramNumberErr != nil {
+ return nil, errors.Wrap(_paramNumberErr, "Error parsing 'paramNumber' field")
}
- level := _level
+ paramNumber := _paramNumber
// Byte Array field (data)
- numberOfBytesdata := int(uint16(4))
+ numberOfBytesdata := int(commandTypeContainer.NumBytes())
data, _readArrayErr := readBuffer.ReadByteArray("data", numberOfBytesdata)
if _readArrayErr != nil {
return nil, errors.Wrap(_readArrayErr, "Error parsing 'data' field")
}
- if closeErr := readBuffer.CloseContext("ApduDataExtAuthorizeRequest"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("CALDataReplyReply"); closeErr != nil {
return nil, closeErr
}
// Create a partially initialized instance
- _child := &ApduDataExtAuthorizeRequest{
- Level: level,
+ _child := &CALDataReplyReply{
+ ParamNumber: paramNumber,
Data: data,
- ApduDataExt: &ApduDataExt{},
+ CALData: &CALData{},
}
- _child.ApduDataExt.Child = _child
- return _child.ApduDataExt, nil
+ _child.CALData.Child = _child
+ return _child.CALData, nil
}
-func (m *ApduDataExtAuthorizeRequest) Serialize(writeBuffer utils.WriteBuffer) error {
+func (m *CALDataReplyReply) Serialize(writeBuffer utils.WriteBuffer) error {
ser := func() error {
- if pushErr := writeBuffer.PushContext("ApduDataExtAuthorizeRequest"); pushErr != nil {
+ if pushErr := writeBuffer.PushContext("CALDataReplyReply"); pushErr != nil {
return pushErr
}
- // Simple Field (level)
- level := uint8(m.Level)
- _levelErr := writeBuffer.WriteUint8("level", 8, (level))
- if _levelErr != nil {
- return errors.Wrap(_levelErr, "Error serializing 'level' field")
+ // Simple Field (paramNumber)
+ paramNumber := uint8(m.ParamNumber)
+ _paramNumberErr := writeBuffer.WriteUint8("paramNumber", 8, (paramNumber))
+ if _paramNumberErr != nil {
+ return errors.Wrap(_paramNumberErr, "Error serializing 'paramNumber' field")
}
// Array Field (data)
@@ -188,7 +189,7 @@ func (m *ApduDataExtAuthorizeRequest) Serialize(writeBuffer utils.WriteBuffer) e
}
}
- if popErr := writeBuffer.PopContext("ApduDataExtAuthorizeRequest"); popErr != nil {
+ if popErr := writeBuffer.PopContext("CALDataReplyReply"); popErr != nil {
return popErr
}
return nil
@@ -196,7 +197,7 @@ func (m *ApduDataExtAuthorizeRequest) Serialize(writeBuffer utils.WriteBuffer) e
return m.SerializeParent(writeBuffer, m, ser)
}
-func (m *ApduDataExtAuthorizeRequest) String() string {
+func (m *CALDataReplyReply) String() string {
if m == nil {
return "<nil>"
}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatus.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatus.go
new file mode 100644
index 0000000..64c5a5b
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatus.go
@@ -0,0 +1,244 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataReplyStatus struct {
+ *CALData
+ Application *Application
+ BlockStart uint8
+ Data []byte
+}
+
+// The corresponding interface
+type ICALDataReplyStatus interface {
+ // GetApplication returns Application
+ GetApplication() *Application
+ // GetBlockStart returns BlockStart
+ GetBlockStart() uint8
+ // GetData returns Data
+ GetData() []byte
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyStatus) CommandType() CALCommandType {
+ return CALCommandType_STATUS
+}
+
+func (m *CALDataReplyStatus) GetCommandType() CALCommandType {
+ return CALCommandType_STATUS
+}
+
+func (m *CALDataReplyStatus) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyStatus) GetApplication() *Application {
+ return m.Application
+}
+
+func (m *CALDataReplyStatus) GetBlockStart() uint8 {
+ return m.BlockStart
+}
+
+func (m *CALDataReplyStatus) GetData() []byte {
+ return m.Data
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataReplyStatus factory function for CALDataReplyStatus
+func NewCALDataReplyStatus(application *Application, blockStart uint8, data []byte, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataReplyStatus{
+ Application: application,
+ BlockStart: blockStart,
+ Data: data,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataReplyStatus(structType interface{}) *CALDataReplyStatus {
+ castFunc := func(typ interface{}) *CALDataReplyStatus {
+ if casted, ok := typ.(CALDataReplyStatus); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataReplyStatus); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataReplyStatus(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataReplyStatus(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataReplyStatus) GetTypeName() string {
+ return "CALDataReplyStatus"
+}
+
+func (m *CALDataReplyStatus) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataReplyStatus) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (application)
+ lengthInBits += m.Application.GetLengthInBits()
+
+ // Simple field (blockStart)
+ lengthInBits += 8
+
+ // Array field
+ if len(m.Data) > 0 {
+ lengthInBits += 8 * uint16(len(m.Data))
+ }
+
+ return lengthInBits
+}
+
+func (m *CALDataReplyStatus) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataReplyStatusParse(readBuffer utils.ReadBuffer, commandTypeContainer CALCommandTypeContainer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataReplyStatus"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (application)
+ if pullErr := readBuffer.PullContext("application"); pullErr != nil {
+ return nil, pullErr
+ }
+ _application, _applicationErr := ApplicationParse(readBuffer)
+ if _applicationErr != nil {
+ return nil, errors.Wrap(_applicationErr, "Error parsing 'application' field")
+ }
+ application := CastApplication(_application)
+ if closeErr := readBuffer.CloseContext("application"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Simple Field (blockStart)
+ _blockStart, _blockStartErr := readBuffer.ReadUint8("blockStart", 8)
+ if _blockStartErr != nil {
+ return nil, errors.Wrap(_blockStartErr, "Error parsing 'blockStart' field")
+ }
+ blockStart := _blockStart
+ // Byte Array field (data)
+ numberOfBytesdata := int(commandTypeContainer.NumBytes())
+ data, _readArrayErr := readBuffer.ReadByteArray("data", numberOfBytesdata)
+ if _readArrayErr != nil {
+ return nil, errors.Wrap(_readArrayErr, "Error parsing 'data' field")
+ }
+
+ if closeErr := readBuffer.CloseContext("CALDataReplyStatus"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataReplyStatus{
+ Application: CastApplication(application),
+ BlockStart: blockStart,
+ Data: data,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataReplyStatus) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataReplyStatus"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (application)
+ if pushErr := writeBuffer.PushContext("application"); pushErr != nil {
+ return pushErr
+ }
+ _applicationErr := m.Application.Serialize(writeBuffer)
+ if popErr := writeBuffer.PopContext("application"); popErr != nil {
+ return popErr
+ }
+ if _applicationErr != nil {
+ return errors.Wrap(_applicationErr, "Error serializing 'application' field")
+ }
+
+ // Simple Field (blockStart)
+ blockStart := uint8(m.BlockStart)
+ _blockStartErr := writeBuffer.WriteUint8("blockStart", 8, (blockStart))
+ if _blockStartErr != nil {
+ return errors.Wrap(_blockStartErr, "Error serializing 'blockStart' field")
+ }
+
+ // Array Field (data)
+ if m.Data != nil {
+ // Byte Array field (data)
+ _writeArrayErr := writeBuffer.WriteByteArray("data", m.Data)
+ if _writeArrayErr != nil {
+ return errors.Wrap(_writeArrayErr, "Error serializing 'data' field")
+ }
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataReplyStatus"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataReplyStatus) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatusExtended.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatusExtended.go
new file mode 100644
index 0000000..5995cb9
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataReplyStatusExtended.go
@@ -0,0 +1,270 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataReplyStatusExtended struct {
+ *CALData
+ Encoding uint8
+ Application *Application
+ BlockStart uint8
+ Data []byte
+}
+
+// The corresponding interface
+type ICALDataReplyStatusExtended interface {
+ // GetEncoding returns Encoding
+ GetEncoding() uint8
+ // GetApplication returns Application
+ GetApplication() *Application
+ // GetBlockStart returns BlockStart
+ GetBlockStart() uint8
+ // GetData returns Data
+ GetData() []byte
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyStatusExtended) CommandType() CALCommandType {
+ return CALCommandType_STATUS_EXTENDED
+}
+
+func (m *CALDataReplyStatusExtended) GetCommandType() CALCommandType {
+ return CALCommandType_STATUS_EXTENDED
+}
+
+func (m *CALDataReplyStatusExtended) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataReplyStatusExtended) GetEncoding() uint8 {
+ return m.Encoding
+}
+
+func (m *CALDataReplyStatusExtended) GetApplication() *Application {
+ return m.Application
+}
+
+func (m *CALDataReplyStatusExtended) GetBlockStart() uint8 {
+ return m.BlockStart
+}
+
+func (m *CALDataReplyStatusExtended) GetData() []byte {
+ return m.Data
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataReplyStatusExtended factory function for CALDataReplyStatusExtended
+func NewCALDataReplyStatusExtended(encoding uint8, application *Application, blockStart uint8, data []byte, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataReplyStatusExtended{
+ Encoding: encoding,
+ Application: application,
+ BlockStart: blockStart,
+ Data: data,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataReplyStatusExtended(structType interface{}) *CALDataReplyStatusExtended {
+ castFunc := func(typ interface{}) *CALDataReplyStatusExtended {
+ if casted, ok := typ.(CALDataReplyStatusExtended); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataReplyStatusExtended); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataReplyStatusExtended(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataReplyStatusExtended(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataReplyStatusExtended) GetTypeName() string {
+ return "CALDataReplyStatusExtended"
+}
+
+func (m *CALDataReplyStatusExtended) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataReplyStatusExtended) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (encoding)
+ lengthInBits += 8
+
+ // Simple field (application)
+ lengthInBits += m.Application.GetLengthInBits()
+
+ // Simple field (blockStart)
+ lengthInBits += 8
+
+ // Array field
+ if len(m.Data) > 0 {
+ lengthInBits += 8 * uint16(len(m.Data))
+ }
+
+ return lengthInBits
+}
+
+func (m *CALDataReplyStatusExtended) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataReplyStatusExtendedParse(readBuffer utils.ReadBuffer, commandTypeContainer CALCommandTypeContainer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataReplyStatusExtended"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (encoding)
+ _encoding, _encodingErr := readBuffer.ReadUint8("encoding", 8)
+ if _encodingErr != nil {
+ return nil, errors.Wrap(_encodingErr, "Error parsing 'encoding' field")
+ }
+ encoding := _encoding
+
+ // Simple Field (application)
+ if pullErr := readBuffer.PullContext("application"); pullErr != nil {
+ return nil, pullErr
+ }
+ _application, _applicationErr := ApplicationParse(readBuffer)
+ if _applicationErr != nil {
+ return nil, errors.Wrap(_applicationErr, "Error parsing 'application' field")
+ }
+ application := CastApplication(_application)
+ if closeErr := readBuffer.CloseContext("application"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Simple Field (blockStart)
+ _blockStart, _blockStartErr := readBuffer.ReadUint8("blockStart", 8)
+ if _blockStartErr != nil {
+ return nil, errors.Wrap(_blockStartErr, "Error parsing 'blockStart' field")
+ }
+ blockStart := _blockStart
+ // Byte Array field (data)
+ numberOfBytesdata := int(commandTypeContainer.NumBytes())
+ data, _readArrayErr := readBuffer.ReadByteArray("data", numberOfBytesdata)
+ if _readArrayErr != nil {
+ return nil, errors.Wrap(_readArrayErr, "Error parsing 'data' field")
+ }
+
+ if closeErr := readBuffer.CloseContext("CALDataReplyStatusExtended"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataReplyStatusExtended{
+ Encoding: encoding,
+ Application: CastApplication(application),
+ BlockStart: blockStart,
+ Data: data,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataReplyStatusExtended) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataReplyStatusExtended"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (encoding)
+ encoding := uint8(m.Encoding)
+ _encodingErr := writeBuffer.WriteUint8("encoding", 8, (encoding))
+ if _encodingErr != nil {
+ return errors.Wrap(_encodingErr, "Error serializing 'encoding' field")
+ }
+
+ // Simple Field (application)
+ if pushErr := writeBuffer.PushContext("application"); pushErr != nil {
+ return pushErr
+ }
+ _applicationErr := m.Application.Serialize(writeBuffer)
+ if popErr := writeBuffer.PopContext("application"); popErr != nil {
+ return popErr
+ }
+ if _applicationErr != nil {
+ return errors.Wrap(_applicationErr, "Error serializing 'application' field")
+ }
+
+ // Simple Field (blockStart)
+ blockStart := uint8(m.BlockStart)
+ _blockStartErr := writeBuffer.WriteUint8("blockStart", 8, (blockStart))
+ if _blockStartErr != nil {
+ return errors.Wrap(_blockStartErr, "Error serializing 'blockStart' field")
+ }
+
+ // Array Field (data)
+ if m.Data != nil {
+ // Byte Array field (data)
+ _writeArrayErr := writeBuffer.WriteByteArray("data", m.Data)
+ if _writeArrayErr != nil {
+ return errors.Wrap(_writeArrayErr, "Error serializing 'data' field")
+ }
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataReplyStatusExtended"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataReplyStatusExtended) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestGetStatus.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestGetStatus.go
new file mode 100644
index 0000000..406b4b8
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestGetStatus.go
@@ -0,0 +1,204 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataRequestGetStatus struct {
+ *CALData
+ ParamNo uint8
+ Count uint8
+}
+
+// The corresponding interface
+type ICALDataRequestGetStatus interface {
+ // GetParamNo returns ParamNo
+ GetParamNo() uint8
+ // GetCount returns Count
+ GetCount() uint8
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestGetStatus) CommandType() CALCommandType {
+ return CALCommandType_GET_STATUS
+}
+
+func (m *CALDataRequestGetStatus) GetCommandType() CALCommandType {
+ return CALCommandType_GET_STATUS
+}
+
+func (m *CALDataRequestGetStatus) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestGetStatus) GetParamNo() uint8 {
+ return m.ParamNo
+}
+
+func (m *CALDataRequestGetStatus) GetCount() uint8 {
+ return m.Count
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataRequestGetStatus factory function for CALDataRequestGetStatus
+func NewCALDataRequestGetStatus(paramNo uint8, count uint8, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataRequestGetStatus{
+ ParamNo: paramNo,
+ Count: count,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataRequestGetStatus(structType interface{}) *CALDataRequestGetStatus {
+ castFunc := func(typ interface{}) *CALDataRequestGetStatus {
+ if casted, ok := typ.(CALDataRequestGetStatus); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataRequestGetStatus); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataRequestGetStatus(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataRequestGetStatus(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataRequestGetStatus) GetTypeName() string {
+ return "CALDataRequestGetStatus"
+}
+
+func (m *CALDataRequestGetStatus) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataRequestGetStatus) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (paramNo)
+ lengthInBits += 8
+
+ // Simple field (count)
+ lengthInBits += 8
+
+ return lengthInBits
+}
+
+func (m *CALDataRequestGetStatus) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataRequestGetStatusParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataRequestGetStatus"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (paramNo)
+ _paramNo, _paramNoErr := readBuffer.ReadUint8("paramNo", 8)
+ if _paramNoErr != nil {
+ return nil, errors.Wrap(_paramNoErr, "Error parsing 'paramNo' field")
+ }
+ paramNo := _paramNo
+
+ // Simple Field (count)
+ _count, _countErr := readBuffer.ReadUint8("count", 8)
+ if _countErr != nil {
+ return nil, errors.Wrap(_countErr, "Error parsing 'count' field")
+ }
+ count := _count
+
+ if closeErr := readBuffer.CloseContext("CALDataRequestGetStatus"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataRequestGetStatus{
+ ParamNo: paramNo,
+ Count: count,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataRequestGetStatus) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataRequestGetStatus"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (paramNo)
+ paramNo := uint8(m.ParamNo)
+ _paramNoErr := writeBuffer.WriteUint8("paramNo", 8, (paramNo))
+ if _paramNoErr != nil {
+ return errors.Wrap(_paramNoErr, "Error serializing 'paramNo' field")
+ }
+
+ // Simple Field (count)
+ count := uint8(m.Count)
+ _countErr := writeBuffer.WriteUint8("count", 8, (count))
+ if _countErr != nil {
+ return errors.Wrap(_countErr, "Error serializing 'count' field")
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataRequestGetStatus"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataRequestGetStatus) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestIdentify.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestIdentify.go
new file mode 100644
index 0000000..6151e51
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestIdentify.go
@@ -0,0 +1,189 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataRequestIdentify struct {
+ *CALData
+ Attribute Attribute
+}
+
+// The corresponding interface
+type ICALDataRequestIdentify interface {
+ // GetAttribute returns Attribute
+ GetAttribute() Attribute
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestIdentify) CommandType() CALCommandType {
+ return CALCommandType_IDENTIFY
+}
+
+func (m *CALDataRequestIdentify) GetCommandType() CALCommandType {
+ return CALCommandType_IDENTIFY
+}
+
+func (m *CALDataRequestIdentify) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestIdentify) GetAttribute() Attribute {
+ return m.Attribute
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataRequestIdentify factory function for CALDataRequestIdentify
+func NewCALDataRequestIdentify(attribute Attribute, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataRequestIdentify{
+ Attribute: attribute,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataRequestIdentify(structType interface{}) *CALDataRequestIdentify {
+ castFunc := func(typ interface{}) *CALDataRequestIdentify {
+ if casted, ok := typ.(CALDataRequestIdentify); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataRequestIdentify); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataRequestIdentify(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataRequestIdentify(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataRequestIdentify) GetTypeName() string {
+ return "CALDataRequestIdentify"
+}
+
+func (m *CALDataRequestIdentify) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataRequestIdentify) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (attribute)
+ lengthInBits += 8
+
+ return lengthInBits
+}
+
+func (m *CALDataRequestIdentify) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataRequestIdentifyParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataRequestIdentify"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (attribute)
+ if pullErr := readBuffer.PullContext("attribute"); pullErr != nil {
+ return nil, pullErr
+ }
+ _attribute, _attributeErr := AttributeParse(readBuffer)
+ if _attributeErr != nil {
+ return nil, errors.Wrap(_attributeErr, "Error parsing 'attribute' field")
+ }
+ attribute := _attribute
+ if closeErr := readBuffer.CloseContext("attribute"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ if closeErr := readBuffer.CloseContext("CALDataRequestIdentify"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataRequestIdentify{
+ Attribute: attribute,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataRequestIdentify) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataRequestIdentify"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (attribute)
+ if pushErr := writeBuffer.PushContext("attribute"); pushErr != nil {
+ return pushErr
+ }
+ _attributeErr := m.Attribute.Serialize(writeBuffer)
+ if popErr := writeBuffer.PopContext("attribute"); popErr != nil {
+ return popErr
+ }
+ if _attributeErr != nil {
+ return errors.Wrap(_attributeErr, "Error serializing 'attribute' field")
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataRequestIdentify"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataRequestIdentify) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestRecall.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestRecall.go
new file mode 100644
index 0000000..5c1a2fd
--- /dev/null
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestRecall.go
@@ -0,0 +1,204 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package model
+
+import (
+ "github.com/apache/plc4x/plc4go/internal/plc4go/spi/utils"
+ "github.com/pkg/errors"
+)
+
+// Code generated by code-generation. DO NOT EDIT.
+
+// The data-structure of this message
+type CALDataRequestRecall struct {
+ *CALData
+ ParamNo uint8
+ Count uint8
+}
+
+// The corresponding interface
+type ICALDataRequestRecall interface {
+ // GetParamNo returns ParamNo
+ GetParamNo() uint8
+ // GetCount returns Count
+ GetCount() uint8
+ // GetLengthInBytes returns the length in bytes
+ GetLengthInBytes() uint16
+ // GetLengthInBits returns the length in bits
+ GetLengthInBits() uint16
+ // Serialize serializes this type
+ Serialize(writeBuffer utils.WriteBuffer) error
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for discriminator values.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestRecall) CommandType() CALCommandType {
+ return CALCommandType_RECALL
+}
+
+func (m *CALDataRequestRecall) GetCommandType() CALCommandType {
+ return CALCommandType_RECALL
+}
+
+func (m *CALDataRequestRecall) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for property fields.
+///////////////////////////////////////////////////////////
+func (m *CALDataRequestRecall) GetParamNo() uint8 {
+ return m.ParamNo
+}
+
+func (m *CALDataRequestRecall) GetCount() uint8 {
+ return m.Count
+}
+
+///////////////////////////////////////////////////////////
+// Accessors for virtual fields.
+///////////////////////////////////////////////////////////
+
+// NewCALDataRequestRecall factory function for CALDataRequestRecall
+func NewCALDataRequestRecall(paramNo uint8, count uint8, commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataRequestRecall{
+ ParamNo: paramNo,
+ Count: count,
+ CALData: NewCALData(commandTypeContainer),
+ }
+ child.Child = child
+ return child.CALData
+}
+
+func CastCALDataRequestRecall(structType interface{}) *CALDataRequestRecall {
+ castFunc := func(typ interface{}) *CALDataRequestRecall {
+ if casted, ok := typ.(CALDataRequestRecall); ok {
+ return &casted
+ }
+ if casted, ok := typ.(*CALDataRequestRecall); ok {
+ return casted
+ }
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataRequestRecall(casted.Child)
+ }
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataRequestRecall(casted.Child)
+ }
+ return nil
+ }
+ return castFunc(structType)
+}
+
+func (m *CALDataRequestRecall) GetTypeName() string {
+ return "CALDataRequestRecall"
+}
+
+func (m *CALDataRequestRecall) GetLengthInBits() uint16 {
+ return m.GetLengthInBitsConditional(false)
+}
+
+func (m *CALDataRequestRecall) GetLengthInBitsConditional(lastItem bool) uint16 {
+ lengthInBits := uint16(m.GetParentLengthInBits())
+
+ // Simple field (paramNo)
+ lengthInBits += 8
+
+ // Simple field (count)
+ lengthInBits += 8
+
+ return lengthInBits
+}
+
+func (m *CALDataRequestRecall) GetLengthInBytes() uint16 {
+ return m.GetLengthInBits() / 8
+}
+
+func CALDataRequestRecallParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataRequestRecall"); pullErr != nil {
+ return nil, pullErr
+ }
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
+
+ // Simple Field (paramNo)
+ _paramNo, _paramNoErr := readBuffer.ReadUint8("paramNo", 8)
+ if _paramNoErr != nil {
+ return nil, errors.Wrap(_paramNoErr, "Error parsing 'paramNo' field")
+ }
+ paramNo := _paramNo
+
+ // Simple Field (count)
+ _count, _countErr := readBuffer.ReadUint8("count", 8)
+ if _countErr != nil {
+ return nil, errors.Wrap(_countErr, "Error parsing 'count' field")
+ }
+ count := _count
+
+ if closeErr := readBuffer.CloseContext("CALDataRequestRecall"); closeErr != nil {
+ return nil, closeErr
+ }
+
+ // Create a partially initialized instance
+ _child := &CALDataRequestRecall{
+ ParamNo: paramNo,
+ Count: count,
+ CALData: &CALData{},
+ }
+ _child.CALData.Child = _child
+ return _child.CALData, nil
+}
+
+func (m *CALDataRequestRecall) Serialize(writeBuffer utils.WriteBuffer) error {
+ ser := func() error {
+ if pushErr := writeBuffer.PushContext("CALDataRequestRecall"); pushErr != nil {
+ return pushErr
+ }
+
+ // Simple Field (paramNo)
+ paramNo := uint8(m.ParamNo)
+ _paramNoErr := writeBuffer.WriteUint8("paramNo", 8, (paramNo))
+ if _paramNoErr != nil {
+ return errors.Wrap(_paramNoErr, "Error serializing 'paramNo' field")
+ }
+
+ // Simple Field (count)
+ count := uint8(m.Count)
+ _countErr := writeBuffer.WriteUint8("count", 8, (count))
+ if _countErr != nil {
+ return errors.Wrap(_countErr, "Error serializing 'count' field")
+ }
+
+ if popErr := writeBuffer.PopContext("CALDataRequestRecall"); popErr != nil {
+ return popErr
+ }
+ return nil
+ }
+ return m.SerializeParent(writeBuffer, m, ser)
+}
+
+func (m *CALDataRequestRecall) String() string {
+ if m == nil {
+ return "<nil>"
+ }
+ buffer := utils.NewBoxedWriteBufferWithOptions(true, true)
+ m.Serialize(buffer)
+ return buffer.GetBox().String()
+}
diff --git a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestReset.go
similarity index 55%
copy from plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go
copy to plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestReset.go
index 779a800..2d2d2da 100644
--- a/plc4go/internal/plc4go/ads/readwrite/model/AdsReadStateRequest.go
+++ b/plc4go/internal/plc4go/cbus/readwrite/model/CALDataRequestReset.go
@@ -26,12 +26,12 @@ import (
// Code generated by code-generation. DO NOT EDIT.
// The data-structure of this message
-type AdsReadStateRequest struct {
- *AdsData
+type CALDataRequestReset struct {
+ *CALData
}
// The corresponding interface
-type IAdsReadStateRequest interface {
+type ICALDataRequestReset interface {
// GetLengthInBytes returns the length in bytes
GetLengthInBytes() uint16
// GetLengthInBits returns the length in bits
@@ -43,24 +43,18 @@ type IAdsReadStateRequest interface {
///////////////////////////////////////////////////////////
// Accessors for discriminator values.
///////////////////////////////////////////////////////////
-func (m *AdsReadStateRequest) CommandId() CommandId {
- return CommandId_ADS_READ_STATE
+func (m *CALDataRequestReset) CommandType() CALCommandType {
+ return CALCommandType_RESET
}
-func (m *AdsReadStateRequest) GetCommandId() CommandId {
- return CommandId_ADS_READ_STATE
+func (m *CALDataRequestReset) GetCommandType() CALCommandType {
+ return CALCommandType_RESET
}
-func (m *AdsReadStateRequest) Response() bool {
- return bool(false)
+func (m *CALDataRequestReset) InitializeParent(parent *CALData, commandTypeContainer CALCommandTypeContainer) {
+ m.CALData.CommandTypeContainer = commandTypeContainer
}
-func (m *AdsReadStateRequest) GetResponse() bool {
- return bool(false)
-}
-
-func (m *AdsReadStateRequest) InitializeParent(parent *AdsData) {}
-
///////////////////////////////////////////////////////////
// Accessors for property fields.
///////////////////////////////////////////////////////////
@@ -69,76 +63,78 @@ func (m *AdsReadStateRequest) InitializeParent(parent *AdsData) {}
// Accessors for virtual fields.
///////////////////////////////////////////////////////////
-// NewAdsReadStateRequest factory function for AdsReadStateRequest
-func NewAdsReadStateRequest() *AdsData {
- child := &AdsReadStateRequest{
- AdsData: NewAdsData(),
+// NewCALDataRequestReset factory function for CALDataRequestReset
+func NewCALDataRequestReset(commandTypeContainer CALCommandTypeContainer) *CALData {
+ child := &CALDataRequestReset{
+ CALData: NewCALData(commandTypeContainer),
}
child.Child = child
- return child.AdsData
+ return child.CALData
}
-func CastAdsReadStateRequest(structType interface{}) *AdsReadStateRequest {
- castFunc := func(typ interface{}) *AdsReadStateRequest {
- if casted, ok := typ.(AdsReadStateRequest); ok {
+func CastCALDataRequestReset(structType interface{}) *CALDataRequestReset {
+ castFunc := func(typ interface{}) *CALDataRequestReset {
+ if casted, ok := typ.(CALDataRequestReset); ok {
return &casted
}
- if casted, ok := typ.(*AdsReadStateRequest); ok {
+ if casted, ok := typ.(*CALDataRequestReset); ok {
return casted
}
- if casted, ok := typ.(AdsData); ok {
- return CastAdsReadStateRequest(casted.Child)
+ if casted, ok := typ.(CALData); ok {
+ return CastCALDataRequestReset(casted.Child)
}
- if casted, ok := typ.(*AdsData); ok {
- return CastAdsReadStateRequest(casted.Child)
+ if casted, ok := typ.(*CALData); ok {
+ return CastCALDataRequestReset(casted.Child)
}
return nil
}
return castFunc(structType)
}
-func (m *AdsReadStateRequest) GetTypeName() string {
- return "AdsReadStateRequest"
+func (m *CALDataRequestReset) GetTypeName() string {
+ return "CALDataRequestReset"
}
-func (m *AdsReadStateRequest) GetLengthInBits() uint16 {
+func (m *CALDataRequestReset) GetLengthInBits() uint16 {
return m.GetLengthInBitsConditional(false)
}
-func (m *AdsReadStateRequest) GetLengthInBitsConditional(lastItem bool) uint16 {
+func (m *CALDataRequestReset) GetLengthInBitsConditional(lastItem bool) uint16 {
lengthInBits := uint16(m.GetParentLengthInBits())
return lengthInBits
}
-func (m *AdsReadStateRequest) GetLengthInBytes() uint16 {
+func (m *CALDataRequestReset) GetLengthInBytes() uint16 {
return m.GetLengthInBits() / 8
}
-func AdsReadStateRequestParse(readBuffer utils.ReadBuffer, commandId CommandId, response bool) (*AdsData, error) {
- if pullErr := readBuffer.PullContext("AdsReadStateRequest"); pullErr != nil {
+func CALDataRequestResetParse(readBuffer utils.ReadBuffer) (*CALData, error) {
+ if pullErr := readBuffer.PullContext("CALDataRequestReset"); pullErr != nil {
return nil, pullErr
}
+ currentPos := readBuffer.GetPos()
+ _ = currentPos
- if closeErr := readBuffer.CloseContext("AdsReadStateRequest"); closeErr != nil {
+ if closeErr := readBuffer.CloseContext("CALDataRequestReset"); closeErr != nil {
return nil, closeErr
}
// Create a partially initialized instance
- _child := &AdsReadStateRequest{
- AdsData: &AdsData{},
+ _child := &CALDataRequestReset{
+ CALData: &CALData{},
}
- _child.AdsData.Child = _child
- return _child.AdsData, nil
+ _child.CALData.Child = _child
+ return _child.CALData, nil
}
-func (m *AdsReadStateRequest) Serialize(writeBuffer utils.WriteBuffer) error {
+func (m *CALDataRequestReset) Serialize(writeBuffer utils.WriteBuffer) error {
ser := func() error {
- if pushErr := writeBuffer.PushContext("AdsReadStateRequest"); pushErr != nil {
+ if pushErr := writeBuffer.PushContext("CALDataRequestReset"); pushErr != nil {
return pushErr
}
- if popErr := writeBuffer.PopContext("AdsReadStateRequest"); popErr != nil {
+ if popErr := writeBuffer.PopContext("CALDataRequestReset"); popErr != nil {
return popErr
}
return nil
@@ -146,7 +142,7 @@ func (m *AdsReadStateRequest) Serialize(writeBuffer utils.WriteBuffer) error {
return m.SerializeParent(writeBuffer, m, ser)
}
-func (m *AdsReadStateRequest) String() string {
+func (m *CALDataRequestReset) String() string {
if m == nil {
return "<nil>"
}
... 19394 lines suppressed ...