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 2023/06/15 08:14:54 UTC
[plc4x] branch develop updated: feat(plc4go): new config.WithPassLoggerToModel option
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 54dbdec05f feat(plc4go): new config.WithPassLoggerToModel option
54dbdec05f is described below
commit 54dbdec05f6317b77643fb7c22623d57ce2a64aa
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Jun 15 10:14:34 2023 +0200
feat(plc4go): new config.WithPassLoggerToModel option
- With this you can configure if the logger of the code calling parse should pass it's logger as context. Otherwise the logger from the context is used.
---
.../templates/go/complex-type-template.go.ftlh | 11 +-
.../templates/go/data-io-template.go.ftlh | 5 +
.../resources/templates/go/enum-template.go.ftlh | 9 +-
.../resources/templates/go/plc4x_common.go.ftlh | 5 -
plc4go/internal/cbus/Browser_test.go | 6 -
plc4go/internal/cbus/CBusMessageMapper_test.go | 1 -
plc4go/internal/cbus/Connection_test.go | 47 +------
plc4go/internal/cbus/Discoverer_test.go | 4 -
plc4go/internal/cbus/MessageCodec_test.go | 36 ------
plc4go/internal/cbus/Reader_test.go | 32 -----
plc4go/internal/cbus/Subscriber.go | 11 ++
plc4go/pkg/api/config/config.go | 5 +
.../model/CIPEncapsulationConnectionRequest.go | 5 +
.../model/CIPEncapsulationConnectionResponse.go | 5 +
.../readwrite/model/CIPEncapsulationPacket.go | 9 +-
.../readwrite/model/CIPEncapsulationReadRequest.go | 5 +
.../model/CIPEncapsulationReadResponse.go | 5 +
.../readwrite/model/DF1CommandRequestMessage.go | 5 +
...mandResponseMessageProtectedTypedLogicalRead.go | 5 +
.../abeth/readwrite/model/DF1RequestCommand.go | 5 +
.../abeth/readwrite/model/DF1RequestMessage.go | 9 +-
.../model/DF1RequestProtectedTypedLogicalRead.go | 5 +
.../abeth/readwrite/model/DF1ResponseMessage.go | 13 +-
.../abeth/readwrite/model/plc4x_common.go | 5 -
.../ads/discovery/readwrite/model/AdsDiscovery.go | 5 +
.../discovery/readwrite/model/AdsDiscoveryBlock.go | 5 +
.../readwrite/model/AdsDiscoveryBlockAmsNetId.go | 5 +
.../model/AdsDiscoveryBlockFingerprint.go | 5 +
.../readwrite/model/AdsDiscoveryBlockHostName.go | 5 +
.../readwrite/model/AdsDiscoveryBlockOsData.go | 5 +
.../readwrite/model/AdsDiscoveryBlockPassword.go | 5 +
.../readwrite/model/AdsDiscoveryBlockRouteName.go | 5 +
.../readwrite/model/AdsDiscoveryBlockStatus.go | 5 +
.../readwrite/model/AdsDiscoveryBlockType.go | 9 +-
.../readwrite/model/AdsDiscoveryBlockUserName.go | 5 +
.../readwrite/model/AdsDiscoveryBlockVersion.go | 5 +
.../readwrite/model/AdsDiscoveryConstants.go | 5 +
.../discovery/readwrite/model/AdsPortNumbers.go | 9 +-
.../ads/discovery/readwrite/model/AmsNetId.go | 5 +
.../ads/discovery/readwrite/model/AmsString.go | 9 +-
.../ads/discovery/readwrite/model/Operation.go | 9 +-
.../ads/discovery/readwrite/model/Status.go | 9 +-
.../ads/discovery/readwrite/model/plc4x_common.go | 5 -
.../model/AdsAddDeviceNotificationRequest.go | 13 +-
.../model/AdsAddDeviceNotificationResponse.go | 5 +
.../protocols/ads/readwrite/model/AdsConstants.go | 5 +
.../protocols/ads/readwrite/model/AdsDataType.go | 9 +-
.../ads/readwrite/model/AdsDataTypeArrayInfo.go | 5 +
.../readwrite/model/AdsDataTypeTableChildEntry.go | 5 +
.../ads/readwrite/model/AdsDataTypeTableEntry.go | 5 +
.../model/AdsDeleteDeviceNotificationRequest.go | 5 +
.../model/AdsDeleteDeviceNotificationResponse.go | 5 +
.../model/AdsDeviceNotificationRequest.go | 5 +
.../model/AdsDeviceNotificationResponse.go | 5 +
.../ads/readwrite/model/AdsInvalidRequest.go | 5 +
.../ads/readwrite/model/AdsInvalidResponse.go | 5 +
.../ads/readwrite/model/AdsMultiRequestItem.go | 5 +
.../ads/readwrite/model/AdsMultiRequestItemRead.go | 5 +
.../model/AdsMultiRequestItemReadWrite.go | 5 +
.../readwrite/model/AdsMultiRequestItemWrite.go | 5 +
.../ads/readwrite/model/AdsNotificationSample.go | 5 +
.../readwrite/model/AdsReadDeviceInfoRequest.go | 5 +
.../readwrite/model/AdsReadDeviceInfoResponse.go | 5 +
.../ads/readwrite/model/AdsReadRequest.go | 5 +
.../ads/readwrite/model/AdsReadResponse.go | 5 +
.../ads/readwrite/model/AdsReadStateRequest.go | 5 +
.../ads/readwrite/model/AdsReadStateResponse.go | 5 +
.../ads/readwrite/model/AdsReadWriteRequest.go | 5 +
.../ads/readwrite/model/AdsReadWriteResponse.go | 5 +
.../ads/readwrite/model/AdsStampHeader.go | 5 +
.../ads/readwrite/model/AdsSymbolTableEntry.go | 13 +-
.../protocols/ads/readwrite/model/AdsTableSizes.go | 5 +
.../protocols/ads/readwrite/model/AdsTransMode.go | 9 +-
.../ads/readwrite/model/AdsWriteControlRequest.go | 5 +
.../ads/readwrite/model/AdsWriteControlResponse.go | 5 +
.../ads/readwrite/model/AdsWriteRequest.go | 5 +
.../ads/readwrite/model/AdsWriteResponse.go | 5 +
plc4go/protocols/ads/readwrite/model/AmsNetId.go | 5 +
plc4go/protocols/ads/readwrite/model/AmsPacket.go | 9 +-
.../readwrite/model/AmsSerialAcknowledgeFrame.go | 5 +
.../ads/readwrite/model/AmsSerialFrame.go | 5 +
.../ads/readwrite/model/AmsSerialResetFrame.go | 5 +
.../protocols/ads/readwrite/model/AmsTCPPacket.go | 9 +-
plc4go/protocols/ads/readwrite/model/CommandId.go | 9 +-
plc4go/protocols/ads/readwrite/model/DataItem.go | 5 +
.../ads/readwrite/model/DefaultAmsPorts.go | 9 +-
.../protocols/ads/readwrite/model/ErrorResponse.go | 5 +
.../protocols/ads/readwrite/model/PlcValueType.go | 9 +-
.../ads/readwrite/model/ReservedIndexGroups.go | 9 +-
plc4go/protocols/ads/readwrite/model/ReturnCode.go | 9 +-
.../protocols/ads/readwrite/model/plc4x_common.go | 5 -
plc4go/protocols/bacnetip/readwrite/model/APDU.go | 5 +
.../bacnetip/readwrite/model/APDUAbort.go | 9 +-
.../bacnetip/readwrite/model/APDUComplexAck.go | 11 +-
.../readwrite/model/APDUConfirmedRequest.go | 11 +-
.../bacnetip/readwrite/model/APDUError.go | 9 +-
.../bacnetip/readwrite/model/APDUReject.go | 9 +-
.../bacnetip/readwrite/model/APDUSegmentAck.go | 9 +-
.../bacnetip/readwrite/model/APDUSimpleAck.go | 9 +-
.../readwrite/model/APDUUnconfirmedRequest.go | 9 +-
.../bacnetip/readwrite/model/APDUUnknown.go | 5 +
.../protocols/bacnetip/readwrite/model/ApduType.go | 9 +-
.../bacnetip/readwrite/model/BACnetAbortReason.go | 9 +-
.../readwrite/model/BACnetAbortReasonTagged.go | 5 +
.../BACnetAccessAuthenticationFactorDisable.go | 9 +-
...ACnetAccessAuthenticationFactorDisableTagged.go | 5 +
.../model/BACnetAccessCredentialDisable.go | 9 +-
.../model/BACnetAccessCredentialDisableReason.go | 9 +-
.../BACnetAccessCredentialDisableReasonTagged.go | 5 +
.../model/BACnetAccessCredentialDisableTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetAccessEvent.go | 9 +-
.../readwrite/model/BACnetAccessEventTagged.go | 5 +
.../readwrite/model/BACnetAccessPassbackMode.go | 9 +-
.../model/BACnetAccessPassbackModeTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetAccessRule.go | 9 +-
.../model/BACnetAccessRuleLocationSpecifier.go | 9 +-
.../BACnetAccessRuleLocationSpecifierTagged.go | 5 +
.../model/BACnetAccessRuleTimeRangeSpecifier.go | 9 +-
.../BACnetAccessRuleTimeRangeSpecifierTagged.go | 5 +
.../readwrite/model/BACnetAccessThreatLevel.go | 5 +
.../readwrite/model/BACnetAccessUserType.go | 9 +-
.../readwrite/model/BACnetAccessUserTypeTagged.go | 5 +
.../model/BACnetAccessZoneOccupancyState.go | 9 +-
.../model/BACnetAccessZoneOccupancyStateTagged.go | 5 +
.../readwrite/model/BACnetAccumulatorRecord.go | 5 +
.../BACnetAccumulatorRecordAccumulatorStatus.go | 9 +-
...CnetAccumulatorRecordAccumulatorStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetAction.go | 9 +-
.../readwrite/model/BACnetActionCommand.go | 15 ++-
.../bacnetip/readwrite/model/BACnetActionList.go | 5 +
.../bacnetip/readwrite/model/BACnetActionTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetAddress.go | 5 +
.../readwrite/model/BACnetAddressBinding.go | 5 +
.../readwrite/model/BACnetAddressEnclosed.go | 5 +
.../readwrite/model/BACnetApplicationTag.go | 5 +
.../model/BACnetApplicationTagBitString.go | 5 +
.../readwrite/model/BACnetApplicationTagBoolean.go | 5 +
.../model/BACnetApplicationTagCharacterString.go | 5 +
.../readwrite/model/BACnetApplicationTagDate.go | 5 +
.../readwrite/model/BACnetApplicationTagDouble.go | 5 +
.../model/BACnetApplicationTagEnumerated.go | 5 +
.../readwrite/model/BACnetApplicationTagNull.go | 5 +
.../model/BACnetApplicationTagObjectIdentifier.go | 5 +
.../model/BACnetApplicationTagOctetString.go | 5 +
.../readwrite/model/BACnetApplicationTagReal.go | 5 +
.../model/BACnetApplicationTagSignedInteger.go | 5 +
.../readwrite/model/BACnetApplicationTagTime.go | 5 +
.../model/BACnetApplicationTagUnsignedInteger.go | 5 +
.../readwrite/model/BACnetAssignedAccessRights.go | 5 +
.../readwrite/model/BACnetAssignedLandingCalls.go | 5 +
.../BACnetAssignedLandingCallsLandingCallsList.go | 5 +
...netAssignedLandingCallsLandingCallsListEntry.go | 5 +
.../readwrite/model/BACnetAuthenticationFactor.go | 5 +
.../model/BACnetAuthenticationFactorEnclosed.go | 5 +
.../model/BACnetAuthenticationFactorFormat.go | 9 +-
.../model/BACnetAuthenticationFactorType.go | 9 +-
.../model/BACnetAuthenticationFactorTypeTagged.go | 5 +
.../readwrite/model/BACnetAuthenticationPolicy.go | 5 +
.../model/BACnetAuthenticationPolicyList.go | 5 +
.../model/BACnetAuthenticationPolicyListEntry.go | 5 +
.../readwrite/model/BACnetAuthenticationStatus.go | 9 +-
.../model/BACnetAuthenticationStatusTagged.go | 5 +
.../model/BACnetAuthorizationExemption.go | 9 +-
.../model/BACnetAuthorizationExemptionTagged.go | 5 +
.../readwrite/model/BACnetAuthorizationMode.go | 9 +-
.../model/BACnetAuthorizationModeTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetBDTEntry.go | 7 +-
.../bacnetip/readwrite/model/BACnetBackupState.go | 9 +-
.../readwrite/model/BACnetBackupStateTagged.go | 5 +
.../readwrite/model/BACnetBinaryLightingPV.go | 9 +-
.../model/BACnetBinaryLightingPVTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetBinaryPV.go | 9 +-
.../readwrite/model/BACnetBinaryPVTagged.go | 5 +
.../model/BACnetCOVMultipleSubscription.go | 5 +
...bscriptionListOfCovSubscriptionSpecification.go | 5 +
...ptionListOfCovSubscriptionSpecificationEntry.go | 5 +
...riptionSpecificationEntryListOfCovReferences.go | 5 +
...onSpecificationEntryListOfCovReferencesEntry.go | 7 +-
.../readwrite/model/BACnetCOVSubscription.go | 7 +-
.../readwrite/model/BACnetCalendarEntry.go | 5 +
.../readwrite/model/BACnetCalendarEntryDate.go | 5 +
.../model/BACnetCalendarEntryDateRange.go | 5 +
.../readwrite/model/BACnetCalendarEntryEnclosed.go | 5 +
.../readwrite/model/BACnetCalendarEntryWeekNDay.go | 5 +
.../bacnetip/readwrite/model/BACnetChannelValue.go | 5 +
.../readwrite/model/BACnetChannelValueBitString.go | 5 +
.../readwrite/model/BACnetChannelValueBoolean.go | 5 +
.../model/BACnetChannelValueCharacterString.go | 5 +
.../readwrite/model/BACnetChannelValueDate.go | 5 +
.../readwrite/model/BACnetChannelValueDouble.go | 5 +
.../model/BACnetChannelValueEnumerated.go | 5 +
.../readwrite/model/BACnetChannelValueInteger.go | 5 +
.../model/BACnetChannelValueLightingCommand.go | 5 +
.../readwrite/model/BACnetChannelValueNull.go | 5 +
.../model/BACnetChannelValueObjectidentifier.go | 5 +
.../model/BACnetChannelValueOctetString.go | 5 +
.../readwrite/model/BACnetChannelValueReal.go | 5 +
.../readwrite/model/BACnetChannelValueTime.go | 5 +
.../readwrite/model/BACnetChannelValueUnsigned.go | 5 +
.../readwrite/model/BACnetCharacterEncoding.go | 9 +-
.../bacnetip/readwrite/model/BACnetClientCOV.go | 5 +
.../readwrite/model/BACnetClientCOVNone.go | 5 +
.../readwrite/model/BACnetClientCOVObject.go | 5 +
.../bacnetip/readwrite/model/BACnetClosingTag.go | 5 +
.../model/BACnetConfirmedServiceChoice.go | 9 +-
.../model/BACnetConfirmedServiceRequest.go | 5 +
...ACnetConfirmedServiceRequestAcknowledgeAlarm.go | 5 +
.../BACnetConfirmedServiceRequestAddListElement.go | 9 +-
.../BACnetConfirmedServiceRequestAtomicReadFile.go | 5 +
...tConfirmedServiceRequestAtomicReadFileRecord.go | 5 +
...tConfirmedServiceRequestAtomicReadFileStream.go | 5 +
...edServiceRequestAtomicReadFileStreamOrRecord.go | 5 +
...BACnetConfirmedServiceRequestAtomicWriteFile.go | 9 +-
.../BACnetConfirmedServiceRequestAuthenticate.go | 5 +
...firmedServiceRequestConfirmedCOVNotification.go | 5 +
...rviceRequestConfirmedCOVNotificationMultiple.go | 7 +-
...rmedServiceRequestConfirmedEventNotification.go | 13 +-
...firmedServiceRequestConfirmedPrivateTransfer.go | 7 +-
...tConfirmedServiceRequestConfirmedTextMessage.go | 7 +-
...rviceRequestConfirmedTextMessageMessageClass.go | 5 +
...estConfirmedTextMessageMessageClassCharacter.go | 5 +
...questConfirmedTextMessageMessageClassNumeric.go | 5 +
...ceRequestConfirmedTextMessageMessagePriority.go | 9 +-
...estConfirmedTextMessageMessagePriorityTagged.go | 5 +
.../BACnetConfirmedServiceRequestCreateObject.go | 7 +-
...medServiceRequestCreateObjectObjectSpecifier.go | 9 +-
.../BACnetConfirmedServiceRequestDeleteObject.go | 5 +
...rmedServiceRequestDeviceCommunicationControl.go | 9 +-
...questDeviceCommunicationControlEnableDisable.go | 9 +-
...eviceCommunicationControlEnableDisableTagged.go | 5 +
...tConfirmedServiceRequestGetEnrollmentSummary.go | 15 ++-
...estGetEnrollmentSummaryAcknowledgementFilter.go | 9 +-
...EnrollmentSummaryAcknowledgementFilterTagged.go | 5 +
...eRequestGetEnrollmentSummaryEventStateFilter.go | 9 +-
...stGetEnrollmentSummaryEventStateFilterTagged.go | 5 +
...iceRequestGetEnrollmentSummaryPriorityFilter.go | 5 +
...etConfirmedServiceRequestGetEventInformation.go | 7 +-
...etConfirmedServiceRequestLifeSafetyOperation.go | 7 +-
.../BACnetConfirmedServiceRequestReadProperty.go | 7 +-
...nfirmedServiceRequestReadPropertyConditional.go | 5 +
...tConfirmedServiceRequestReadPropertyMultiple.go | 5 +
.../BACnetConfirmedServiceRequestReadRange.go | 9 +-
.../BACnetConfirmedServiceRequestReadRangeRange.go | 5 +
...firmedServiceRequestReadRangeRangeByPosition.go | 5 +
...ServiceRequestReadRangeRangeBySequenceNumber.go | 5 +
...tConfirmedServiceRequestReadRangeRangeByTime.go | 5 +
...netConfirmedServiceRequestReinitializeDevice.go | 7 +-
...ReinitializeDeviceReinitializedStateOfDevice.go | 9 +-
...ializeDeviceReinitializedStateOfDeviceTagged.go | 5 +
...CnetConfirmedServiceRequestRemoveListElement.go | 9 +-
.../BACnetConfirmedServiceRequestRequestKey.go | 5 +
.../BACnetConfirmedServiceRequestSubscribeCOV.go | 9 +-
...tConfirmedServiceRequestSubscribeCOVProperty.go | 11 +-
...edServiceRequestSubscribeCOVPropertyMultiple.go | 11 +-
...yMultipleListOfCovSubscriptionSpecifications.go | 5 +
...tipleListOfCovSubscriptionSpecificationsList.go | 5 +
...ListOfCovSubscriptionSpecificationsReference.go | 7 +-
.../model/BACnetConfirmedServiceRequestUnknown.go | 5 +
.../model/BACnetConfirmedServiceRequestVTClose.go | 5 +
.../model/BACnetConfirmedServiceRequestVTData.go | 5 +
.../model/BACnetConfirmedServiceRequestVTOpen.go | 5 +
.../BACnetConfirmedServiceRequestWriteProperty.go | 9 +-
...ConfirmedServiceRequestWritePropertyMultiple.go | 5 +
.../readwrite/model/BACnetConstructedData.go | 5 +
.../model/BACnetConstructedDataAPDULength.go | 5 +
.../BACnetConstructedDataAPDUSegmentTimeout.go | 5 +
.../model/BACnetConstructedDataAPDUTimeout.go | 5 +
.../model/BACnetConstructedDataAbsenteeLimit.go | 5 +
.../model/BACnetConstructedDataAcceptedModes.go | 5 +
.../BACnetConstructedDataAccessAlarmEvents.go | 5 +
.../BACnetConstructedDataAccessCredentialAll.go | 5 +
.../BACnetConstructedDataAccessDoorAlarmValues.go | 5 +
.../model/BACnetConstructedDataAccessDoorAll.go | 5 +
.../BACnetConstructedDataAccessDoorFaultValues.go | 5 +
.../BACnetConstructedDataAccessDoorPresentValue.go | 5 +
...etConstructedDataAccessDoorRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataAccessDoors.go | 7 +-
.../model/BACnetConstructedDataAccessEvent.go | 5 +
...nstructedDataAccessEventAuthenticationFactor.go | 5 +
.../BACnetConstructedDataAccessEventCredential.go | 5 +
.../model/BACnetConstructedDataAccessEventTag.go | 5 +
.../model/BACnetConstructedDataAccessEventTime.go | 5 +
.../model/BACnetConstructedDataAccessPointAll.go | 5 +
.../model/BACnetConstructedDataAccessRightsAll.go | 5 +
...BACnetConstructedDataAccessTransactionEvents.go | 5 +
.../model/BACnetConstructedDataAccessUserAll.go | 5 +
.../BACnetConstructedDataAccessZoneAdjustValue.go | 5 +
.../BACnetConstructedDataAccessZoneAlarmValues.go | 5 +
.../model/BACnetConstructedDataAccessZoneAll.go | 5 +
.../model/BACnetConstructedDataAccompaniment.go | 5 +
.../BACnetConstructedDataAccompanimentTime.go | 5 +
.../model/BACnetConstructedDataAccumulatorAll.go | 5 +
...CnetConstructedDataAccumulatorFaultHighLimit.go | 5 +
...ACnetConstructedDataAccumulatorFaultLowLimit.go | 5 +
.../BACnetConstructedDataAccumulatorHighLimit.go | 5 +
.../BACnetConstructedDataAccumulatorLowLimit.go | 5 +
...BACnetConstructedDataAccumulatorMaxPresValue.go | 5 +
...BACnetConstructedDataAccumulatorMinPresValue.go | 5 +
.../model/BACnetConstructedDataAckRequired.go | 5 +
.../model/BACnetConstructedDataAckedTransitions.go | 5 +
.../readwrite/model/BACnetConstructedDataAction.go | 7 +-
.../model/BACnetConstructedDataActionText.go | 7 +-
.../model/BACnetConstructedDataActivationTime.go | 5 +
...netConstructedDataActiveAuthenticationPolicy.go | 5 +
...onstructedDataActiveCOVMultipleSubscriptions.go | 5 +
.../BACnetConstructedDataActiveCOVSubscriptions.go | 5 +
.../model/BACnetConstructedDataActiveText.go | 5 +
.../model/BACnetConstructedDataActiveVTSessions.go | 5 +
.../model/BACnetConstructedDataActualShedLevel.go | 5 +
.../model/BACnetConstructedDataAdjustValue.go | 5 +
.../model/BACnetConstructedDataAlarmValue.go | 5 +
.../model/BACnetConstructedDataAlarmValues.go | 7 +-
.../BACnetConstructedDataAlertEnrollmentAll.go | 5 +
...etConstructedDataAlertEnrollmentPresentValue.go | 5 +
.../model/BACnetConstructedDataAlignIntervals.go | 5 +
.../BACnetConstructedDataAllWritesSuccessful.go | 5 +
.../BACnetConstructedDataAllowGroupDelayInhibit.go | 5 +
.../model/BACnetConstructedDataAnalogInputAll.go | 5 +
...CnetConstructedDataAnalogInputFaultHighLimit.go | 5 +
...ACnetConstructedDataAnalogInputFaultLowLimit.go | 5 +
...CnetConstructedDataAnalogInputInterfaceValue.go | 5 +
...BACnetConstructedDataAnalogInputMaxPresValue.go | 5 +
...BACnetConstructedDataAnalogInputPresentValue.go | 5 +
.../model/BACnetConstructedDataAnalogOutputAll.go | 5 +
...netConstructedDataAnalogOutputInterfaceValue.go | 5 +
...ACnetConstructedDataAnalogOutputMaxPresValue.go | 5 +
...ACnetConstructedDataAnalogOutputPresentValue.go | 5 +
...ConstructedDataAnalogOutputRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataAnalogValueAll.go | 5 +
...CnetConstructedDataAnalogValueFaultHighLimit.go | 5 +
...ACnetConstructedDataAnalogValueFaultLowLimit.go | 5 +
...BACnetConstructedDataAnalogValueMaxPresValue.go | 5 +
...BACnetConstructedDataAnalogValuePresentValue.go | 5 +
...tConstructedDataAnalogValueRelinquishDefault.go | 5 +
...netConstructedDataApplicationSoftwareVersion.go | 5 +
.../model/BACnetConstructedDataArchive.go | 5 +
.../BACnetConstructedDataAssignedAccessRights.go | 7 +-
.../BACnetConstructedDataAssignedLandingCalls.go | 7 +-
.../model/BACnetConstructedDataAttemptedSamples.go | 5 +
.../BACnetConstructedDataAuthenticationFactors.go | 7 +-
...ACnetConstructedDataAuthenticationPolicyList.go | 7 +-
...CnetConstructedDataAuthenticationPolicyNames.go | 7 +-
.../BACnetConstructedDataAuthenticationStatus.go | 5 +
...BACnetConstructedDataAuthorizationExemptions.go | 5 +
.../BACnetConstructedDataAuthorizationMode.go | 5 +
.../BACnetConstructedDataAutoSlaveDiscovery.go | 5 +
.../model/BACnetConstructedDataAverageValue.go | 5 +
.../model/BACnetConstructedDataAveragingAll.go | 5 +
.../BACnetConstructedDataBACnetIPGlobalAddress.go | 5 +
.../model/BACnetConstructedDataBACnetIPMode.go | 5 +
...ACnetConstructedDataBACnetIPMulticastAddress.go | 5 +
.../BACnetConstructedDataBACnetIPNATTraversal.go | 5 +
.../model/BACnetConstructedDataBACnetIPUDPPort.go | 5 +
.../model/BACnetConstructedDataBACnetIPv6Mode.go | 5 +
...netConstructedDataBACnetIPv6MulticastAddress.go | 5 +
.../BACnetConstructedDataBACnetIPv6UDPPort.go | 5 +
...CnetConstructedDataBBMDAcceptFDRegistrations.go | 5 +
...onstructedDataBBMDBroadcastDistributionTable.go | 5 +
.../BACnetConstructedDataBBMDForeignDeviceTable.go | 5 +
.../BACnetConstructedDataBackupAndRestoreState.go | 5 +
.../BACnetConstructedDataBackupFailureTimeout.go | 5 +
.../BACnetConstructedDataBackupPreparationTime.go | 5 +
...ACnetConstructedDataBaseDeviceSecurityPolicy.go | 5 +
.../model/BACnetConstructedDataBelongsTo.go | 5 +
.../readwrite/model/BACnetConstructedDataBias.go | 5 +
.../model/BACnetConstructedDataBinaryInputAll.go | 5 +
...CnetConstructedDataBinaryInputInterfaceValue.go | 5 +
...BACnetConstructedDataBinaryInputPresentValue.go | 5 +
...BACnetConstructedDataBinaryLightingOutputAll.go | 5 +
...tructedDataBinaryLightingOutputFeedbackValue.go | 5 +
...structedDataBinaryLightingOutputPresentValue.go | 5 +
...tedDataBinaryLightingOutputRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataBinaryOutputAll.go | 5 +
...CnetConstructedDataBinaryOutputFeedbackValue.go | 5 +
...netConstructedDataBinaryOutputInterfaceValue.go | 5 +
...ACnetConstructedDataBinaryOutputPresentValue.go | 5 +
...ConstructedDataBinaryOutputRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataBinaryValueAll.go | 5 +
...BACnetConstructedDataBinaryValuePresentValue.go | 5 +
...tConstructedDataBinaryValueRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataBitMask.go | 5 +
...CnetConstructedDataBitStringValueAlarmValues.go | 7 +-
...netConstructedDataBitStringValuePresentValue.go | 5 +
...nstructedDataBitStringValueRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataBitText.go | 7 +-
.../BACnetConstructedDataBitstringValueAll.go | 5 +
.../model/BACnetConstructedDataBlinkWarnEnable.go | 5 +
.../model/BACnetConstructedDataBufferSize.go | 5 +
.../model/BACnetConstructedDataCOVIncrement.go | 5 +
.../model/BACnetConstructedDataCOVPeriod.go | 5 +
...CnetConstructedDataCOVResubscriptionInterval.go | 5 +
.../model/BACnetConstructedDataCOVUPeriod.go | 5 +
.../model/BACnetConstructedDataCOVURecipients.go | 5 +
.../model/BACnetConstructedDataCalendarAll.go | 5 +
.../BACnetConstructedDataCalendarPresentValue.go | 5 +
.../BACnetConstructedDataCarAssignedDirection.go | 5 +
.../model/BACnetConstructedDataCarDoorCommand.go | 7 +-
.../model/BACnetConstructedDataCarDoorStatus.go | 7 +-
.../model/BACnetConstructedDataCarDoorText.go | 7 +-
.../model/BACnetConstructedDataCarDoorZone.go | 5 +
.../model/BACnetConstructedDataCarDriveStatus.go | 5 +
.../model/BACnetConstructedDataCarLoad.go | 5 +
.../model/BACnetConstructedDataCarLoadUnits.go | 5 +
.../model/BACnetConstructedDataCarMode.go | 5 +
.../BACnetConstructedDataCarMovingDirection.go | 5 +
.../model/BACnetConstructedDataCarPosition.go | 5 +
.../BACnetConstructedDataChangeOfStateCount.go | 5 +
.../BACnetConstructedDataChangeOfStateTime.go | 5 +
.../model/BACnetConstructedDataChangesPending.go | 5 +
.../model/BACnetConstructedDataChannelAll.go | 5 +
...tedDataChannelListOfObjectPropertyReferences.go | 7 +-
.../model/BACnetConstructedDataChannelNumber.go | 5 +
.../BACnetConstructedDataChannelPresentValue.go | 5 +
...nstructedDataCharacterStringValueAlarmValues.go | 7 +-
...nstructedDataCharacterStringValueFaultValues.go | 7 +-
...structedDataCharacterStringValuePresentValue.go | 5 +
...tedDataCharacterStringValueRelinquishDefault.go | 5 +
...BACnetConstructedDataCharacterstringValueAll.go | 5 +
.../BACnetConstructedDataClientCOVIncrement.go | 5 +
.../model/BACnetConstructedDataCommand.go | 5 +
.../model/BACnetConstructedDataCommandAction.go | 7 +-
.../model/BACnetConstructedDataCommandAll.go | 5 +
.../model/BACnetConstructedDataCommandTimeArray.go | 7 +-
.../BACnetConstructedDataConfigurationFiles.go | 7 +-
.../model/BACnetConstructedDataControlGroups.go | 7 +-
...etConstructedDataControlledVariableReference.go | 5 +
...BACnetConstructedDataControlledVariableUnits.go | 5 +
...BACnetConstructedDataControlledVariableValue.go | 5 +
.../readwrite/model/BACnetConstructedDataCount.go | 5 +
.../BACnetConstructedDataCountBeforeChange.go | 5 +
.../model/BACnetConstructedDataCountChangeTime.go | 5 +
.../BACnetConstructedDataCredentialDataInputAll.go | 5 +
...nstructedDataCredentialDataInputPresentValue.go | 5 +
...ConstructedDataCredentialDataInputUpdateTime.go | 5 +
.../BACnetConstructedDataCredentialDisable.go | 5 +
.../model/BACnetConstructedDataCredentialStatus.go | 5 +
.../model/BACnetConstructedDataCredentials.go | 5 +
.../BACnetConstructedDataCredentialsInZone.go | 5 +
.../BACnetConstructedDataCurrentCommandPriority.go | 5 +
.../model/BACnetConstructedDataDatabaseRevision.go | 5 +
.../model/BACnetConstructedDataDateList.go | 5 +
...tConstructedDataDatePatternValuePresentValue.go | 5 +
...tructedDataDatePatternValueRelinquishDefault.go | 5 +
...structedDataDateTimePatternValuePresentValue.go | 5 +
...tedDataDateTimePatternValueRelinquishDefault.go | 5 +
...CnetConstructedDataDateTimeValuePresentValue.go | 5 +
...onstructedDataDateTimeValueRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataDateValueAll.go | 5 +
.../BACnetConstructedDataDateValuePresentValue.go | 5 +
...netConstructedDataDateValueRelinquishDefault.go | 5 +
.../BACnetConstructedDataDatepatternValueAll.go | 5 +
.../model/BACnetConstructedDataDatetimeValueAll.go | 5 +
...BACnetConstructedDataDatetimepatternValueAll.go | 5 +
.../BACnetConstructedDataDaylightSavingsStatus.go | 5 +
.../model/BACnetConstructedDataDaysRemaining.go | 5 +
.../model/BACnetConstructedDataDeadband.go | 5 +
.../model/BACnetConstructedDataDefaultFadeTime.go | 5 +
.../model/BACnetConstructedDataDefaultRampRate.go | 5 +
.../BACnetConstructedDataDefaultStepIncrement.go | 5 +
...onstructedDataDefaultSubordinateRelationship.go | 5 +
.../model/BACnetConstructedDataDefaultTimeout.go | 5 +
...BACnetConstructedDataDeployedProfileLocation.go | 5 +
.../BACnetConstructedDataDerivativeConstant.go | 5 +
...BACnetConstructedDataDerivativeConstantUnits.go | 5 +
.../model/BACnetConstructedDataDescription.go | 5 +
.../BACnetConstructedDataDescriptionOfHalt.go | 5 +
.../BACnetConstructedDataDeviceAddressBinding.go | 5 +
.../model/BACnetConstructedDataDeviceAll.go | 5 +
.../BACnetConstructedDataDeviceMaxInfoFrames.go | 5 +
.../model/BACnetConstructedDataDeviceMaxMaster.go | 5 +
.../model/BACnetConstructedDataDeviceType.go | 5 +
.../model/BACnetConstructedDataDirectReading.go | 5 +
...BACnetConstructedDataDistributionKeyRevision.go | 5 +
.../model/BACnetConstructedDataDoNotHide.go | 5 +
.../model/BACnetConstructedDataDoorAlarmState.go | 5 +
.../BACnetConstructedDataDoorExtendedPulseTime.go | 5 +
.../model/BACnetConstructedDataDoorMembers.go | 7 +-
.../BACnetConstructedDataDoorOpenTooLongTime.go | 5 +
.../model/BACnetConstructedDataDoorPulseTime.go | 5 +
.../model/BACnetConstructedDataDoorStatus.go | 5 +
.../BACnetConstructedDataDoorUnlockDelayTime.go | 5 +
.../model/BACnetConstructedDataDutyWindow.go | 5 +
.../model/BACnetConstructedDataEffectivePeriod.go | 5 +
.../model/BACnetConstructedDataEgressActive.go | 5 +
.../model/BACnetConstructedDataEgressTime.go | 5 +
.../BACnetConstructedDataElapsedActiveTime.go | 5 +
.../model/BACnetConstructedDataElement.go | 11 +-
.../model/BACnetConstructedDataElevatorGroup.go | 5 +
.../model/BACnetConstructedDataElevatorGroupAll.go | 5 +
...CnetConstructedDataElevatorGroupGroupMembers.go | 7 +-
.../readwrite/model/BACnetConstructedDataEnable.go | 5 +
.../model/BACnetConstructedDataEnergyMeter.go | 5 +
.../model/BACnetConstructedDataEnergyMeterRef.go | 5 +
.../model/BACnetConstructedDataEntryPoints.go | 5 +
.../model/BACnetConstructedDataErrorLimit.go | 5 +
.../model/BACnetConstructedDataEscalatorAll.go | 5 +
.../BACnetConstructedDataEscalatorFaultSignals.go | 5 +
.../model/BACnetConstructedDataEscalatorMode.go | 5 +
.../BACnetConstructedDataEventAlgorithmInhibit.go | 5 +
...ACnetConstructedDataEventAlgorithmInhibitRef.go | 5 +
.../BACnetConstructedDataEventDetectionEnable.go | 5 +
.../model/BACnetConstructedDataEventEnable.go | 5 +
.../BACnetConstructedDataEventEnrollmentAll.go | 5 +
.../model/BACnetConstructedDataEventLogAll.go | 5 +
.../BACnetConstructedDataEventLogLogBuffer.go | 5 +
.../BACnetConstructedDataEventMessageTexts.go | 7 +-
...BACnetConstructedDataEventMessageTextsConfig.go | 7 +-
.../model/BACnetConstructedDataEventParameters.go | 5 +
.../model/BACnetConstructedDataEventState.go | 5 +
.../model/BACnetConstructedDataEventTimeStamps.go | 7 +-
.../model/BACnetConstructedDataEventType.go | 5 +
.../BACnetConstructedDataExceptionSchedule.go | 7 +-
.../model/BACnetConstructedDataExecutionDelay.go | 7 +-
.../model/BACnetConstructedDataExitPoints.go | 5 +
.../BACnetConstructedDataExpectedShedLevel.go | 5 +
.../model/BACnetConstructedDataExpirationTime.go | 5 +
.../BACnetConstructedDataExtendedTimeEnable.go | 5 +
.../model/BACnetConstructedDataFDBBMDAddress.go | 5 +
.../BACnetConstructedDataFDSubscriptionLifetime.go | 5 +
.../BACnetConstructedDataFailedAttemptEvents.go | 5 +
.../model/BACnetConstructedDataFailedAttempts.go | 5 +
.../BACnetConstructedDataFailedAttemptsTime.go | 5 +
.../model/BACnetConstructedDataFaultHighLimit.go | 5 +
.../model/BACnetConstructedDataFaultLowLimit.go | 5 +
.../model/BACnetConstructedDataFaultParameters.go | 5 +
.../model/BACnetConstructedDataFaultSignals.go | 5 +
.../model/BACnetConstructedDataFaultType.go | 5 +
.../model/BACnetConstructedDataFaultValues.go | 7 +-
.../model/BACnetConstructedDataFileAccessMethod.go | 5 +
.../model/BACnetConstructedDataFileAll.go | 5 +
.../model/BACnetConstructedDataFileRecordCount.go | 5 +
.../model/BACnetConstructedDataFileSize.go | 5 +
.../model/BACnetConstructedDataFileType.go | 5 +
.../model/BACnetConstructedDataFirmwareRevision.go | 5 +
.../model/BACnetConstructedDataFloorText.go | 7 +-
.../model/BACnetConstructedDataFullDutyBaseline.go | 5 +
.../model/BACnetConstructedDataGlobalGroupAll.go | 5 +
...BACnetConstructedDataGlobalGroupGroupMembers.go | 7 +-
...BACnetConstructedDataGlobalGroupPresentValue.go | 7 +-
.../model/BACnetConstructedDataGlobalIdentifier.go | 5 +
.../model/BACnetConstructedDataGroupAll.go | 5 +
.../model/BACnetConstructedDataGroupID.go | 5 +
.../model/BACnetConstructedDataGroupMemberNames.go | 7 +-
.../model/BACnetConstructedDataGroupMembers.go | 7 +-
.../model/BACnetConstructedDataGroupMode.go | 5 +
.../BACnetConstructedDataGroupPresentValue.go | 5 +
.../model/BACnetConstructedDataHighLimit.go | 5 +
.../model/BACnetConstructedDataHigherDeck.go | 5 +
.../model/BACnetConstructedDataIPAddress.go | 5 +
.../model/BACnetConstructedDataIPDHCPEnable.go | 5 +
.../model/BACnetConstructedDataIPDHCPLeaseTime.go | 5 +
...ACnetConstructedDataIPDHCPLeaseTimeRemaining.go | 5 +
.../model/BACnetConstructedDataIPDHCPServer.go | 5 +
.../model/BACnetConstructedDataIPDNSServer.go | 7 +-
.../model/BACnetConstructedDataIPDefaultGateway.go | 5 +
.../model/BACnetConstructedDataIPSubnetMask.go | 5 +
.../model/BACnetConstructedDataIPv6Address.go | 5 +
...ACnetConstructedDataIPv6AutoAddressingEnable.go | 5 +
.../BACnetConstructedDataIPv6DHCPLeaseTime.go | 5 +
...netConstructedDataIPv6DHCPLeaseTimeRemaining.go | 5 +
.../model/BACnetConstructedDataIPv6DHCPServer.go | 5 +
.../model/BACnetConstructedDataIPv6DNSServer.go | 7 +-
.../BACnetConstructedDataIPv6DefaultGateway.go | 5 +
.../model/BACnetConstructedDataIPv6PrefixLength.go | 5 +
.../model/BACnetConstructedDataIPv6ZoneIndex.go | 5 +
.../model/BACnetConstructedDataInProcess.go | 5 +
.../model/BACnetConstructedDataInProgress.go | 5 +
.../model/BACnetConstructedDataInactiveText.go | 5 +
.../model/BACnetConstructedDataInitialTimeout.go | 5 +
.../model/BACnetConstructedDataInputReference.go | 5 +
.../model/BACnetConstructedDataInstallationID.go | 5 +
.../model/BACnetConstructedDataInstanceOf.go | 5 +
.../BACnetConstructedDataInstantaneousPower.go | 5 +
.../model/BACnetConstructedDataIntegerValueAll.go | 5 +
...ACnetConstructedDataIntegerValueCOVIncrement.go | 5 +
.../BACnetConstructedDataIntegerValueDeadband.go | 5 +
...netConstructedDataIntegerValueFaultHighLimit.go | 5 +
...CnetConstructedDataIntegerValueFaultLowLimit.go | 5 +
.../BACnetConstructedDataIntegerValueHighLimit.go | 5 +
.../BACnetConstructedDataIntegerValueLowLimit.go | 5 +
...ACnetConstructedDataIntegerValueMaxPresValue.go | 5 +
...ACnetConstructedDataIntegerValueMinPresValue.go | 5 +
...ACnetConstructedDataIntegerValuePresentValue.go | 5 +
...ConstructedDataIntegerValueRelinquishDefault.go | 5 +
.../BACnetConstructedDataIntegerValueResolution.go | 5 +
.../model/BACnetConstructedDataIntegralConstant.go | 5 +
.../BACnetConstructedDataIntegralConstantUnits.go | 5 +
.../model/BACnetConstructedDataIntervalOffset.go | 5 +
.../readwrite/model/BACnetConstructedDataIsUTC.go | 5 +
.../model/BACnetConstructedDataKeySets.go | 7 +-
.../BACnetConstructedDataLandingCallControl.go | 5 +
.../model/BACnetConstructedDataLandingCalls.go | 5 +
.../BACnetConstructedDataLandingDoorStatus.go | 7 +-
.../BACnetConstructedDataLargeAnalogValueAll.go | 5 +
...tConstructedDataLargeAnalogValueCOVIncrement.go | 5 +
...ACnetConstructedDataLargeAnalogValueDeadband.go | 5 +
...onstructedDataLargeAnalogValueFaultHighLimit.go | 5 +
...ConstructedDataLargeAnalogValueFaultLowLimit.go | 5 +
...CnetConstructedDataLargeAnalogValueHighLimit.go | 5 +
...ACnetConstructedDataLargeAnalogValueLowLimit.go | 5 +
...tConstructedDataLargeAnalogValueMaxPresValue.go | 5 +
...tConstructedDataLargeAnalogValueMinPresValue.go | 5 +
...tConstructedDataLargeAnalogValuePresentValue.go | 5 +
...tructedDataLargeAnalogValueRelinquishDefault.go | 5 +
...netConstructedDataLargeAnalogValueResolution.go | 5 +
.../model/BACnetConstructedDataLastAccessEvent.go | 5 +
.../model/BACnetConstructedDataLastAccessPoint.go | 5 +
.../model/BACnetConstructedDataLastCommandTime.go | 5 +
.../BACnetConstructedDataLastCredentialAdded.go | 5 +
...BACnetConstructedDataLastCredentialAddedTime.go | 5 +
.../BACnetConstructedDataLastCredentialRemoved.go | 5 +
...CnetConstructedDataLastCredentialRemovedTime.go | 5 +
.../model/BACnetConstructedDataLastKeyServer.go | 5 +
.../model/BACnetConstructedDataLastNotifyRecord.go | 5 +
.../model/BACnetConstructedDataLastPriority.go | 5 +
.../BACnetConstructedDataLastRestartReason.go | 5 +
.../model/BACnetConstructedDataLastRestoreTime.go | 5 +
.../model/BACnetConstructedDataLastStateChange.go | 5 +
.../model/BACnetConstructedDataLastUseTime.go | 5 +
.../BACnetConstructedDataLifeSafetyAlarmValues.go | 5 +
...netConstructedDataLifeSafetyPointAlarmValues.go | 5 +
.../BACnetConstructedDataLifeSafetyPointAll.go | 5 +
...netConstructedDataLifeSafetyPointFaultValues.go | 5 +
...etConstructedDataLifeSafetyPointPresentValue.go | 5 +
...CnetConstructedDataLifeSafetyZoneAlarmValues.go | 5 +
.../BACnetConstructedDataLifeSafetyZoneAll.go | 5 +
...CnetConstructedDataLifeSafetyZoneFaultValues.go | 5 +
...tructedDataLifeSafetyZoneMaintenanceRequired.go | 5 +
...netConstructedDataLifeSafetyZonePresentValue.go | 5 +
.../model/BACnetConstructedDataLiftAll.go | 5 +
.../model/BACnetConstructedDataLiftFaultSignals.go | 5 +
.../model/BACnetConstructedDataLightingCommand.go | 5 +
...onstructedDataLightingCommandDefaultPriority.go | 5 +
.../BACnetConstructedDataLightingOutputAll.go | 5 +
...etConstructedDataLightingOutputFeedbackValue.go | 5 +
...netConstructedDataLightingOutputPresentValue.go | 5 +
...nstructedDataLightingOutputRelinquishDefault.go | 5 +
...etConstructedDataLightingOutputTrackingValue.go | 5 +
.../model/BACnetConstructedDataLimitEnable.go | 5 +
...BACnetConstructedDataLimitMonitoringInterval.go | 5 +
.../model/BACnetConstructedDataLinkSpeed.go | 5 +
.../BACnetConstructedDataLinkSpeedAutonegotiate.go | 5 +
.../model/BACnetConstructedDataLinkSpeeds.go | 7 +-
.../BACnetConstructedDataListOfGroupMembers.go | 5 +
...onstructedDataListOfObjectPropertyReferences.go | 5 +
.../model/BACnetConstructedDataLoadControlAll.go | 5 +
...BACnetConstructedDataLoadControlPresentValue.go | 5 +
.../model/BACnetConstructedDataLocalDate.go | 5 +
.../BACnetConstructedDataLocalForwardingOnly.go | 5 +
.../model/BACnetConstructedDataLocalTime.go | 5 +
.../model/BACnetConstructedDataLocation.go | 5 +
.../model/BACnetConstructedDataLockStatus.go | 5 +
.../model/BACnetConstructedDataLockout.go | 5 +
.../BACnetConstructedDataLockoutRelinquishTime.go | 5 +
.../model/BACnetConstructedDataLogBuffer.go | 7 +-
...BACnetConstructedDataLogDeviceObjectProperty.go | 5 +
.../model/BACnetConstructedDataLogInterval.go | 5 +
.../model/BACnetConstructedDataLoggingObject.go | 5 +
.../model/BACnetConstructedDataLoggingRecord.go | 5 +
.../model/BACnetConstructedDataLoggingType.go | 5 +
.../model/BACnetConstructedDataLoopAction.go | 5 +
.../model/BACnetConstructedDataLoopAll.go | 5 +
.../model/BACnetConstructedDataLoopPresentValue.go | 5 +
.../model/BACnetConstructedDataLowDiffLimit.go | 5 +
.../model/BACnetConstructedDataLowLimit.go | 5 +
.../model/BACnetConstructedDataLowerDeck.go | 5 +
.../model/BACnetConstructedDataMACAddress.go | 5 +
.../model/BACnetConstructedDataMachineRoomID.go | 5 +
.../BACnetConstructedDataMaintenanceRequired.go | 5 +
.../model/BACnetConstructedDataMakingCarCall.go | 7 +-
...tConstructedDataManipulatedVariableReference.go | 5 +
...CnetConstructedDataManualSlaveAddressBinding.go | 5 +
.../BACnetConstructedDataMaskedAlarmValues.go | 5 +
.../BACnetConstructedDataMaxAPDULengthAccepted.go | 5 +
.../model/BACnetConstructedDataMaxActualValue.go | 5 +
.../BACnetConstructedDataMaxFailedAttempts.go | 5 +
.../model/BACnetConstructedDataMaxInfoFrames.go | 5 +
.../model/BACnetConstructedDataMaxMaster.go | 5 +
.../model/BACnetConstructedDataMaxPresValue.go | 5 +
.../BACnetConstructedDataMaxSegmentsAccepted.go | 5 +
.../model/BACnetConstructedDataMaximumOutput.go | 5 +
.../model/BACnetConstructedDataMaximumValue.go | 5 +
.../BACnetConstructedDataMaximumValueTimestamp.go | 5 +
.../model/BACnetConstructedDataMemberOf.go | 5 +
.../BACnetConstructedDataMemberStatusFlags.go | 5 +
.../model/BACnetConstructedDataMembers.go | 5 +
.../model/BACnetConstructedDataMinActualValue.go | 5 +
.../model/BACnetConstructedDataMinPresValue.go | 5 +
.../model/BACnetConstructedDataMinimumOffTime.go | 5 +
.../model/BACnetConstructedDataMinimumOnTime.go | 5 +
.../model/BACnetConstructedDataMinimumOutput.go | 5 +
.../model/BACnetConstructedDataMinimumValue.go | 5 +
.../BACnetConstructedDataMinimumValueTimestamp.go | 5 +
.../readwrite/model/BACnetConstructedDataMode.go | 5 +
.../model/BACnetConstructedDataModelName.go | 5 +
.../model/BACnetConstructedDataModificationDate.go | 5 +
...netConstructedDataMultiStateInputAlarmValues.go | 5 +
.../BACnetConstructedDataMultiStateInputAll.go | 5 +
...netConstructedDataMultiStateInputFaultValues.go | 5 +
...ConstructedDataMultiStateInputInterfaceValue.go | 5 +
.../BACnetConstructedDataMultiStateOutputAll.go | 5 +
...ConstructedDataMultiStateOutputFeedbackValue.go | 5 +
...onstructedDataMultiStateOutputInterfaceValue.go | 5 +
...tructedDataMultiStateOutputRelinquishDefault.go | 5 +
...netConstructedDataMultiStateValueAlarmValues.go | 5 +
.../BACnetConstructedDataMultiStateValueAll.go | 5 +
...netConstructedDataMultiStateValueFaultValues.go | 5 +
...structedDataMultiStateValueRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataMusterPoint.go | 5 +
.../BACnetConstructedDataNegativeAccessRules.go | 7 +-
...ConstructedDataNetworkAccessSecurityPolicies.go | 7 +-
.../BACnetConstructedDataNetworkInterfaceName.go | 5 +
.../model/BACnetConstructedDataNetworkNumber.go | 5 +
.../BACnetConstructedDataNetworkNumberQuality.go | 5 +
.../model/BACnetConstructedDataNetworkPortAll.go | 5 +
...ACnetConstructedDataNetworkPortMaxInfoFrames.go | 5 +
.../BACnetConstructedDataNetworkPortMaxMaster.go | 5 +
.../BACnetConstructedDataNetworkSecurityAll.go | 5 +
.../model/BACnetConstructedDataNetworkType.go | 5 +
.../BACnetConstructedDataNextStoppingFloor.go | 5 +
.../model/BACnetConstructedDataNodeSubtype.go | 5 +
.../model/BACnetConstructedDataNodeType.go | 5 +
.../BACnetConstructedDataNotificationClass.go | 5 +
.../BACnetConstructedDataNotificationClassAll.go | 5 +
...ACnetConstructedDataNotificationForwarderAll.go | 5 +
.../BACnetConstructedDataNotificationThreshold.go | 5 +
.../model/BACnetConstructedDataNotifyType.go | 5 +
.../BACnetConstructedDataNumberOfAPDURetries.go | 5 +
...onstructedDataNumberOfAuthenticationPolicies.go | 5 +
.../model/BACnetConstructedDataNumberOfStates.go | 5 +
.../model/BACnetConstructedDataObjectIdentifier.go | 5 +
.../model/BACnetConstructedDataObjectList.go | 7 +-
.../model/BACnetConstructedDataObjectName.go | 5 +
...BACnetConstructedDataObjectPropertyReference.go | 5 +
.../model/BACnetConstructedDataObjectType.go | 5 +
.../model/BACnetConstructedDataOccupancyCount.go | 5 +
.../BACnetConstructedDataOccupancyCountAdjust.go | 5 +
.../BACnetConstructedDataOccupancyCountEnable.go | 5 +
.../BACnetConstructedDataOccupancyLowerLimit.go | 5 +
...etConstructedDataOccupancyLowerLimitEnforced.go | 5 +
.../model/BACnetConstructedDataOccupancyState.go | 5 +
.../BACnetConstructedDataOccupancyUpperLimit.go | 5 +
...etConstructedDataOccupancyUpperLimitEnforced.go | 5 +
...tConstructedDataOctetStringValuePresentValue.go | 5 +
...tructedDataOctetStringValueRelinquishDefault.go | 5 +
.../BACnetConstructedDataOctetstringValueAll.go | 5 +
.../BACnetConstructedDataOperationDirection.go | 5 +
.../BACnetConstructedDataOperationExpected.go | 5 +
.../model/BACnetConstructedDataOptional.go | 5 +
.../model/BACnetConstructedDataOutOfService.go | 5 +
.../model/BACnetConstructedDataOutputUnits.go | 5 +
.../BACnetConstructedDataPacketReorderTime.go | 5 +
.../model/BACnetConstructedDataPassbackMode.go | 5 +
.../model/BACnetConstructedDataPassbackTimeout.go | 5 +
.../model/BACnetConstructedDataPassengerAlarm.go | 5 +
.../model/BACnetConstructedDataPolarity.go | 5 +
.../model/BACnetConstructedDataPortFilter.go | 7 +-
.../BACnetConstructedDataPositiveAccessRules.go | 7 +-
...BACnetConstructedDataPositiveIntegerValueAll.go | 5 +
...structedDataPositiveIntegerValueCOVIncrement.go | 5 +
...tConstructedDataPositiveIntegerValueDeadband.go | 5 +
...ructedDataPositiveIntegerValueFaultHighLimit.go | 5 +
...tructedDataPositiveIntegerValueFaultLowLimit.go | 5 +
...ConstructedDataPositiveIntegerValueHighLimit.go | 5 +
...tConstructedDataPositiveIntegerValueLowLimit.go | 5 +
...structedDataPositiveIntegerValueMaxPresValue.go | 5 +
...structedDataPositiveIntegerValueMinPresValue.go | 5 +
...tedDataPositiveIntegerValueRelinquishDefault.go | 5 +
...onstructedDataPositiveIntegerValueResolution.go | 5 +
.../readwrite/model/BACnetConstructedDataPower.go | 5 +
.../model/BACnetConstructedDataPowerMode.go | 5 +
.../model/BACnetConstructedDataPrescale.go | 5 +
.../model/BACnetConstructedDataPresentValue.go | 5 +
.../model/BACnetConstructedDataPriority.go | 7 +-
.../model/BACnetConstructedDataPriorityArray.go | 5 +
.../BACnetConstructedDataPriorityForWriting.go | 5 +
.../BACnetConstructedDataProcessIdentifier.go | 5 +
...BACnetConstructedDataProcessIdentifierFilter.go | 5 +
.../model/BACnetConstructedDataProfileLocation.go | 5 +
.../model/BACnetConstructedDataProfileName.go | 5 +
.../model/BACnetConstructedDataProgramAll.go | 5 +
.../model/BACnetConstructedDataProgramChange.go | 5 +
.../model/BACnetConstructedDataProgramLocation.go | 5 +
.../model/BACnetConstructedDataProgramState.go | 5 +
.../model/BACnetConstructedDataPropertyList.go | 7 +-
.../BACnetConstructedDataProportionalConstant.go | 5 +
...CnetConstructedDataProportionalConstantUnits.go | 5 +
.../model/BACnetConstructedDataProtocolLevel.go | 5 +
...tConstructedDataProtocolObjectTypesSupported.go | 5 +
.../model/BACnetConstructedDataProtocolRevision.go | 5 +
...CnetConstructedDataProtocolServicesSupported.go | 5 +
.../model/BACnetConstructedDataProtocolVersion.go | 5 +
...CnetConstructedDataPulseConverterAdjustValue.go | 5 +
.../BACnetConstructedDataPulseConverterAll.go | 5 +
...netConstructedDataPulseConverterPresentValue.go | 5 +
.../model/BACnetConstructedDataPulseRate.go | 5 +
.../model/BACnetConstructedDataReadOnly.go | 5 +
.../model/BACnetConstructedDataReasonForDisable.go | 5 +
.../model/BACnetConstructedDataReasonForHalt.go | 5 +
.../model/BACnetConstructedDataRecipientList.go | 5 +
.../model/BACnetConstructedDataRecordCount.go | 5 +
...ACnetConstructedDataRecordsSinceNotification.go | 5 +
.../model/BACnetConstructedDataReferencePort.go | 5 +
.../BACnetConstructedDataRegisteredCarCall.go | 7 +-
.../model/BACnetConstructedDataReliability.go | 5 +
...tConstructedDataReliabilityEvaluationInhibit.go | 5 +
.../BACnetConstructedDataRelinquishDefault.go | 5 +
.../model/BACnetConstructedDataRepresents.go | 5 +
.../BACnetConstructedDataRequestedShedLevel.go | 5 +
...BACnetConstructedDataRequestedUpdateInterval.go | 5 +
.../model/BACnetConstructedDataRequired.go | 5 +
.../model/BACnetConstructedDataResolution.go | 5 +
...ConstructedDataRestartNotificationRecipients.go | 5 +
.../BACnetConstructedDataRestoreCompletionTime.go | 5 +
.../BACnetConstructedDataRestorePreparationTime.go | 5 +
.../model/BACnetConstructedDataRoutingTable.go | 5 +
.../readwrite/model/BACnetConstructedDataScale.go | 5 +
.../model/BACnetConstructedDataScaleFactor.go | 5 +
.../model/BACnetConstructedDataScheduleAll.go | 5 +
.../model/BACnetConstructedDataScheduleDefault.go | 5 +
.../BACnetConstructedDataSchedulePresentValue.go | 5 +
.../model/BACnetConstructedDataSecuredStatus.go | 5 +
.../BACnetConstructedDataSecurityPDUTimeout.go | 5 +
.../BACnetConstructedDataSecurityTimeWindow.go | 5 +
.../BACnetConstructedDataSegmentationSupported.go | 5 +
.../model/BACnetConstructedDataSerialNumber.go | 5 +
.../model/BACnetConstructedDataSetpoint.go | 5 +
.../BACnetConstructedDataSetpointReference.go | 5 +
.../model/BACnetConstructedDataSetting.go | 5 +
.../model/BACnetConstructedDataShedDuration.go | 5 +
.../BACnetConstructedDataShedLevelDescriptions.go | 7 +-
.../model/BACnetConstructedDataShedLevels.go | 7 +-
.../model/BACnetConstructedDataSilenced.go | 5 +
.../BACnetConstructedDataSlaveAddressBinding.go | 5 +
.../model/BACnetConstructedDataSlaveProxyEnable.go | 5 +
.../model/BACnetConstructedDataStartTime.go | 5 +
.../BACnetConstructedDataStateChangeValues.go | 7 +-
.../model/BACnetConstructedDataStateDescription.go | 5 +
.../model/BACnetConstructedDataStateText.go | 7 +-
.../model/BACnetConstructedDataStatusFlags.go | 5 +
.../model/BACnetConstructedDataStopTime.go | 5 +
.../model/BACnetConstructedDataStopWhenFull.go | 5 +
.../model/BACnetConstructedDataStrikeCount.go | 5 +
.../BACnetConstructedDataStructuredObjectList.go | 7 +-
.../BACnetConstructedDataStructuredViewAll.go | 5 +
.../BACnetConstructedDataSubordinateAnnotations.go | 7 +-
.../model/BACnetConstructedDataSubordinateList.go | 7 +-
.../BACnetConstructedDataSubordinateNodeTypes.go | 7 +-
...ACnetConstructedDataSubordinateRelationships.go | 7 +-
.../model/BACnetConstructedDataSubordinateTags.go | 7 +-
.../BACnetConstructedDataSubscribedRecipients.go | 5 +
.../BACnetConstructedDataSupportedFormatClasses.go | 7 +-
.../model/BACnetConstructedDataSupportedFormats.go | 7 +-
...etConstructedDataSupportedSecurityAlgorithms.go | 5 +
.../model/BACnetConstructedDataSystemStatus.go | 5 +
.../readwrite/model/BACnetConstructedDataTags.go | 7 +-
.../model/BACnetConstructedDataThreatAuthority.go | 5 +
.../model/BACnetConstructedDataThreatLevel.go | 5 +
.../model/BACnetConstructedDataTimeDelay.go | 5 +
.../model/BACnetConstructedDataTimeDelayNormal.go | 5 +
.../BACnetConstructedDataTimeOfActiveTimeReset.go | 5 +
.../BACnetConstructedDataTimeOfDeviceRestart.go | 5 +
.../BACnetConstructedDataTimeOfStateCountReset.go | 5 +
.../BACnetConstructedDataTimeOfStrikeCountReset.go | 5 +
...tConstructedDataTimePatternValuePresentValue.go | 5 +
...tructedDataTimePatternValueRelinquishDefault.go | 5 +
...etConstructedDataTimeSynchronizationInterval.go | 5 +
...ConstructedDataTimeSynchronizationRecipients.go | 5 +
.../model/BACnetConstructedDataTimeValueAll.go | 5 +
.../BACnetConstructedDataTimeValuePresentValue.go | 5 +
...netConstructedDataTimeValueRelinquishDefault.go | 5 +
.../BACnetConstructedDataTimepatternValueAll.go | 5 +
.../model/BACnetConstructedDataTimerAlarmValues.go | 5 +
.../model/BACnetConstructedDataTimerAll.go | 5 +
.../BACnetConstructedDataTimerMaxPresValue.go | 5 +
.../BACnetConstructedDataTimerMinPresValue.go | 5 +
.../model/BACnetConstructedDataTimerResolution.go | 5 +
.../model/BACnetConstructedDataTimerRunning.go | 5 +
.../model/BACnetConstructedDataTimerState.go | 5 +
.../model/BACnetConstructedDataTotalRecordCount.go | 5 +
.../model/BACnetConstructedDataTraceFlag.go | 5 +
.../model/BACnetConstructedDataTrackingValue.go | 5 +
...tConstructedDataTransactionNotificationClass.go | 5 +
.../model/BACnetConstructedDataTransition.go | 5 +
.../model/BACnetConstructedDataTrendLogAll.go | 5 +
.../BACnetConstructedDataTrendLogLogBuffer.go | 5 +
...nstructedDataTrendLogLogDeviceObjectProperty.go | 5 +
.../BACnetConstructedDataTrendLogMultipleAll.go | 5 +
...CnetConstructedDataTrendLogMultipleLogBuffer.go | 5 +
...dDataTrendLogMultipleLogDeviceObjectProperty.go | 7 +-
.../model/BACnetConstructedDataTrigger.go | 5 +
.../model/BACnetConstructedDataUTCOffset.go | 5 +
...structedDataUTCTimeSynchronizationRecipients.go | 5 +
.../readwrite/model/BACnetConstructedDataUnits.go | 5 +
.../model/BACnetConstructedDataUnspecified.go | 7 +-
.../model/BACnetConstructedDataUpdateInterval.go | 5 +
.../BACnetConstructedDataUpdateKeySetTimeout.go | 5 +
.../model/BACnetConstructedDataUpdateTime.go | 5 +
.../BACnetConstructedDataUserExternalIdentifier.go | 5 +
...ACnetConstructedDataUserInformationReference.go | 5 +
.../model/BACnetConstructedDataUserName.go | 5 +
.../model/BACnetConstructedDataUserType.go | 5 +
.../model/BACnetConstructedDataUsesRemaining.go | 5 +
.../BACnetConstructedDataVTClassesSupported.go | 5 +
.../model/BACnetConstructedDataValidSamples.go | 5 +
.../BACnetConstructedDataValueBeforeChange.go | 5 +
.../model/BACnetConstructedDataValueChangeTime.go | 5 +
.../model/BACnetConstructedDataValueSet.go | 5 +
.../model/BACnetConstructedDataValueSource.go | 5 +
.../model/BACnetConstructedDataValueSourceArray.go | 7 +-
.../model/BACnetConstructedDataVarianceValue.go | 5 +
.../model/BACnetConstructedDataVendorIdentifier.go | 5 +
.../model/BACnetConstructedDataVendorName.go | 5 +
.../model/BACnetConstructedDataVerificationTime.go | 5 +
.../BACnetConstructedDataVirtualMACAddressTable.go | 5 +
.../model/BACnetConstructedDataWeeklySchedule.go | 7 +-
.../model/BACnetConstructedDataWindowInterval.go | 5 +
.../model/BACnetConstructedDataWindowSamples.go | 5 +
.../model/BACnetConstructedDataWriteStatus.go | 5 +
.../model/BACnetConstructedDataZoneFrom.go | 5 +
.../model/BACnetConstructedDataZoneMembers.go | 5 +
.../readwrite/model/BACnetConstructedDataZoneTo.go | 5 +
.../bacnetip/readwrite/model/BACnetContextTag.go | 5 +
.../readwrite/model/BACnetContextTagBitString.go | 5 +
.../readwrite/model/BACnetContextTagBoolean.go | 5 +
.../model/BACnetContextTagCharacterString.go | 5 +
.../readwrite/model/BACnetContextTagDate.go | 5 +
.../readwrite/model/BACnetContextTagDouble.go | 5 +
.../readwrite/model/BACnetContextTagEnumerated.go | 5 +
.../readwrite/model/BACnetContextTagNull.go | 5 +
.../model/BACnetContextTagObjectIdentifier.go | 5 +
.../readwrite/model/BACnetContextTagOctetString.go | 5 +
.../readwrite/model/BACnetContextTagReal.go | 5 +
.../model/BACnetContextTagSignedInteger.go | 5 +
.../readwrite/model/BACnetContextTagTime.go | 5 +
.../readwrite/model/BACnetContextTagUnknown.go | 5 +
.../model/BACnetContextTagUnsignedInteger.go | 5 +
.../model/BACnetCredentialAuthenticationFactor.go | 5 +
.../readwrite/model/BACnetDailySchedule.go | 5 +
.../bacnetip/readwrite/model/BACnetDataType.go | 9 +-
.../bacnetip/readwrite/model/BACnetDateRange.go | 5 +
.../readwrite/model/BACnetDateRangeEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetDateTime.go | 5 +
.../readwrite/model/BACnetDateTimeEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetDaysOfWeek.go | 9 +-
.../readwrite/model/BACnetDaysOfWeekTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetDestination.go | 5 +
.../model/BACnetDeviceObjectPropertyReference.go | 9 +-
.../BACnetDeviceObjectPropertyReferenceEnclosed.go | 5 +
.../readwrite/model/BACnetDeviceObjectReference.go | 7 +-
.../model/BACnetDeviceObjectReferenceEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetDeviceStatus.go | 9 +-
.../readwrite/model/BACnetDeviceStatusTagged.go | 5 +
.../readwrite/model/BACnetDoorAlarmState.go | 9 +-
.../readwrite/model/BACnetDoorAlarmStateTagged.go | 5 +
.../readwrite/model/BACnetDoorSecuredStatus.go | 9 +-
.../model/BACnetDoorSecuredStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetDoorStatus.go | 9 +-
.../readwrite/model/BACnetDoorStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetDoorValue.go | 9 +-
.../readwrite/model/BACnetDoorValueTagged.go | 5 +
.../readwrite/model/BACnetEngineeringUnits.go | 9 +-
.../model/BACnetEngineeringUnitsTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetError.go | 5 +
.../bacnetip/readwrite/model/BACnetErrorGeneral.go | 5 +
.../readwrite/model/BACnetEscalatorFault.go | 9 +-
.../readwrite/model/BACnetEscalatorFaultTagged.go | 5 +
.../readwrite/model/BACnetEscalatorMode.go | 9 +-
.../readwrite/model/BACnetEscalatorModeTagged.go | 5 +
.../model/BACnetEscalatorOperationDirection.go | 9 +-
.../BACnetEscalatorOperationDirectionTagged.go | 5 +
.../readwrite/model/BACnetEventLogRecord.go | 5 +
.../model/BACnetEventLogRecordLogDatum.go | 5 +
.../model/BACnetEventLogRecordLogDatumLogStatus.go | 5 +
.../BACnetEventLogRecordLogDatumNotification.go | 5 +
.../BACnetEventLogRecordLogDatumTimeChange.go | 5 +
.../model/BACnetEventNotificationSubscription.go | 7 +-
.../readwrite/model/BACnetEventParameter.go | 5 +
.../model/BACnetEventParameterAccessEvent.go | 5 +
...tEventParameterAccessEventListOfAccessEvents.go | 5 +
.../model/BACnetEventParameterBufferReady.go | 5 +
.../model/BACnetEventParameterChangeOfBitstring.go | 5 +
...ameterChangeOfBitstringListOfBitstringValues.go | 5 +
.../BACnetEventParameterChangeOfCharacterString.go | 5 +
...eterChangeOfCharacterStringListOfAlarmValues.go | 5 +
.../BACnetEventParameterChangeOfDiscreteValue.go | 5 +
.../BACnetEventParameterChangeOfLifeSavety.go | 5 +
...ParameterChangeOfLifeSavetyListOfAlarmValues.go | 5 +
...hangeOfLifeSavetyListOfLifeSavetyAlarmValues.go | 5 +
.../model/BACnetEventParameterChangeOfState.go | 5 +
...ACnetEventParameterChangeOfStateListOfValues.go | 5 +
.../BACnetEventParameterChangeOfStatusFlags.go | 5 +
.../model/BACnetEventParameterChangeOfTimer.go | 5 +
.../BACnetEventParameterChangeOfTimerAlarmValue.go | 5 +
.../model/BACnetEventParameterChangeOfValue.go | 5 +
...BACnetEventParameterChangeOfValueCivCriteria.go | 5 +
...ventParameterChangeOfValueCivCriteriaBitmask.go | 5 +
...fValueCivCriteriaReferencedPropertyIncrement.go | 5 +
.../model/BACnetEventParameterCommandFailure.go | 5 +
.../model/BACnetEventParameterDoubleOutOfRange.go | 5 +
.../model/BACnetEventParameterExtended.go | 5 +
.../BACnetEventParameterExtendedParameters.go | 33 +++--
.../model/BACnetEventParameterFloatingLimit.go | 5 +
.../readwrite/model/BACnetEventParameterNone.go | 5 +
.../model/BACnetEventParameterOutOfRange.go | 5 +
.../model/BACnetEventParameterSignedOutOfRange.go | 5 +
.../BACnetEventParameterUnsignedOutOfRange.go | 5 +
.../model/BACnetEventParameterUnsignedRange.go | 5 +
.../readwrite/model/BACnetEventPriorities.go | 5 +
.../bacnetip/readwrite/model/BACnetEventState.go | 9 +-
.../readwrite/model/BACnetEventStateTagged.go | 5 +
.../readwrite/model/BACnetEventSummariesList.go | 5 +
.../bacnetip/readwrite/model/BACnetEventSummary.go | 5 +
.../readwrite/model/BACnetEventTimestamps.go | 5 +
.../model/BACnetEventTimestampsEnclosed.go | 5 +
.../readwrite/model/BACnetEventTransitionBits.go | 9 +-
.../model/BACnetEventTransitionBitsTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetEventType.go | 9 +-
.../readwrite/model/BACnetEventTypeTagged.go | 5 +
.../readwrite/model/BACnetFaultParameter.go | 5 +
.../BACnetFaultParameterFaultCharacterString.go | 5 +
...rameterFaultCharacterStringListOfFaultValues.go | 5 +
.../model/BACnetFaultParameterFaultExtended.go | 5 +
.../BACnetFaultParameterFaultExtendedParameters.go | 5 +
...etFaultParameterFaultExtendedParametersEntry.go | 5 +
...rameterFaultExtendedParametersEntryBitString.go | 5 +
...ParameterFaultExtendedParametersEntryBoolean.go | 5 +
...rFaultExtendedParametersEntryCharacterString.go | 5 +
...ultParameterFaultExtendedParametersEntryDate.go | 5 +
...tParameterFaultExtendedParametersEntryDouble.go | 5 +
...ameterFaultExtendedParametersEntryEnumerated.go | 5 +
...ParameterFaultExtendedParametersEntryInteger.go | 5 +
...ultParameterFaultExtendedParametersEntryNull.go | 5 +
...FaultExtendedParametersEntryObjectidentifier.go | 5 +
...meterFaultExtendedParametersEntryOctetString.go | 5 +
...ultParameterFaultExtendedParametersEntryReal.go | 5 +
...rameterFaultExtendedParametersEntryReference.go | 5 +
...ultParameterFaultExtendedParametersEntryTime.go | 5 +
...arameterFaultExtendedParametersEntryUnsigned.go | 5 +
.../model/BACnetFaultParameterFaultLifeSafety.go | 5 +
...ultParameterFaultLifeSafetyListOfFaultValues.go | 5 +
.../model/BACnetFaultParameterFaultListed.go | 5 +
.../model/BACnetFaultParameterFaultOutOfRange.go | 5 +
...tFaultParameterFaultOutOfRangeMaxNormalValue.go | 5 +
...ParameterFaultOutOfRangeMaxNormalValueDouble.go | 5 +
...arameterFaultOutOfRangeMaxNormalValueInteger.go | 5 +
...ltParameterFaultOutOfRangeMaxNormalValueReal.go | 5 +
...rameterFaultOutOfRangeMaxNormalValueUnsigned.go | 5 +
...tFaultParameterFaultOutOfRangeMinNormalValue.go | 5 +
...ParameterFaultOutOfRangeMinNormalValueDouble.go | 5 +
...arameterFaultOutOfRangeMinNormalValueInteger.go | 5 +
...ltParameterFaultOutOfRangeMinNormalValueReal.go | 5 +
...rameterFaultOutOfRangeMinNormalValueUnsigned.go | 5 +
.../model/BACnetFaultParameterFaultState.go | 5 +
...netFaultParameterFaultStateListOfFaultValues.go | 5 +
.../model/BACnetFaultParameterFaultStatusFlags.go | 5 +
.../readwrite/model/BACnetFaultParameterNone.go | 5 +
.../bacnetip/readwrite/model/BACnetFaultType.go | 9 +-
.../readwrite/model/BACnetFaultTypeTagged.go | 5 +
.../readwrite/model/BACnetFileAccessMethod.go | 9 +-
.../model/BACnetFileAccessMethodTagged.go | 5 +
.../readwrite/model/BACnetGroupChannelValue.go | 7 +-
.../readwrite/model/BACnetGroupChannelValueList.go | 5 +
.../bacnetip/readwrite/model/BACnetHostAddress.go | 5 +
.../readwrite/model/BACnetHostAddressEnclosed.go | 5 +
.../readwrite/model/BACnetHostAddressIpAddress.go | 5 +
.../readwrite/model/BACnetHostAddressName.go | 5 +
.../readwrite/model/BACnetHostAddressNull.go | 5 +
.../bacnetip/readwrite/model/BACnetHostNPort.go | 5 +
.../readwrite/model/BACnetHostNPortEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetIPMode.go | 9 +-
.../bacnetip/readwrite/model/BACnetIPModeTagged.go | 5 +
.../readwrite/model/BACnetKeyIdentifier.go | 5 +
.../readwrite/model/BACnetLandingCallStatus.go | 7 +-
.../model/BACnetLandingCallStatusCommand.go | 5 +
.../BACnetLandingCallStatusCommandDestination.go | 5 +
.../BACnetLandingCallStatusCommandDirection.go | 5 +
.../readwrite/model/BACnetLandingDoorStatus.go | 5 +
.../BACnetLandingDoorStatusLandingDoorsList.go | 5 +
...BACnetLandingDoorStatusLandingDoorsListEntry.go | 5 +
.../readwrite/model/BACnetLifeSafetyMode.go | 9 +-
.../readwrite/model/BACnetLifeSafetyModeTagged.go | 5 +
.../readwrite/model/BACnetLifeSafetyOperation.go | 9 +-
.../model/BACnetLifeSafetyOperationTagged.go | 5 +
.../readwrite/model/BACnetLifeSafetyState.go | 9 +-
.../readwrite/model/BACnetLifeSafetyStateTagged.go | 5 +
.../readwrite/model/BACnetLiftCarCallList.go | 5 +
.../model/BACnetLiftCarCallListFloorList.go | 5 +
.../readwrite/model/BACnetLiftCarDirection.go | 9 +-
.../model/BACnetLiftCarDirectionTagged.go | 5 +
.../readwrite/model/BACnetLiftCarDoorCommand.go | 9 +-
.../model/BACnetLiftCarDoorCommandTagged.go | 5 +
.../readwrite/model/BACnetLiftCarDriveStatus.go | 9 +-
.../model/BACnetLiftCarDriveStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLiftCarMode.go | 9 +-
.../readwrite/model/BACnetLiftCarModeTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLiftFault.go | 9 +-
.../readwrite/model/BACnetLiftFaultTagged.go | 5 +
.../readwrite/model/BACnetLiftGroupMode.go | 9 +-
.../readwrite/model/BACnetLiftGroupModeTagged.go | 5 +
.../readwrite/model/BACnetLightingCommand.go | 15 ++-
.../model/BACnetLightingCommandEnclosed.go | 5 +
.../readwrite/model/BACnetLightingInProgress.go | 9 +-
.../model/BACnetLightingInProgressTagged.go | 5 +
.../readwrite/model/BACnetLightingOperation.go | 9 +-
.../model/BACnetLightingOperationTagged.go | 5 +
.../readwrite/model/BACnetLightingTransition.go | 9 +-
.../model/BACnetLightingTransitionTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLimitEnable.go | 9 +-
.../readwrite/model/BACnetLimitEnableTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLockStatus.go | 9 +-
.../readwrite/model/BACnetLockStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLogData.go | 5 +
.../readwrite/model/BACnetLogDataLogData.go | 5 +
.../readwrite/model/BACnetLogDataLogDataEntry.go | 5 +
.../model/BACnetLogDataLogDataEntryAnyValue.go | 7 +-
.../BACnetLogDataLogDataEntryBitStringValue.go | 5 +
.../model/BACnetLogDataLogDataEntryBooleanValue.go | 5 +
.../BACnetLogDataLogDataEntryEnumeratedValue.go | 5 +
.../model/BACnetLogDataLogDataEntryFailure.go | 5 +
.../model/BACnetLogDataLogDataEntryIntegerValue.go | 5 +
.../model/BACnetLogDataLogDataEntryNullValue.go | 5 +
.../model/BACnetLogDataLogDataEntryRealValue.go | 5 +
.../BACnetLogDataLogDataEntryUnsignedValue.go | 5 +
.../model/BACnetLogDataLogDataTimeChange.go | 5 +
.../readwrite/model/BACnetLogDataLogStatus.go | 5 +
.../readwrite/model/BACnetLogMultipleRecord.go | 5 +
.../bacnetip/readwrite/model/BACnetLogRecord.go | 7 +-
.../readwrite/model/BACnetLogRecordLogDatum.go | 5 +
.../model/BACnetLogRecordLogDatumAnyValue.go | 7 +-
.../model/BACnetLogRecordLogDatumBitStringValue.go | 5 +
.../model/BACnetLogRecordLogDatumBooleanValue.go | 5 +
.../BACnetLogRecordLogDatumEnumeratedValue.go | 5 +
.../model/BACnetLogRecordLogDatumFailure.go | 5 +
.../model/BACnetLogRecordLogDatumIntegerValue.go | 5 +
.../model/BACnetLogRecordLogDatumLogStatus.go | 5 +
.../model/BACnetLogRecordLogDatumNullValue.go | 5 +
.../model/BACnetLogRecordLogDatumRealValue.go | 5 +
.../model/BACnetLogRecordLogDatumTimeChange.go | 5 +
.../model/BACnetLogRecordLogDatumUnsignedValue.go | 5 +
.../bacnetip/readwrite/model/BACnetLogStatus.go | 9 +-
.../readwrite/model/BACnetLogStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetLoggingType.go | 9 +-
.../readwrite/model/BACnetLoggingTypeTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetMaintenance.go | 9 +-
.../readwrite/model/BACnetMaintenanceTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetNameValue.go | 7 +-
.../readwrite/model/BACnetNameValueCollection.go | 5 +
.../readwrite/model/BACnetNetworkNumberQuality.go | 9 +-
.../model/BACnetNetworkNumberQualityTagged.go | 5 +
.../readwrite/model/BACnetNetworkPortCommand.go | 9 +-
.../model/BACnetNetworkPortCommandTagged.go | 5 +
.../readwrite/model/BACnetNetworkSecurityPolicy.go | 5 +
.../bacnetip/readwrite/model/BACnetNetworkType.go | 9 +-
.../readwrite/model/BACnetNetworkTypeTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetNodeType.go | 9 +-
.../readwrite/model/BACnetNodeTypeTagged.go | 5 +
.../model/BACnetNotificationParameters.go | 5 +
.../BACnetNotificationParametersAccessEvent.go | 7 +-
.../BACnetNotificationParametersBufferReady.go | 5 +
...ACnetNotificationParametersChangeOfBitString.go | 5 +
...otificationParametersChangeOfCharacterString.go | 5 +
...tNotificationParametersChangeOfDiscreteValue.go | 5 +
...ationParametersChangeOfDiscreteValueNewValue.go | 5 +
...rametersChangeOfDiscreteValueNewValueBoolean.go | 5 +
...ChangeOfDiscreteValueNewValueCharacterString.go | 5 +
...ametersChangeOfDiscreteValueNewValueDatetime.go | 5 +
...etersChangeOfDiscreteValueNewValueEnumerated.go | 5 +
...rametersChangeOfDiscreteValueNewValueInteger.go | 5 +
...hangeOfDiscreteValueNewValueObjectidentifier.go | 5 +
...metersChangeOfDiscreteValueNewValueOctetDate.go | 5 +
...tersChangeOfDiscreteValueNewValueOctetString.go | 5 +
...metersChangeOfDiscreteValueNewValueOctetTime.go | 5 +
...ametersChangeOfDiscreteValueNewValueUnsigned.go | 5 +
...CnetNotificationParametersChangeOfLifeSafety.go | 5 +
...netNotificationParametersChangeOfReliability.go | 5 +
.../BACnetNotificationParametersChangeOfState.go | 5 +
...netNotificationParametersChangeOfStatusFlags.go | 5 +
.../BACnetNotificationParametersChangeOfTimer.go | 11 +-
.../BACnetNotificationParametersChangeOfValue.go | 5 +
...tNotificationParametersChangeOfValueNewValue.go | 5 +
...onParametersChangeOfValueNewValueChangedBits.go | 5 +
...nParametersChangeOfValueNewValueChangedValue.go | 5 +
.../BACnetNotificationParametersCommandFailure.go | 5 +
...BACnetNotificationParametersComplexEventType.go | 5 +
...BACnetNotificationParametersDoubleOutOfRange.go | 5 +
.../model/BACnetNotificationParametersExtended.go | 5 +
...CnetNotificationParametersExtendedParameters.go | 33 +++--
.../BACnetNotificationParametersFloatingLimit.go | 5 +
.../BACnetNotificationParametersOutOfRange.go | 5 +
...BACnetNotificationParametersSignedOutOfRange.go | 5 +
...CnetNotificationParametersUnsignedOutOfRange.go | 5 +
.../BACnetNotificationParametersUnsignedRange.go | 5 +
.../bacnetip/readwrite/model/BACnetNotifyType.go | 9 +-
.../readwrite/model/BACnetNotifyTypeTagged.go | 5 +
.../model/BACnetObjectPropertyReference.go | 7 +-
.../model/BACnetObjectPropertyReferenceEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetObjectType.go | 9 +-
.../readwrite/model/BACnetObjectTypeTagged.go | 5 +
.../readwrite/model/BACnetObjectTypesSupported.go | 9 +-
.../model/BACnetObjectTypesSupportedTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetOpeningTag.go | 5 +
.../readwrite/model/BACnetOptionalBinaryPV.go | 5 +
.../readwrite/model/BACnetOptionalBinaryPVNull.go | 5 +
.../readwrite/model/BACnetOptionalBinaryPVValue.go | 5 +
.../model/BACnetOptionalCharacterString.go | 5 +
.../model/BACnetOptionalCharacterStringNull.go | 5 +
.../model/BACnetOptionalCharacterStringValue.go | 5 +
.../bacnetip/readwrite/model/BACnetOptionalREAL.go | 5 +
.../readwrite/model/BACnetOptionalREALNull.go | 5 +
.../readwrite/model/BACnetOptionalREALValue.go | 5 +
.../readwrite/model/BACnetOptionalUnsigned.go | 5 +
.../readwrite/model/BACnetOptionalUnsignedNull.go | 5 +
.../readwrite/model/BACnetOptionalUnsignedValue.go | 5 +
.../bacnetip/readwrite/model/BACnetPolarity.go | 9 +-
.../readwrite/model/BACnetPolarityTagged.go | 5 +
.../readwrite/model/BACnetPortPermission.go | 7 +-
.../bacnetip/readwrite/model/BACnetPrescale.go | 5 +
.../readwrite/model/BACnetPriorityArray.go | 7 +-
.../readwrite/model/BACnetPriorityValue.go | 5 +
.../model/BACnetPriorityValueBitString.go | 5 +
.../readwrite/model/BACnetPriorityValueBoolean.go | 5 +
.../model/BACnetPriorityValueCharacterString.go | 5 +
.../model/BACnetPriorityValueConstructedValue.go | 5 +
.../readwrite/model/BACnetPriorityValueDate.go | 5 +
.../readwrite/model/BACnetPriorityValueDateTime.go | 5 +
.../readwrite/model/BACnetPriorityValueDouble.go | 5 +
.../model/BACnetPriorityValueEnumerated.go | 5 +
.../readwrite/model/BACnetPriorityValueInteger.go | 5 +
.../readwrite/model/BACnetPriorityValueNull.go | 5 +
.../model/BACnetPriorityValueObjectidentifier.go | 5 +
.../model/BACnetPriorityValueOctetString.go | 5 +
.../readwrite/model/BACnetPriorityValueReal.go | 5 +
.../readwrite/model/BACnetPriorityValueTime.go | 5 +
.../readwrite/model/BACnetPriorityValueUnsigned.go | 5 +
.../readwrite/model/BACnetProcessIdSelection.go | 5 +
.../model/BACnetProcessIdSelectionNull.go | 5 +
.../model/BACnetProcessIdSelectionValue.go | 5 +
.../bacnetip/readwrite/model/BACnetProgramError.go | 9 +-
.../readwrite/model/BACnetProgramErrorTagged.go | 5 +
.../readwrite/model/BACnetProgramRequest.go | 9 +-
.../readwrite/model/BACnetProgramRequestTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetProgramState.go | 9 +-
.../readwrite/model/BACnetProgramStateTagged.go | 5 +
.../readwrite/model/BACnetPropertyAccessResult.go | 9 +-
.../BACnetPropertyAccessResultAccessResult.go | 5 +
...yAccessResultAccessResultPropertyAccessError.go | 5 +
...ropertyAccessResultAccessResultPropertyValue.go | 5 +
.../readwrite/model/BACnetPropertyIdentifier.go | 9 +-
.../model/BACnetPropertyIdentifierTagged.go | 5 +
.../readwrite/model/BACnetPropertyReference.go | 7 +-
.../model/BACnetPropertyReferenceEnclosed.go | 5 +
.../model/BACnetPropertyStateActionUnknown.go | 5 +
.../readwrite/model/BACnetPropertyStates.go | 5 +
.../BACnetPropertyStatesAccessCredentialDisable.go | 5 +
...tPropertyStatesAccessCredentialDisableReason.go | 5 +
.../model/BACnetPropertyStatesAccessEvent.go | 5 +
.../readwrite/model/BACnetPropertyStatesAction.go | 5 +
.../BACnetPropertyStatesAuthenticationStatus.go | 5 +
.../model/BACnetPropertyStatesBackupState.go | 5 +
.../model/BACnetPropertyStatesBacnetIpMode.go | 5 +
.../BACnetPropertyStatesBinaryLightningValue.go | 5 +
.../model/BACnetPropertyStatesBinaryValue.go | 5 +
.../readwrite/model/BACnetPropertyStatesBoolean.go | 5 +
.../model/BACnetPropertyStatesDoorAlarmState.go | 5 +
.../model/BACnetPropertyStatesDoorSecuredStatus.go | 5 +
.../model/BACnetPropertyStatesDoorStatus.go | 5 +
.../model/BACnetPropertyStatesDoorValue.go | 5 +
.../model/BACnetPropertyStatesEnclosed.go | 5 +
.../model/BACnetPropertyStatesEscalatorFault.go | 5 +
.../model/BACnetPropertyStatesEscalatorMode.go | 5 +
...netPropertyStatesEscalatorOperationDirection.go | 5 +
.../model/BACnetPropertyStatesEventType.go | 5 +
.../model/BACnetPropertyStatesExtendedValue.go | 5 +
.../model/BACnetPropertyStatesFileAccessMethod.go | 5 +
.../model/BACnetPropertyStatesIntegerValue.go | 5 +
.../model/BACnetPropertyStatesLifeSafetyMode.go | 5 +
.../BACnetPropertyStatesLifeSafetyOperations.go | 5 +
.../model/BACnetPropertyStatesLifeSafetyState.go | 5 +
.../model/BACnetPropertyStatesLiftCarDirection.go | 5 +
.../BACnetPropertyStatesLiftCarDoorCommand.go | 5 +
.../BACnetPropertyStatesLiftCarDriveStatus.go | 5 +
.../model/BACnetPropertyStatesLiftCarMode.go | 5 +
.../model/BACnetPropertyStatesLiftFault.go | 5 +
.../model/BACnetPropertyStatesLiftGroupMode.go | 5 +
.../BACnetPropertyStatesLightningInProgress.go | 5 +
.../BACnetPropertyStatesLightningOperation.go | 5 +
.../BACnetPropertyStatesLightningTransition.go | 5 +
.../model/BACnetPropertyStatesLockStatus.go | 5 +
.../model/BACnetPropertyStatesMaintenance.go | 5 +
.../BACnetPropertyStatesNetworkNumberQuality.go | 5 +
.../BACnetPropertyStatesNetworkPortCommand.go | 5 +
.../model/BACnetPropertyStatesNetworkType.go | 5 +
.../model/BACnetPropertyStatesNodeType.go | 5 +
.../model/BACnetPropertyStatesNotifyType.go | 5 +
.../model/BACnetPropertyStatesPolarity.go | 5 +
.../model/BACnetPropertyStatesProgramChange.go | 5 +
.../model/BACnetPropertyStatesProtocolLevel.go | 5 +
.../model/BACnetPropertyStatesReasonForHalt.go | 5 +
.../model/BACnetPropertyStatesReliability.go | 5 +
.../model/BACnetPropertyStatesRestartReason.go | 5 +
.../model/BACnetPropertyStatesSecurityLevel.go | 5 +
.../model/BACnetPropertyStatesShedState.go | 5 +
.../model/BACnetPropertyStatesSilencedState.go | 5 +
.../readwrite/model/BACnetPropertyStatesState.go | 5 +
.../model/BACnetPropertyStatesSystemStatus.go | 5 +
.../model/BACnetPropertyStatesTimerState.go | 5 +
.../model/BACnetPropertyStatesTimerTransition.go | 5 +
.../readwrite/model/BACnetPropertyStatesUnits.go | 5 +
.../model/BACnetPropertyStatesWriteStatus.go | 5 +
.../model/BACnetPropertyStatesZoneOccupanyState.go | 5 +
.../readwrite/model/BACnetPropertyValue.go | 11 +-
.../readwrite/model/BACnetPropertyValues.go | 5 +
.../model/BACnetPropertyWriteDefinition.go | 11 +-
.../readwrite/model/BACnetProtocolLevel.go | 9 +-
.../readwrite/model/BACnetProtocolLevelTagged.go | 5 +
.../readwrite/model/BACnetReadAccessProperty.go | 9 +-
.../model/BACnetReadAccessPropertyReadResult.go | 9 +-
.../readwrite/model/BACnetReadAccessResult.go | 7 +-
.../model/BACnetReadAccessResultListOfResults.go | 5 +
.../model/BACnetReadAccessSpecification.go | 5 +
.../bacnetip/readwrite/model/BACnetRecipient.go | 5 +
.../readwrite/model/BACnetRecipientAddress.go | 5 +
.../readwrite/model/BACnetRecipientDevice.go | 5 +
.../readwrite/model/BACnetRecipientEnclosed.go | 5 +
.../readwrite/model/BACnetRecipientProcess.go | 7 +-
.../model/BACnetRecipientProcessEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetRejectReason.go | 9 +-
.../readwrite/model/BACnetRejectReasonTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetRelationship.go | 9 +-
.../readwrite/model/BACnetRelationshipTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetReliability.go | 9 +-
.../readwrite/model/BACnetReliabilityTagged.go | 5 +
.../readwrite/model/BACnetRestartReason.go | 9 +-
.../readwrite/model/BACnetRestartReasonTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetResultFlags.go | 9 +-
.../readwrite/model/BACnetResultFlagsTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetRouterEntry.go | 7 +-
.../readwrite/model/BACnetRouterEntryStatus.go | 9 +-
.../model/BACnetRouterEntryStatusTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetScale.go | 5 +
.../readwrite/model/BACnetScaleFloatScale.go | 5 +
.../readwrite/model/BACnetScaleIntegerScale.go | 5 +
.../readwrite/model/BACnetSecurityKeySet.go | 5 +
.../readwrite/model/BACnetSecurityKeySetKeyIds.go | 5 +
.../readwrite/model/BACnetSecurityLevel.go | 9 +-
.../readwrite/model/BACnetSecurityLevelTagged.go | 5 +
.../readwrite/model/BACnetSecurityPolicy.go | 9 +-
.../readwrite/model/BACnetSecurityPolicyTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetSegmentation.go | 9 +-
.../readwrite/model/BACnetSegmentationTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetServiceAck.go | 5 +
.../model/BACnetServiceAckAtomicReadFile.go | 5 +
.../model/BACnetServiceAckAtomicReadFileRecord.go | 5 +
.../model/BACnetServiceAckAtomicReadFileStream.go | 5 +
...BACnetServiceAckAtomicReadFileStreamOrRecord.go | 5 +
.../model/BACnetServiceAckAtomicWriteFile.go | 5 +
.../model/BACnetServiceAckAuthenticate.go | 5 +
.../BACnetServiceAckConfirmedPrivateTransfer.go | 7 +-
.../model/BACnetServiceAckCreateObject.go | 5 +
.../model/BACnetServiceAckGetAlarmSummary.go | 5 +
.../model/BACnetServiceAckGetEnrollmentSummary.go | 7 +-
.../model/BACnetServiceAckGetEventInformation.go | 5 +
.../model/BACnetServiceAckReadProperty.go | 9 +-
.../BACnetServiceAckReadPropertyConditional.go | 5 +
.../model/BACnetServiceAckReadPropertyMultiple.go | 5 +
.../readwrite/model/BACnetServiceAckReadRange.go | 11 +-
.../readwrite/model/BACnetServiceAckRequestKey.go | 5 +
.../readwrite/model/BACnetServiceAckVTData.go | 5 +
.../readwrite/model/BACnetServiceAckVTOpen.go | 5 +
.../readwrite/model/BACnetServicesSupported.go | 9 +-
.../model/BACnetServicesSupportedTagged.go | 5 +
.../readwrite/model/BACnetSetpointReference.go | 7 +-
.../bacnetip/readwrite/model/BACnetShedLevel.go | 5 +
.../readwrite/model/BACnetShedLevelAmount.go | 5 +
.../readwrite/model/BACnetShedLevelLevel.go | 5 +
.../readwrite/model/BACnetShedLevelPercent.go | 5 +
.../bacnetip/readwrite/model/BACnetShedState.go | 9 +-
.../readwrite/model/BACnetShedStateTagged.go | 5 +
.../readwrite/model/BACnetSilencedState.go | 9 +-
.../readwrite/model/BACnetSilencedStateTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetSpecialEvent.go | 5 +
.../model/BACnetSpecialEventListOfTimeValues.go | 5 +
.../readwrite/model/BACnetSpecialEventPeriod.go | 5 +
.../model/BACnetSpecialEventPeriodCalendarEntry.go | 5 +
.../BACnetSpecialEventPeriodCalendarReference.go | 5 +
.../bacnetip/readwrite/model/BACnetStatusFlags.go | 9 +-
.../readwrite/model/BACnetStatusFlagsTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetTagHeader.go | 5 +
.../readwrite/model/BACnetTagPayloadBitString.go | 5 +
.../readwrite/model/BACnetTagPayloadBoolean.go | 5 +
.../model/BACnetTagPayloadCharacterString.go | 5 +
.../readwrite/model/BACnetTagPayloadDate.go | 5 +
.../readwrite/model/BACnetTagPayloadDouble.go | 5 +
.../readwrite/model/BACnetTagPayloadEnumerated.go | 5 +
.../model/BACnetTagPayloadObjectIdentifier.go | 5 +
.../readwrite/model/BACnetTagPayloadOctetString.go | 5 +
.../readwrite/model/BACnetTagPayloadReal.go | 5 +
.../model/BACnetTagPayloadSignedInteger.go | 5 +
.../readwrite/model/BACnetTagPayloadTime.go | 5 +
.../model/BACnetTagPayloadUnsignedInteger.go | 5 +
.../bacnetip/readwrite/model/BACnetTimeStamp.go | 5 +
.../readwrite/model/BACnetTimeStampDateTime.go | 5 +
.../readwrite/model/BACnetTimeStampEnclosed.go | 5 +
.../readwrite/model/BACnetTimeStampSequence.go | 5 +
.../readwrite/model/BACnetTimeStampTime.go | 5 +
.../readwrite/model/BACnetTimeStampsEnclosed.go | 5 +
.../bacnetip/readwrite/model/BACnetTimeValue.go | 5 +
.../bacnetip/readwrite/model/BACnetTimerState.go | 9 +-
.../readwrite/model/BACnetTimerStateChangeValue.go | 5 +
.../model/BACnetTimerStateChangeValueBitString.go | 5 +
.../model/BACnetTimerStateChangeValueBoolean.go | 5 +
.../BACnetTimerStateChangeValueCharacterString.go | 5 +
.../BACnetTimerStateChangeValueConstructedValue.go | 5 +
.../model/BACnetTimerStateChangeValueDate.go | 5 +
.../model/BACnetTimerStateChangeValueDateTime.go | 5 +
.../model/BACnetTimerStateChangeValueDouble.go | 5 +
.../model/BACnetTimerStateChangeValueEnumerated.go | 5 +
.../model/BACnetTimerStateChangeValueInteger.go | 5 +
.../BACnetTimerStateChangeValueLightingCommand.go | 5 +
.../model/BACnetTimerStateChangeValueNoValue.go | 5 +
.../model/BACnetTimerStateChangeValueNull.go | 5 +
.../BACnetTimerStateChangeValueObjectidentifier.go | 5 +
.../BACnetTimerStateChangeValueOctetString.go | 5 +
.../model/BACnetTimerStateChangeValueReal.go | 5 +
.../model/BACnetTimerStateChangeValueTime.go | 5 +
.../model/BACnetTimerStateChangeValueUnsigned.go | 5 +
.../readwrite/model/BACnetTimerStateTagged.go | 5 +
.../readwrite/model/BACnetTimerTransition.go | 9 +-
.../readwrite/model/BACnetTimerTransitionTagged.go | 5 +
.../model/BACnetUnconfirmedServiceChoice.go | 9 +-
.../model/BACnetUnconfirmedServiceChoiceTagged.go | 5 +
.../model/BACnetUnconfirmedServiceRequest.go | 5 +
.../model/BACnetUnconfirmedServiceRequestIAm.go | 5 +
.../model/BACnetUnconfirmedServiceRequestIHave.go | 5 +
...UnconfirmedServiceRequestTimeSynchronization.go | 5 +
...onfirmedServiceRequestUTCTimeSynchronization.go | 5 +
...rmedServiceRequestUnconfirmedCOVNotification.go | 5 +
...iceRequestUnconfirmedCOVNotificationMultiple.go | 7 +-
...edServiceRequestUnconfirmedEventNotification.go | 13 +-
...rmedServiceRequestUnconfirmedPrivateTransfer.go | 7 +-
...onfirmedServiceRequestUnconfirmedTextMessage.go | 7 +-
.../BACnetUnconfirmedServiceRequestUnknown.go | 5 +
.../model/BACnetUnconfirmedServiceRequestWhoHas.go | 9 +-
.../BACnetUnconfirmedServiceRequestWhoHasObject.go | 5 +
...onfirmedServiceRequestWhoHasObjectIdentifier.go | 5 +
...netUnconfirmedServiceRequestWhoHasObjectName.go | 5 +
.../model/BACnetUnconfirmedServiceRequestWhoIs.go | 9 +-
.../BACnetUnconfirmedServiceRequestWriteGroup.go | 7 +-
.../bacnetip/readwrite/model/BACnetVMACEntry.go | 9 +-
.../bacnetip/readwrite/model/BACnetVTClass.go | 9 +-
.../readwrite/model/BACnetVTClassTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetVTSession.go | 5 +
.../bacnetip/readwrite/model/BACnetValueSource.go | 5 +
.../readwrite/model/BACnetValueSourceAddress.go | 5 +
.../readwrite/model/BACnetValueSourceNone.go | 5 +
.../readwrite/model/BACnetValueSourceObject.go | 5 +
.../bacnetip/readwrite/model/BACnetVendorId.go | 9 +-
.../readwrite/model/BACnetVendorIdTagged.go | 5 +
.../bacnetip/readwrite/model/BACnetWeekNDay.go | 5 +
.../readwrite/model/BACnetWeekNDayTagged.go | 5 +
.../model/BACnetWriteAccessSpecification.go | 5 +
.../bacnetip/readwrite/model/BACnetWriteStatus.go | 9 +-
.../readwrite/model/BACnetWriteStatusTagged.go | 5 +
plc4go/protocols/bacnetip/readwrite/model/BVLC.go | 5 +
.../model/BVLCBroadcastDistributionTableEntry.go | 5 +
.../model/BVLCDeleteForeignDeviceTableEntry.go | 5 +
.../model/BVLCDistributeBroadcastToNetwork.go | 5 +
.../readwrite/model/BVLCForeignDeviceTableEntry.go | 5 +
.../bacnetip/readwrite/model/BVLCForwardedNPDU.go | 5 +
.../readwrite/model/BVLCOriginalBroadcastNPDU.go | 5 +
.../readwrite/model/BVLCOriginalUnicastNPDU.go | 5 +
.../model/BVLCReadBroadcastDistributionTable.go | 5 +
.../model/BVLCReadBroadcastDistributionTableAck.go | 5 +
.../readwrite/model/BVLCReadForeignDeviceTable.go | 5 +
.../model/BVLCReadForeignDeviceTableAck.go | 5 +
.../readwrite/model/BVLCRegisterForeignDevice.go | 5 +
.../bacnetip/readwrite/model/BVLCResult.go | 5 +
.../bacnetip/readwrite/model/BVLCResultCode.go | 9 +-
.../readwrite/model/BVLCResultCodeTagged.go | 5 +
.../bacnetip/readwrite/model/BVLCSecureBVLL.go | 5 +
.../model/BVLCWriteBroadcastDistributionTable.go | 5 +
.../bacnetip/readwrite/model/BacnetConstants.go | 5 +
.../bacnetip/readwrite/model/ChangeListAddError.go | 5 +
.../readwrite/model/ChangeListRemoveError.go | 5 +
.../model/ConfirmedEventNotificationRequest.go | 13 +-
.../model/ConfirmedPrivateTransferError.go | 7 +-
.../bacnetip/readwrite/model/CreateObjectError.go | 5 +
plc4go/protocols/bacnetip/readwrite/model/Error.go | 5 +
.../bacnetip/readwrite/model/ErrorClass.go | 9 +-
.../bacnetip/readwrite/model/ErrorClassTagged.go | 5 +
.../bacnetip/readwrite/model/ErrorCode.go | 9 +-
.../bacnetip/readwrite/model/ErrorCodeTagged.go | 5 +
.../bacnetip/readwrite/model/ErrorEnclosed.go | 5 +
.../readwrite/model/ListOfCovNotifications.go | 5 +
.../readwrite/model/ListOfCovNotificationsList.go | 5 +
.../readwrite/model/ListOfCovNotificationsValue.go | 9 +-
.../readwrite/model/MaxApduLengthAccepted.go | 9 +-
.../readwrite/model/MaxSegmentsAccepted.go | 9 +-
plc4go/protocols/bacnetip/readwrite/model/NLM.go | 5 +
.../readwrite/model/NLMChallengeRequest.go | 5 +
.../model/NLMDisconnectConnectionToNetwork.go | 5 +
.../model/NLMEstablishConnectionToNetwork.go | 5 +
.../readwrite/model/NLMIAmRouterToNetwork.go | 5 +
.../readwrite/model/NLMICouldBeRouterToNetwork.go | 5 +
.../readwrite/model/NLMInitalizeRoutingTable.go | 5 +
.../readwrite/model/NLMInitalizeRoutingTableAck.go | 5 +
.../model/NLMInitalizeRoutingTablePortMapping.go | 5 +
.../bacnetip/readwrite/model/NLMNetworkNumberIs.go | 9 +-
.../readwrite/model/NLMRejectRouterToNetwork.go | 5 +
.../model/NLMRejectRouterToNetworkRejectReason.go | 9 +-
.../readwrite/model/NLMRequestKeyUpdate.go | 5 +
.../readwrite/model/NLMRequestMasterKey.go | 5 +
.../bacnetip/readwrite/model/NLMReserved.go | 5 +
.../readwrite/model/NLMRouterAvailableToNetwork.go | 5 +
.../readwrite/model/NLMRouterBusyToNetwork.go | 5 +
.../bacnetip/readwrite/model/NLMSecurityPayload.go | 5 +
.../readwrite/model/NLMSecurityResponse.go | 5 +
.../bacnetip/readwrite/model/NLMSetMasterKey.go | 5 +
.../readwrite/model/NLMUpdateKeyDistributionKey.go | 5 +
.../bacnetip/readwrite/model/NLMUpdateKeyUpdate.go | 5 +
.../model/NLMUpdateKeyUpdateControlFlags.go | 5 +
.../readwrite/model/NLMUpdateKeyUpdateKeyEntry.go | 5 +
.../readwrite/model/NLMVendorProprietaryMessage.go | 5 +
.../readwrite/model/NLMWhatIsNetworkNumber.go | 5 +
.../readwrite/model/NLMWhoIsRouterToNetwork.go | 5 +
plc4go/protocols/bacnetip/readwrite/model/NPDU.go | 9 +-
.../bacnetip/readwrite/model/NPDUControl.go | 13 +-
.../readwrite/model/NPDUNetworkPriority.go | 9 +-
.../readwrite/model/NPDUNetworkPriorityTagged.go | 5 +
.../readwrite/model/SecurityResponseCode.go | 9 +-
.../readwrite/model/SecurityResponseCodeTagged.go | 5 +
.../model/SubscribeCOVPropertyMultipleError.go | 5 +
...PropertyMultipleErrorFirstFailedSubscription.go | 5 +
.../protocols/bacnetip/readwrite/model/TagClass.go | 9 +-
.../bacnetip/readwrite/model/VTCloseError.go | 7 +-
.../VTCloseErrorListOfVTSessionIdentifiers.go | 5 +
.../readwrite/model/WritePropertyMultipleError.go | 5 +
.../bacnetip/readwrite/model/plc4x_common.go | 5 -
.../cbus/readwrite/model/AccessControlCategory.go | 9 +-
.../readwrite/model/AccessControlCommandType.go | 9 +-
.../model/AccessControlCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/AccessControlData.go | 5 +
.../model/AccessControlDataAccessPointClosed.go | 5 +
.../AccessControlDataAccessPointForcedOpen.go | 5 +
.../model/AccessControlDataAccessPointLeftOpen.go | 5 +
.../model/AccessControlDataCloseAccessPoint.go | 5 +
.../model/AccessControlDataInvalidAccessRequest.go | 5 +
.../model/AccessControlDataLockAccessPoint.go | 5 +
.../model/AccessControlDataRequestToExit.go | 5 +
.../model/AccessControlDataValidAccessRequest.go | 5 +
.../cbus/readwrite/model/AccessControlDirection.go | 9 +-
.../readwrite/model/AirConditioningCommandType.go | 9 +-
.../model/AirConditioningCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/AirConditioningData.go | 5 +
.../AirConditioningDataHumidityScheduleEntry.go | 9 +-
.../model/AirConditioningDataHvacScheduleEntry.go | 9 +-
.../readwrite/model/AirConditioningDataRefresh.go | 5 +
...irConditioningDataSetHumidityLowerGuardLimit.go | 5 +
.../AirConditioningDataSetHumiditySetbackLimit.go | 5 +
...irConditioningDataSetHumidityUpperGuardLimit.go | 5 +
.../AirConditioningDataSetHvacLowerGuardLimit.go | 5 +
.../AirConditioningDataSetHvacSetbackLimit.go | 5 +
.../AirConditioningDataSetHvacUpperGuardLimit.go | 5 +
.../AirConditioningDataSetPlantHumidityLevel.go | 11 +-
.../model/AirConditioningDataSetPlantHvacLevel.go | 11 +-
.../model/AirConditioningDataSetZoneGroupOff.go | 5 +
.../model/AirConditioningDataSetZoneGroupOn.go | 5 +
.../AirConditioningDataSetZoneHumidityMode.go | 11 +-
.../model/AirConditioningDataSetZoneHvacMode.go | 11 +-
.../model/AirConditioningDataZoneHumidity.go | 5 +
.../AirConditioningDataZoneHumidityPlantStatus.go | 5 +
.../AirConditioningDataZoneHvacPlantStatus.go | 5 +
.../model/AirConditioningDataZoneTemperature.go | 5 +
plc4go/protocols/cbus/readwrite/model/Alpha.go | 5 +
.../cbus/readwrite/model/ApplicationAddress1.go | 5 +
.../cbus/readwrite/model/ApplicationAddress2.go | 5 +
.../cbus/readwrite/model/ApplicationId.go | 9 +-
.../cbus/readwrite/model/ApplicationIdContainer.go | 9 +-
plc4go/protocols/cbus/readwrite/model/Attribute.go | 9 +-
.../cbus/readwrite/model/BaudRateSelector.go | 9 +-
.../cbus/readwrite/model/BridgeAddress.go | 5 +
.../cbus/readwrite/model/CALCommandType.go | 9 +-
.../readwrite/model/CALCommandTypeContainer.go | 9 +-
plc4go/protocols/cbus/readwrite/model/CALData.go | 7 +-
.../cbus/readwrite/model/CALDataAcknowledge.go | 5 +
.../cbus/readwrite/model/CALDataGetStatus.go | 5 +
.../cbus/readwrite/model/CALDataIdentify.go | 5 +
.../cbus/readwrite/model/CALDataIdentifyReply.go | 5 +
.../cbus/readwrite/model/CALDataRecall.go | 5 +
.../protocols/cbus/readwrite/model/CALDataReply.go | 5 +
.../protocols/cbus/readwrite/model/CALDataReset.go | 5 +
.../cbus/readwrite/model/CALDataStatus.go | 5 +
.../cbus/readwrite/model/CALDataStatusExtended.go | 5 +
.../protocols/cbus/readwrite/model/CALDataWrite.go | 5 +
plc4go/protocols/cbus/readwrite/model/CALReply.go | 5 +
.../protocols/cbus/readwrite/model/CALReplyLong.go | 15 ++-
.../cbus/readwrite/model/CALReplyShort.go | 5 +
.../protocols/cbus/readwrite/model/CBusCommand.go | 5 +
.../readwrite/model/CBusCommandDeviceManagement.go | 5 +
.../model/CBusCommandPointToMultiPoint.go | 5 +
.../readwrite/model/CBusCommandPointToPoint.go | 5 +
.../model/CBusCommandPointToPointToMultiPoint.go | 5 +
.../cbus/readwrite/model/CBusConstants.go | 5 +
.../protocols/cbus/readwrite/model/CBusHeader.go | 5 +
.../protocols/cbus/readwrite/model/CBusMessage.go | 5 +
.../cbus/readwrite/model/CBusMessageToClient.go | 5 +
.../cbus/readwrite/model/CBusMessageToServer.go | 5 +
.../protocols/cbus/readwrite/model/CBusOptions.go | 5 +
.../model/CBusPointToMultiPointCommand.go | 5 +
.../model/CBusPointToMultiPointCommandNormal.go | 9 +-
.../model/CBusPointToMultiPointCommandStatus.go | 13 +-
.../readwrite/model/CBusPointToPointCommand.go | 5 +
.../model/CBusPointToPointCommandDirect.go | 9 +-
.../model/CBusPointToPointCommandIndirect.go | 5 +
.../model/CBusPointToPointToMultiPointCommand.go | 5 +
.../CBusPointToPointToMultiPointCommandNormal.go | 5 +
.../CBusPointToPointToMultiPointCommandStatus.go | 9 +-
.../cbus/readwrite/model/ChannelStatus.go | 9 +-
plc4go/protocols/cbus/readwrite/model/Checksum.go | 5 +
.../model/ClockAndTimekeepingCommandType.go | 9 +-
.../ClockAndTimekeepingCommandTypeContainer.go | 9 +-
.../readwrite/model/ClockAndTimekeepingData.go | 5 +
.../model/ClockAndTimekeepingDataRequestRefresh.go | 5 +
.../model/ClockAndTimekeepingDataUpdateDate.go | 5 +
.../model/ClockAndTimekeepingDataUpdateTime.go | 5 +
.../protocols/cbus/readwrite/model/Confirmation.go | 7 +-
.../cbus/readwrite/model/ConfirmationType.go | 9 +-
.../cbus/readwrite/model/CustomManufacturer.go | 5 +
.../protocols/cbus/readwrite/model/CustomTypes.go | 5 +
.../cbus/readwrite/model/DestinationAddressType.go | 9 +-
.../cbus/readwrite/model/DialInFailureReason.go | 9 +-
.../cbus/readwrite/model/DialOutFailureReason.go | 9 +-
.../readwrite/model/EnableControlCommandType.go | 9 +-
.../model/EnableControlCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/EnableControlData.go | 5 +
.../protocols/cbus/readwrite/model/EncodedReply.go | 5 +
.../cbus/readwrite/model/EncodedReplyCALReply.go | 5 +
.../readwrite/model/ErrorReportingCommandType.go | 9 +-
.../model/ErrorReportingCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/ErrorReportingData.go | 5 +
.../readwrite/model/ErrorReportingDataGeneric.go | 5 +
.../cbus/readwrite/model/ErrorReportingSeverity.go | 9 +-
.../model/ErrorReportingSystemCategory.go | 5 +
.../model/ErrorReportingSystemCategoryClass.go | 9 +-
.../model/ErrorReportingSystemCategoryType.go | 5 +
...gSystemCategoryTypeBuildingManagementSystems.go | 5 +
...eportingSystemCategoryTypeClimateControllers.go | 5 +
...stemCategoryTypeForBuildingManagementSystems.go | 9 +-
...rtingSystemCategoryTypeForClimateControllers.go | 9 +-
...rrorReportingSystemCategoryTypeForInputUnits.go | 9 +-
...rorReportingSystemCategoryTypeForOutputUnits.go | 9 +-
...orReportingSystemCategoryTypeForSupportUnits.go | 9 +-
.../ErrorReportingSystemCategoryTypeInputUnits.go | 5 +
.../ErrorReportingSystemCategoryTypeOutputUnits.go | 5 +
.../ErrorReportingSystemCategoryTypeReserved.go | 5 +
...ErrorReportingSystemCategoryTypeSupportUnits.go | 5 +
.../model/ErrorReportingSystemCategoryVariant.go | 9 +-
plc4go/protocols/cbus/readwrite/model/GAVState.go | 9 +-
.../cbus/readwrite/model/HVACAuxiliaryLevel.go | 9 +-
plc4go/protocols/cbus/readwrite/model/HVACError.go | 9 +-
.../protocols/cbus/readwrite/model/HVACHumidity.go | 5 +
.../cbus/readwrite/model/HVACHumidityError.go | 9 +-
.../readwrite/model/HVACHumidityModeAndFlags.go | 9 +-
.../model/HVACHumidityModeAndFlagsMode.go | 9 +-
.../readwrite/model/HVACHumidityStatusFlags.go | 9 +-
.../cbus/readwrite/model/HVACHumidityType.go | 9 +-
.../cbus/readwrite/model/HVACModeAndFlags.go | 9 +-
.../cbus/readwrite/model/HVACModeAndFlagsMode.go | 9 +-
.../cbus/readwrite/model/HVACRawLevels.go | 5 +
.../cbus/readwrite/model/HVACSensorStatus.go | 9 +-
.../cbus/readwrite/model/HVACStartTime.go | 5 +
.../cbus/readwrite/model/HVACStatusFlags.go | 9 +-
.../cbus/readwrite/model/HVACTemperature.go | 5 +
plc4go/protocols/cbus/readwrite/model/HVACType.go | 9 +-
.../protocols/cbus/readwrite/model/HVACZoneList.go | 5 +
.../cbus/readwrite/model/IdentifyReplyCommand.go | 5 +
.../IdentifyReplyCommandCurrentSenseLevels.go | 5 +
.../model/IdentifyReplyCommandDSIStatus.go | 5 +
.../readwrite/model/IdentifyReplyCommandDelays.go | 5 +
...dentifyReplyCommandExtendedDiagnosticSummary.go | 17 ++-
.../model/IdentifyReplyCommandFirmwareVersion.go | 5 +
.../IdentifyReplyCommandGAVPhysicalAddresses.go | 5 +
.../model/IdentifyReplyCommandGAVValuesCurrent.go | 5 +
.../model/IdentifyReplyCommandGAVValuesStored.go | 5 +
.../model/IdentifyReplyCommandLogicalAssignment.go | 5 +
.../model/IdentifyReplyCommandManufacturer.go | 5 +
.../model/IdentifyReplyCommandMaximumLevels.go | 5 +
.../model/IdentifyReplyCommandMinimumLevels.go | 5 +
.../IdentifyReplyCommandNetworkTerminalLevels.go | 5 +
.../model/IdentifyReplyCommandNetworkVoltage.go | 5 +
.../model/IdentifyReplyCommandOutputUnitSummary.go | 5 +
.../readwrite/model/IdentifyReplyCommandSummary.go | 5 +
.../model/IdentifyReplyCommandTerminalLevels.go | 5 +
.../readwrite/model/IdentifyReplyCommandType.go | 5 +
.../model/IdentifyReplyCommandUnitSummary.go | 5 +
.../cbus/readwrite/model/InterfaceOptions1.go | 13 +-
.../model/InterfaceOptions1PowerUpSettings.go | 5 +
.../cbus/readwrite/model/InterfaceOptions2.go | 29 +++--
.../cbus/readwrite/model/InterfaceOptions3.go | 21 +--
plc4go/protocols/cbus/readwrite/model/Language.go | 9 +-
.../cbus/readwrite/model/LevelInformation.go | 5 +
.../cbus/readwrite/model/LevelInformationAbsent.go | 9 +-
.../readwrite/model/LevelInformationCorrupted.go | 5 +
.../readwrite/model/LevelInformationNibblePair.go | 9 +-
.../cbus/readwrite/model/LevelInformationNormal.go | 5 +
.../cbus/readwrite/model/LightingCommandType.go | 9 +-
.../model/LightingCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/LightingCompatible.go | 9 +-
.../protocols/cbus/readwrite/model/LightingData.go | 5 +
.../cbus/readwrite/model/LightingDataLabel.go | 5 +
.../cbus/readwrite/model/LightingDataOff.go | 5 +
.../cbus/readwrite/model/LightingDataOn.go | 5 +
.../readwrite/model/LightingDataRampToLevel.go | 5 +
.../readwrite/model/LightingDataTerminateRamp.go | 5 +
.../cbus/readwrite/model/LightingLabelFlavour.go | 9 +-
.../cbus/readwrite/model/LightingLabelOptions.go | 21 +--
.../cbus/readwrite/model/LightingLabelType.go | 9 +-
.../cbus/readwrite/model/LineOffHookReason.go | 9 +-
.../cbus/readwrite/model/LogicAssignment.go | 13 +-
.../cbus/readwrite/model/MeasurementCommandType.go | 9 +-
.../model/MeasurementCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/MeasurementData.go | 5 +
.../model/MeasurementDataChannelMeasurementData.go | 5 +
.../cbus/readwrite/model/MeasurementUnits.go | 9 +-
.../model/MediaTransportControlCommandType.go | 9 +-
.../MediaTransportControlCommandTypeContainer.go | 9 +-
.../readwrite/model/MediaTransportControlData.go | 5 +
.../model/MediaTransportControlDataCategoryName.go | 5 +
...ontrolDataEnumerateCategoriesSelectionTracks.go | 5 +
.../MediaTransportControlDataEnumerationsSize.go | 5 +
.../model/MediaTransportControlDataFastForward.go | 5 +
...ediaTransportControlDataNextPreviousCategory.go | 5 +
...diaTransportControlDataNextPreviousSelection.go | 5 +
.../MediaTransportControlDataNextPreviousTrack.go | 5 +
.../model/MediaTransportControlDataPauseResume.go | 5 +
.../model/MediaTransportControlDataPlay.go | 5 +
.../model/MediaTransportControlDataRepeatOnOff.go | 5 +
.../model/MediaTransportControlDataRewind.go | 5 +
.../MediaTransportControlDataSelectionName.go | 5 +
.../model/MediaTransportControlDataSetCategory.go | 5 +
.../model/MediaTransportControlDataSetSelection.go | 5 +
.../model/MediaTransportControlDataSetTrack.go | 5 +
.../model/MediaTransportControlDataShuffleOnOff.go | 5 +
.../MediaTransportControlDataSourcePowerControl.go | 5 +
.../MediaTransportControlDataStatusRequest.go | 5 +
.../model/MediaTransportControlDataStop.go | 5 +
.../model/MediaTransportControlDataTotalTracks.go | 5 +
.../model/MediaTransportControlDataTrackName.go | 5 +
.../cbus/readwrite/model/MeteringCommandType.go | 9 +-
.../model/MeteringCommandTypeContainer.go | 9 +-
.../protocols/cbus/readwrite/model/MeteringData.go | 5 +
.../model/MeteringDataDrinkingWaterConsumption.go | 5 +
.../model/MeteringDataElectricityConsumption.go | 5 +
.../readwrite/model/MeteringDataGasConsumption.go | 5 +
.../model/MeteringDataMeasureDrinkingWater.go | 5 +
.../model/MeteringDataMeasureElectricity.go | 5 +
.../cbus/readwrite/model/MeteringDataMeasureGas.go | 5 +
.../cbus/readwrite/model/MeteringDataMeasureOil.go | 5 +
.../model/MeteringDataMeasureOtherWater.go | 5 +
.../readwrite/model/MeteringDataOilConsumption.go | 5 +
.../model/MeteringDataOtherWaterConsumption.go | 5 +
.../protocols/cbus/readwrite/model/MonitoredSAL.go | 5 +
.../model/MonitoredSALLongFormSmartMode.go | 17 ++-
.../cbus/readwrite/model/MonitoredSALReply.go | 5 +
.../model/MonitoredSALShortFormBasicMode.go | 7 +-
.../model/NetworkProtocolControlInformation.go | 9 +-
.../protocols/cbus/readwrite/model/NetworkRoute.go | 5 +
.../protocols/cbus/readwrite/model/PanicStatus.go | 5 +
plc4go/protocols/cbus/readwrite/model/Parameter.go | 9 +-
.../cbus/readwrite/model/ParameterChange.go | 5 +
.../cbus/readwrite/model/ParameterChangeReply.go | 5 +
.../cbus/readwrite/model/ParameterType.go | 9 +-
.../cbus/readwrite/model/ParameterValue.go | 5 +
.../model/ParameterValueApplicationAddress1.go | 5 +
.../model/ParameterValueApplicationAddress2.go | 5 +
.../model/ParameterValueBaudRateSelector.go | 5 +
.../model/ParameterValueCustomManufacturer.go | 5 +
.../readwrite/model/ParameterValueCustomTypes.go | 5 +
.../model/ParameterValueInterfaceOptions1.go | 5 +
...rameterValueInterfaceOptions1PowerUpSettings.go | 5 +
.../model/ParameterValueInterfaceOptions2.go | 5 +
.../model/ParameterValueInterfaceOptions3.go | 5 +
.../cbus/readwrite/model/ParameterValueRaw.go | 5 +
.../readwrite/model/ParameterValueSerialNumber.go | 5 +
plc4go/protocols/cbus/readwrite/model/PowerUp.go | 5 +
.../protocols/cbus/readwrite/model/PowerUpReply.go | 5 +
.../cbus/readwrite/model/PriorityClass.go | 9 +-
.../cbus/readwrite/model/ProtectionLevel.go | 9 +-
plc4go/protocols/cbus/readwrite/model/Reply.go | 5 +
.../cbus/readwrite/model/ReplyEncodedReply.go | 5 +
.../protocols/cbus/readwrite/model/ReplyNetwork.go | 5 +
.../cbus/readwrite/model/ReplyOrConfirmation.go | 5 +
.../model/ReplyOrConfirmationConfirmation.go | 7 +-
.../readwrite/model/ReplyOrConfirmationReply.go | 5 +
plc4go/protocols/cbus/readwrite/model/Request.go | 5 +
.../cbus/readwrite/model/RequestCommand.go | 7 +-
.../cbus/readwrite/model/RequestContext.go | 5 +
.../readwrite/model/RequestDirectCommandAccess.go | 7 +-
.../protocols/cbus/readwrite/model/RequestEmpty.go | 5 +
.../protocols/cbus/readwrite/model/RequestNull.go | 5 +
.../cbus/readwrite/model/RequestObsolete.go | 7 +-
.../protocols/cbus/readwrite/model/RequestReset.go | 5 +
.../readwrite/model/RequestSmartConnectShortcut.go | 5 +
.../cbus/readwrite/model/RequestTermination.go | 5 +
.../protocols/cbus/readwrite/model/RequestType.go | 9 +-
.../cbus/readwrite/model/ResponseTermination.go | 5 +
plc4go/protocols/cbus/readwrite/model/SALData.go | 7 +-
.../cbus/readwrite/model/SALDataAccessControl.go | 5 +
.../cbus/readwrite/model/SALDataAirConditioning.go | 5 +
.../cbus/readwrite/model/SALDataAudioAndVideo.go | 5 +
.../readwrite/model/SALDataClockAndTimekeeping.go | 5 +
.../cbus/readwrite/model/SALDataEnableControl.go | 5 +
.../cbus/readwrite/model/SALDataErrorReporting.go | 5 +
.../cbus/readwrite/model/SALDataFreeUsage.go | 5 +
.../cbus/readwrite/model/SALDataHeating.go | 5 +
.../cbus/readwrite/model/SALDataHvacActuator.go | 5 +
.../readwrite/model/SALDataIrrigationControl.go | 5 +
.../cbus/readwrite/model/SALDataLighting.go | 5 +
.../cbus/readwrite/model/SALDataMeasurement.go | 5 +
.../cbus/readwrite/model/SALDataMediaTransport.go | 5 +
.../cbus/readwrite/model/SALDataMetering.go | 5 +
.../model/SALDataPoolsSpasPondsFountainsControl.go | 5 +
.../cbus/readwrite/model/SALDataReserved.go | 5 +
.../readwrite/model/SALDataRoomControlSystem.go | 5 +
.../cbus/readwrite/model/SALDataSecurity.go | 5 +
.../model/SALDataTelephonyStatusAndControl.go | 5 +
.../readwrite/model/SALDataTemperatureBroadcast.go | 5 +
.../cbus/readwrite/model/SALDataTesting.go | 5 +
.../cbus/readwrite/model/SALDataTriggerControl.go | 5 +
.../cbus/readwrite/model/SALDataVentilation.go | 5 +
.../cbus/readwrite/model/SecurityArmCode.go | 5 +
.../cbus/readwrite/model/SecurityCommandType.go | 9 +-
.../model/SecurityCommandTypeContainer.go | 9 +-
.../protocols/cbus/readwrite/model/SecurityData.go | 5 +
.../cbus/readwrite/model/SecurityDataAlarmOff.go | 5 +
.../cbus/readwrite/model/SecurityDataAlarmOn.go | 5 +
.../model/SecurityDataArmFailedCleared.go | 5 +
.../readwrite/model/SecurityDataArmFailedRaised.go | 5 +
.../model/SecurityDataArmReadyNotReady.go | 5 +
.../cbus/readwrite/model/SecurityDataArmSystem.go | 5 +
.../model/SecurityDataCurrentAlarmType.go | 5 +
.../readwrite/model/SecurityDataDisplayMessage.go | 5 +
.../cbus/readwrite/model/SecurityDataDropTamper.go | 5 +
.../readwrite/model/SecurityDataEmulatedKeypad.go | 5 +
.../model/SecurityDataEntryDelayStarted.go | 5 +
.../cbus/readwrite/model/SecurityDataEvent.go | 5 +
.../model/SecurityDataExitDelayStarted.go | 5 +
.../model/SecurityDataFireAlarmCleared.go | 5 +
.../readwrite/model/SecurityDataFireAlarmRaised.go | 5 +
.../readwrite/model/SecurityDataGasAlarmCleared.go | 5 +
.../readwrite/model/SecurityDataGasAlarmRaised.go | 5 +
.../model/SecurityDataLineCutAlarmCleared.go | 5 +
.../model/SecurityDataLineCutAlarmRaised.go | 5 +
.../model/SecurityDataLowBatteryCharging.go | 5 +
.../model/SecurityDataLowBatteryCorrected.go | 5 +
.../model/SecurityDataLowBatteryDetected.go | 5 +
.../readwrite/model/SecurityDataMainsFailure.go | 5 +
.../model/SecurityDataMainsRestoredOrApplied.go | 5 +
.../cbus/readwrite/model/SecurityDataOff.go | 5 +
.../cbus/readwrite/model/SecurityDataOn.go | 5 +
.../model/SecurityDataOtherAlarmCleared.go | 5 +
.../model/SecurityDataOtherAlarmRaised.go | 5 +
.../readwrite/model/SecurityDataPanicActivated.go | 5 +
.../readwrite/model/SecurityDataPanicCleared.go | 5 +
.../model/SecurityDataPasswordEntryStatus.go | 5 +
.../cbus/readwrite/model/SecurityDataRaiseAlarm.go | 5 +
.../readwrite/model/SecurityDataRaiseTamper.go | 5 +
.../readwrite/model/SecurityDataRequestZoneName.go | 5 +
.../readwrite/model/SecurityDataStatus1Request.go | 5 +
.../readwrite/model/SecurityDataStatus2Request.go | 5 +
.../readwrite/model/SecurityDataStatusReport1.go | 5 +
.../readwrite/model/SecurityDataStatusReport2.go | 5 +
.../model/SecurityDataSystemArmedDisarmed.go | 5 +
.../readwrite/model/SecurityDataSystemDisarmed.go | 5 +
.../cbus/readwrite/model/SecurityDataTamperOff.go | 5 +
.../cbus/readwrite/model/SecurityDataTamperOn.go | 5 +
.../readwrite/model/SecurityDataZoneIsolated.go | 5 +
.../cbus/readwrite/model/SecurityDataZoneName.go | 5 +
.../cbus/readwrite/model/SecurityDataZoneOpen.go | 5 +
.../cbus/readwrite/model/SecurityDataZoneSealed.go | 5 +
.../cbus/readwrite/model/SecurityDataZoneShort.go | 5 +
.../readwrite/model/SecurityDataZoneUnsealed.go | 5 +
.../cbus/readwrite/model/SerialInterfaceAddress.go | 5 +
.../protocols/cbus/readwrite/model/SerialNumber.go | 5 +
.../cbus/readwrite/model/ServerErrorReply.go | 5 +
.../protocols/cbus/readwrite/model/StaticHelper.go | 7 +-
.../protocols/cbus/readwrite/model/StatusByte.go | 5 +
.../protocols/cbus/readwrite/model/StatusCoding.go | 9 +-
.../cbus/readwrite/model/StatusRequest.go | 5 +
.../readwrite/model/StatusRequestBinaryState.go | 13 +-
.../model/StatusRequestBinaryStateDeprecated.go | 13 +-
.../cbus/readwrite/model/StatusRequestLevel.go | 13 +-
.../protocols/cbus/readwrite/model/TamperStatus.go | 5 +
.../cbus/readwrite/model/TelephonyCommandType.go | 9 +-
.../model/TelephonyCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/TelephonyData.go | 5 +
.../readwrite/model/TelephonyDataClearDiversion.go | 5 +
.../readwrite/model/TelephonyDataDialInFailure.go | 5 +
.../readwrite/model/TelephonyDataDialOutFailure.go | 5 +
.../cbus/readwrite/model/TelephonyDataDivert.go | 5 +
.../TelephonyDataInternetConnectionRequestMade.go | 5 +
.../model/TelephonyDataIsolateSecondaryOutlet.go | 5 +
.../readwrite/model/TelephonyDataLineOffHook.go | 5 +
.../readwrite/model/TelephonyDataLineOnHook.go | 5 +
.../model/TelephonyDataRecallLastNumber.go | 5 +
.../model/TelephonyDataRecallLastNumberRequest.go | 5 +
.../model/TelephonyDataRejectIncomingCall.go | 5 +
.../cbus/readwrite/model/TelephonyDataRinging.go | 9 +-
.../model/TemperatureBroadcastCommandType.go | 9 +-
.../TemperatureBroadcastCommandTypeContainer.go | 9 +-
.../readwrite/model/TemperatureBroadcastData.go | 5 +
.../readwrite/model/TriggerControlCommandType.go | 9 +-
.../model/TriggerControlCommandTypeContainer.go | 9 +-
.../cbus/readwrite/model/TriggerControlData.go | 5 +
.../model/TriggerControlDataIndicatorKill.go | 5 +
.../readwrite/model/TriggerControlDataLabel.go | 5 +
.../model/TriggerControlDataTriggerEvent.go | 5 +
.../model/TriggerControlDataTriggerMax.go | 5 +
.../model/TriggerControlDataTriggerMin.go | 5 +
.../readwrite/model/TriggerControlLabelFlavour.go | 9 +-
.../readwrite/model/TriggerControlLabelOptions.go | 21 +--
.../readwrite/model/TriggerControlLabelType.go | 9 +-
.../protocols/cbus/readwrite/model/UnitAddress.go | 5 +
.../protocols/cbus/readwrite/model/UnitStatus.go | 9 +-
.../protocols/cbus/readwrite/model/ZoneStatus.go | 5 +
.../cbus/readwrite/model/ZoneStatusTemp.go | 9 +-
.../protocols/cbus/readwrite/model/plc4x_common.go | 5 -
plc4go/protocols/df1/readwrite/model/DF1Command.go | 5 +
plc4go/protocols/df1/readwrite/model/DF1Symbol.go | 5 +
.../df1/readwrite/model/DF1SymbolMessageFrame.go | 5 +
.../readwrite/model/DF1SymbolMessageFrameACK.go | 5 +
.../readwrite/model/DF1SymbolMessageFrameNAK.go | 5 +
.../readwrite/model/DF1UnprotectedReadRequest.go | 5 +
.../readwrite/model/DF1UnprotectedReadResponse.go | 5 +
.../protocols/df1/readwrite/model/plc4x_common.go | 5 -
.../readwrite/model/AnsiExtendedSymbolSegment.go | 5 +
.../protocols/eip/readwrite/model/CIPAttributes.go | 5 +
plc4go/protocols/eip/readwrite/model/CIPClassID.go | 9 +-
plc4go/protocols/eip/readwrite/model/CIPData.go | 5 +
.../eip/readwrite/model/CIPDataConnected.go | 5 +
.../eip/readwrite/model/CIPDataTypeCode.go | 9 +-
plc4go/protocols/eip/readwrite/model/CIPStatus.go | 9 +-
.../eip/readwrite/model/CIPStructTypeCode.go | 9 +-
.../eip/readwrite/model/CipConnectedRequest.go | 13 +-
.../eip/readwrite/model/CipConnectedResponse.go | 11 +-
.../model/CipConnectionManagerCloseRequest.go | 9 +-
.../model/CipConnectionManagerCloseResponse.go | 13 +-
.../readwrite/model/CipConnectionManagerRequest.go | 9 +-
.../model/CipConnectionManagerResponse.go | 13 +-
.../protocols/eip/readwrite/model/CipIdentity.go | 5 +
plc4go/protocols/eip/readwrite/model/CipRRData.go | 5 +
.../eip/readwrite/model/CipReadRequest.go | 5 +
.../eip/readwrite/model/CipReadResponse.go | 11 +-
.../eip/readwrite/model/CipSecurityInformation.go | 5 +
plc4go/protocols/eip/readwrite/model/CipService.go | 5 +
.../eip/readwrite/model/CipUnconnectedRequest.go | 9 +-
.../eip/readwrite/model/CipWriteRequest.go | 5 +
.../eip/readwrite/model/CipWriteResponse.go | 9 +-
plc4go/protocols/eip/readwrite/model/ClassID.go | 5 +
.../protocols/eip/readwrite/model/ClassSegment.go | 5 +
.../eip/readwrite/model/CommandSpecificDataItem.go | 5 +
.../eip/readwrite/model/ConnectedAddressItem.go | 9 +-
.../eip/readwrite/model/ConnectedDataItem.go | 5 +
.../protocols/eip/readwrite/model/DataSegment.go | 5 +
.../eip/readwrite/model/DataSegmentType.go | 5 +
plc4go/protocols/eip/readwrite/model/EiPCommand.go | 9 +-
.../eip/readwrite/model/EipConnectionRequest.go | 5 +
.../eip/readwrite/model/EipConnectionResponse.go | 5 +
.../protocols/eip/readwrite/model/EipConstants.go | 5 +
.../eip/readwrite/model/EipDisconnectRequest.go | 5 +
.../eip/readwrite/model/EipListIdentityRequest.go | 5 +
.../eip/readwrite/model/EipListIdentityResponse.go | 5 +
plc4go/protocols/eip/readwrite/model/EipPacket.go | 5 +
.../eip/readwrite/model/GetAttributeAllRequest.go | 5 +
.../eip/readwrite/model/GetAttributeAllResponse.go | 11 +-
.../eip/readwrite/model/GetAttributeListRequest.go | 5 +
.../readwrite/model/GetAttributeListResponse.go | 5 +
.../readwrite/model/GetAttributeSingleRequest.go | 5 +
.../readwrite/model/GetAttributeSingleResponse.go | 5 +
plc4go/protocols/eip/readwrite/model/InstanceID.go | 5 +
.../eip/readwrite/model/InstanceSegment.go | 5 +
.../eip/readwrite/model/IntegerEncoding.go | 141 ---------------------
.../eip/readwrite/model/ListServicesRequest.go | 5 +
.../eip/readwrite/model/ListServicesResponse.go | 5 +
.../eip/readwrite/model/LogicalSegment.go | 5 +
.../eip/readwrite/model/LogicalSegmentType.go | 5 +
plc4go/protocols/eip/readwrite/model/MemberID.go | 5 +
.../eip/readwrite/model/MultipleServiceRequest.go | 5 +
.../eip/readwrite/model/MultipleServiceResponse.go | 9 +-
.../readwrite/model/NetworkConnectionParameters.go | 17 ++-
.../eip/readwrite/model/NullAddressItem.go | 9 +-
.../eip/readwrite/model/NullCommandRequest.go | 5 +
.../eip/readwrite/model/NullCommandResponse.go | 5 +
.../readwrite/model/NullEipConnectionResponse.go | 5 +
.../readwrite/model/NullListServicesResponse.go | 5 +
.../protocols/eip/readwrite/model/PathSegment.go | 5 +
.../protocols/eip/readwrite/model/PortSegment.go | 5 +
.../eip/readwrite/model/PortSegmentExtended.go | 5 +
.../eip/readwrite/model/PortSegmentNormal.go | 5 +
.../eip/readwrite/model/PortSegmentType.go | 5 +
.../protocols/eip/readwrite/model/SendUnitData.go | 5 +
plc4go/protocols/eip/readwrite/model/Services.go | 5 +
.../eip/readwrite/model/ServicesResponse.go | 13 +-
.../eip/readwrite/model/SetAttributeAllRequest.go | 5 +
.../eip/readwrite/model/SetAttributeAllResponse.go | 5 +
.../eip/readwrite/model/SetAttributeListRequest.go | 5 +
.../readwrite/model/SetAttributeListResponse.go | 5 +
.../readwrite/model/SetAttributeSingleRequest.go | 5 +
.../readwrite/model/SetAttributeSingleResponse.go | 5 +
.../protocols/eip/readwrite/model/TransportType.go | 5 +
plc4go/protocols/eip/readwrite/model/TypeId.go | 5 +
.../eip/readwrite/model/UnConnectedDataItem.go | 5 +
.../protocols/eip/readwrite/model/plc4x_common.go | 5 -
.../firmata/readwrite/model/FirmataCommand.go | 5 +
.../model/FirmataCommandProtocolVersion.go | 5 +
.../model/FirmataCommandSetDigitalPinValue.go | 9 +-
.../readwrite/model/FirmataCommandSetPinMode.go | 5 +
.../firmata/readwrite/model/FirmataCommandSysex.go | 9 +-
.../readwrite/model/FirmataCommandSystemReset.go | 5 +
.../firmata/readwrite/model/FirmataMessage.go | 5 +
.../readwrite/model/FirmataMessageAnalogIO.go | 5 +
.../readwrite/model/FirmataMessageCommand.go | 5 +
.../readwrite/model/FirmataMessageDigitalIO.go | 5 +
.../model/FirmataMessageSubscribeAnalogPinValue.go | 9 +-
.../FirmataMessageSubscribeDigitalPinValue.go | 9 +-
.../protocols/firmata/readwrite/model/PinMode.go | 9 +-
.../firmata/readwrite/model/SysexCommand.go | 5 +
.../model/SysexCommandAnalogMappingQueryRequest.go | 5 +
.../SysexCommandAnalogMappingQueryResponse.go | 5 +
.../model/SysexCommandAnalogMappingResponse.go | 5 +
.../readwrite/model/SysexCommandCapabilityQuery.go | 5 +
.../model/SysexCommandCapabilityResponse.go | 5 +
.../readwrite/model/SysexCommandExtendedAnalog.go | 5 +
.../readwrite/model/SysexCommandExtendedId.go | 5 +
.../readwrite/model/SysexCommandPinStateQuery.go | 5 +
.../model/SysexCommandPinStateResponse.go | 5 +
.../model/SysexCommandReportFirmwareRequest.go | 5 +
.../model/SysexCommandReportFirmwareResponse.go | 5 +
.../model/SysexCommandSamplingInterval.go | 5 +
.../readwrite/model/SysexCommandStringData.go | 5 +
.../model/SysexCommandSysexNonRealtime.go | 5 +
.../readwrite/model/SysexCommandSysexRealtime.go | 5 +
.../firmata/readwrite/model/plc4x_common.go | 5 -
.../knxnetip/readwrite/model/AccessLevel.go | 9 +-
plc4go/protocols/knxnetip/readwrite/model/Apdu.go | 5 +
.../knxnetip/readwrite/model/ApduControl.go | 5 +
.../knxnetip/readwrite/model/ApduControlAck.go | 5 +
.../knxnetip/readwrite/model/ApduControlConnect.go | 5 +
.../readwrite/model/ApduControlContainer.go | 5 +
.../readwrite/model/ApduControlDisconnect.go | 5 +
.../knxnetip/readwrite/model/ApduControlNack.go | 5 +
.../protocols/knxnetip/readwrite/model/ApduData.go | 5 +
.../knxnetip/readwrite/model/ApduDataAdcRead.go | 5 +
.../readwrite/model/ApduDataAdcResponse.go | 5 +
.../knxnetip/readwrite/model/ApduDataContainer.go | 5 +
.../model/ApduDataDeviceDescriptorRead.go | 5 +
.../model/ApduDataDeviceDescriptorResponse.go | 5 +
.../knxnetip/readwrite/model/ApduDataExt.go | 5 +
.../readwrite/model/ApduDataExtAuthorizeRequest.go | 5 +
.../model/ApduDataExtAuthorizeResponse.go | 5 +
.../model/ApduDataExtDomainAddressRead.go | 5 +
.../model/ApduDataExtDomainAddressResponse.go | 5 +
.../model/ApduDataExtDomainAddressSelectiveRead.go | 5 +
.../ApduDataExtDomainAddressSerialNumberRead.go | 5 +
...ApduDataExtDomainAddressSerialNumberResponse.go | 5 +
.../ApduDataExtDomainAddressSerialNumberWrite.go | 5 +
.../model/ApduDataExtDomainAddressWrite.go | 5 +
.../model/ApduDataExtFileStreamInfoReport.go | 5 +
.../ApduDataExtGroupPropertyValueInfoReport.go | 5 +
.../model/ApduDataExtGroupPropertyValueRead.go | 5 +
.../model/ApduDataExtGroupPropertyValueResponse.go | 5 +
.../model/ApduDataExtGroupPropertyValueWrite.go | 5 +
...ApduDataExtIndividualAddressSerialNumberRead.go | 5 +
...DataExtIndividualAddressSerialNumberResponse.go | 5 +
...pduDataExtIndividualAddressSerialNumberWrite.go | 5 +
.../readwrite/model/ApduDataExtKeyResponse.go | 5 +
.../readwrite/model/ApduDataExtKeyWrite.go | 5 +
.../readwrite/model/ApduDataExtLinkRead.go | 5 +
.../readwrite/model/ApduDataExtLinkResponse.go | 5 +
.../readwrite/model/ApduDataExtLinkWrite.go | 5 +
.../readwrite/model/ApduDataExtMemoryBitWrite.go | 5 +
.../model/ApduDataExtNetworkParameterRead.go | 5 +
.../model/ApduDataExtNetworkParameterResponse.go | 5 +
.../model/ApduDataExtNetworkParameterWrite.go | 5 +
.../model/ApduDataExtOpenRoutingTableRequest.go | 5 +
.../model/ApduDataExtPropertyDescriptionRead.go | 5 +
.../ApduDataExtPropertyDescriptionResponse.go | 13 +-
.../model/ApduDataExtPropertyValueRead.go | 5 +
.../model/ApduDataExtPropertyValueResponse.go | 5 +
.../model/ApduDataExtPropertyValueWrite.go | 5 +
.../model/ApduDataExtReadRouterMemoryRequest.go | 5 +
.../model/ApduDataExtReadRouterMemoryResponse.go | 5 +
.../model/ApduDataExtReadRouterStatusRequest.go | 5 +
.../model/ApduDataExtReadRouterStatusResponse.go | 5 +
.../model/ApduDataExtReadRoutingTableRequest.go | 5 +
.../model/ApduDataExtReadRoutingTableResponse.go | 5 +
.../model/ApduDataExtWriteRouterMemoryRequest.go | 5 +
.../model/ApduDataExtWriteRouterStatusRequest.go | 5 +
.../model/ApduDataExtWriteRoutingTableRequest.go | 5 +
.../readwrite/model/ApduDataGroupValueRead.go | 9 +-
.../readwrite/model/ApduDataGroupValueResponse.go | 5 +
.../readwrite/model/ApduDataGroupValueWrite.go | 5 +
.../model/ApduDataIndividualAddressRead.go | 5 +
.../model/ApduDataIndividualAddressResponse.go | 5 +
.../model/ApduDataIndividualAddressWrite.go | 5 +
.../knxnetip/readwrite/model/ApduDataMemoryRead.go | 5 +
.../readwrite/model/ApduDataMemoryResponse.go | 5 +
.../readwrite/model/ApduDataMemoryWrite.go | 5 +
.../knxnetip/readwrite/model/ApduDataOther.go | 5 +
.../knxnetip/readwrite/model/ApduDataRestart.go | 5 +
.../readwrite/model/ApduDataUserMessage.go | 5 +
plc4go/protocols/knxnetip/readwrite/model/CEMI.go | 5 +
.../readwrite/model/CEMIAdditionalInformation.go | 5 +
.../CEMIAdditionalInformationBusmonitorInfo.go | 5 +
.../CEMIAdditionalInformationRelativeTimestamp.go | 5 +
.../knxnetip/readwrite/model/CEMIPriority.go | 9 +-
.../knxnetip/readwrite/model/ChannelInformation.go | 5 +
.../knxnetip/readwrite/model/ComObjectTable.go | 5 +
.../readwrite/model/ComObjectTableAddresses.go | 9 +-
.../model/ComObjectTableRealisationType1.go | 5 +
.../model/ComObjectTableRealisationType2.go | 5 +
.../model/ComObjectTableRealisationType6.go | 5 +
.../knxnetip/readwrite/model/ComObjectValueType.go | 9 +-
.../knxnetip/readwrite/model/ConnectionRequest.go | 5 +
.../model/ConnectionRequestInformation.go | 5 +
...ConnectionRequestInformationDeviceManagement.go | 5 +
...ConnectionRequestInformationTunnelConnection.go | 9 +-
.../knxnetip/readwrite/model/ConnectionResponse.go | 9 +-
.../readwrite/model/ConnectionResponseDataBlock.go | 5 +
.../ConnectionResponseDataBlockDeviceManagement.go | 5 +
.../ConnectionResponseDataBlockTunnelConnection.go | 5 +
.../readwrite/model/ConnectionStateRequest.go | 9 +-
.../readwrite/model/ConnectionStateResponse.go | 5 +
.../knxnetip/readwrite/model/DIBDeviceInfo.go | 5 +
.../knxnetip/readwrite/model/DIBSuppSvcFamilies.go | 5 +
.../knxnetip/readwrite/model/DescriptionRequest.go | 5 +
.../readwrite/model/DescriptionResponse.go | 5 +
.../readwrite/model/DeviceConfigurationAck.go | 5 +
.../model/DeviceConfigurationAckDataBlock.go | 5 +
.../readwrite/model/DeviceConfigurationRequest.go | 5 +
.../model/DeviceConfigurationRequestDataBlock.go | 9 +-
.../knxnetip/readwrite/model/DeviceDescriptor.go | 9 +-
.../readwrite/model/DeviceDescriptorMediumType.go | 9 +-
.../readwrite/model/DeviceDescriptorType2.go | 5 +
.../knxnetip/readwrite/model/DeviceStatus.go | 9 +-
.../knxnetip/readwrite/model/DisconnectRequest.go | 9 +-
.../knxnetip/readwrite/model/DisconnectResponse.go | 5 +
.../knxnetip/readwrite/model/FirmwareType.go | 9 +-
.../model/GroupObjectDescriptorRealisationType1.go | 9 +-
.../model/GroupObjectDescriptorRealisationType2.go | 5 +
.../model/GroupObjectDescriptorRealisationType6.go | 5 +
.../model/GroupObjectDescriptorRealisationType7.go | 5 +
.../model/GroupObjectDescriptorRealisationTypeB.go | 5 +
.../readwrite/model/HPAIControlEndpoint.go | 5 +
.../knxnetip/readwrite/model/HPAIDataEndpoint.go | 5 +
.../readwrite/model/HPAIDiscoveryEndpoint.go | 5 +
.../knxnetip/readwrite/model/HostProtocolCode.go | 9 +-
.../knxnetip/readwrite/model/IPAddress.go | 5 +
.../knxnetip/readwrite/model/KnxAddress.go | 5 +
.../knxnetip/readwrite/model/KnxDatapoint.go | 5 +
.../readwrite/model/KnxDatapointMainType.go | 9 +-
.../knxnetip/readwrite/model/KnxDatapointType.go | 9 +-
.../knxnetip/readwrite/model/KnxGroupAddress.go | 5 +
.../readwrite/model/KnxGroupAddress2Level.go | 5 +
.../readwrite/model/KnxGroupAddress3Level.go | 5 +
.../readwrite/model/KnxGroupAddressFreeLevel.go | 5 +
.../readwrite/model/KnxInterfaceObjectProperty.go | 9 +-
.../readwrite/model/KnxInterfaceObjectType.go | 9 +-
.../protocols/knxnetip/readwrite/model/KnxLayer.go | 9 +-
.../knxnetip/readwrite/model/KnxManufacturer.go | 9 +-
.../knxnetip/readwrite/model/KnxMedium.go | 9 +-
.../knxnetip/readwrite/model/KnxNetIpCore.go | 5 +
.../readwrite/model/KnxNetIpDeviceManagement.go | 5 +
.../knxnetip/readwrite/model/KnxNetIpMessage.go | 5 +
.../knxnetip/readwrite/model/KnxNetIpRouting.go | 5 +
.../knxnetip/readwrite/model/KnxNetIpTunneling.go | 5 +
.../knxnetip/readwrite/model/KnxNetObjectServer.go | 5 +
.../model/KnxNetRemoteConfigurationAndDiagnosis.go | 5 +
.../readwrite/model/KnxNetRemoteLogging.go | 5 +
.../knxnetip/readwrite/model/KnxProperty.go | 5 +
.../readwrite/model/KnxPropertyDataType.go | 9 +-
.../knxnetip/readwrite/model/LBusmonInd.go | 5 +
.../protocols/knxnetip/readwrite/model/LDataCon.go | 5 +
.../knxnetip/readwrite/model/LDataExtended.go | 5 +
.../knxnetip/readwrite/model/LDataFrame.go | 5 +
.../knxnetip/readwrite/model/LDataFrameACK.go | 5 +
.../protocols/knxnetip/readwrite/model/LDataInd.go | 5 +
.../protocols/knxnetip/readwrite/model/LDataReq.go | 5 +
.../knxnetip/readwrite/model/LPollData.go | 9 +-
.../knxnetip/readwrite/model/LPollDataCon.go | 5 +
.../knxnetip/readwrite/model/LPollDataReq.go | 5 +
.../protocols/knxnetip/readwrite/model/LRawCon.go | 5 +
.../protocols/knxnetip/readwrite/model/LRawInd.go | 5 +
.../protocols/knxnetip/readwrite/model/LRawReq.go | 5 +
.../knxnetip/readwrite/model/MACAddress.go | 5 +
.../readwrite/model/MFuncPropCommandReq.go | 5 +
.../knxnetip/readwrite/model/MFuncPropCon.go | 5 +
.../readwrite/model/MFuncPropStateReadReq.go | 5 +
.../knxnetip/readwrite/model/MPropInfoInd.go | 5 +
.../knxnetip/readwrite/model/MPropReadCon.go | 5 +
.../knxnetip/readwrite/model/MPropReadReq.go | 5 +
.../knxnetip/readwrite/model/MPropWriteCon.go | 5 +
.../knxnetip/readwrite/model/MPropWriteReq.go | 5 +
.../knxnetip/readwrite/model/MResetInd.go | 5 +
.../knxnetip/readwrite/model/MResetReq.go | 5 +
.../model/ProjectInstallationIdentifier.go | 5 +
.../knxnetip/readwrite/model/RelativeTimestamp.go | 5 +
.../knxnetip/readwrite/model/RoutingIndication.go | 5 +
.../knxnetip/readwrite/model/SearchRequest.go | 5 +
.../knxnetip/readwrite/model/SearchResponse.go | 5 +
.../knxnetip/readwrite/model/ServiceId.go | 5 +
.../protocols/knxnetip/readwrite/model/Status.go | 9 +-
.../readwrite/model/SupportedPhysicalMedia.go | 9 +-
.../knxnetip/readwrite/model/TDataConnectedInd.go | 5 +
.../knxnetip/readwrite/model/TDataConnectedReq.go | 5 +
.../knxnetip/readwrite/model/TDataIndividualInd.go | 5 +
.../knxnetip/readwrite/model/TDataIndividualReq.go | 5 +
.../knxnetip/readwrite/model/TunnelingRequest.go | 5 +
.../readwrite/model/TunnelingRequestDataBlock.go | 9 +-
.../knxnetip/readwrite/model/TunnelingResponse.go | 5 +
.../readwrite/model/TunnelingResponseDataBlock.go | 5 +
.../knxnetip/readwrite/model/UnknownMessage.go | 5 +
.../knxnetip/readwrite/model/plc4x_common.go | 5 -
.../protocols/modbus/readwrite/model/DataItem.go | 5 +
.../protocols/modbus/readwrite/model/DriverType.go | 9 +-
.../protocols/modbus/readwrite/model/ModbusADU.go | 5 +
.../modbus/readwrite/model/ModbusAsciiADU.go | 5 +
.../modbus/readwrite/model/ModbusConstants.go | 5 +
.../modbus/readwrite/model/ModbusDataType.go | 9 +-
.../ModbusDeviceInformationConformityLevel.go | 9 +-
.../model/ModbusDeviceInformationLevel.go | 9 +-
.../model/ModbusDeviceInformationMoreFollows.go | 9 +-
.../model/ModbusDeviceInformationObject.go | 5 +
.../modbus/readwrite/model/ModbusErrorCode.go | 9 +-
.../protocols/modbus/readwrite/model/ModbusPDU.go | 5 +
.../readwrite/model/ModbusPDUDiagnosticRequest.go | 5 +
.../readwrite/model/ModbusPDUDiagnosticResponse.go | 5 +
.../modbus/readwrite/model/ModbusPDUError.go | 5 +
.../model/ModbusPDUGetComEventCounterRequest.go | 5 +
.../model/ModbusPDUGetComEventCounterResponse.go | 5 +
.../model/ModbusPDUGetComEventLogRequest.go | 5 +
.../model/ModbusPDUGetComEventLogResponse.go | 5 +
.../ModbusPDUMaskWriteHoldingRegisterRequest.go | 5 +
.../ModbusPDUMaskWriteHoldingRegisterResponse.go | 5 +
.../readwrite/model/ModbusPDUReadCoilsRequest.go | 5 +
.../readwrite/model/ModbusPDUReadCoilsResponse.go | 5 +
.../ModbusPDUReadDeviceIdentificationRequest.go | 5 +
.../ModbusPDUReadDeviceIdentificationResponse.go | 5 +
.../model/ModbusPDUReadDiscreteInputsRequest.go | 5 +
.../model/ModbusPDUReadDiscreteInputsResponse.go | 5 +
.../model/ModbusPDUReadExceptionStatusRequest.go | 5 +
.../model/ModbusPDUReadExceptionStatusResponse.go | 5 +
.../model/ModbusPDUReadFifoQueueRequest.go | 5 +
.../model/ModbusPDUReadFifoQueueResponse.go | 5 +
.../model/ModbusPDUReadFileRecordRequest.go | 5 +
.../model/ModbusPDUReadFileRecordRequestItem.go | 5 +
.../model/ModbusPDUReadFileRecordResponse.go | 5 +
.../model/ModbusPDUReadFileRecordResponseItem.go | 5 +
.../model/ModbusPDUReadHoldingRegistersRequest.go | 5 +
.../model/ModbusPDUReadHoldingRegistersResponse.go | 5 +
.../model/ModbusPDUReadInputRegistersRequest.go | 5 +
.../model/ModbusPDUReadInputRegistersResponse.go | 5 +
...sPDUReadWriteMultipleHoldingRegistersRequest.go | 5 +
...PDUReadWriteMultipleHoldingRegistersResponse.go | 5 +
.../model/ModbusPDUReportServerIdRequest.go | 5 +
.../model/ModbusPDUReportServerIdResponse.go | 5 +
.../model/ModbusPDUWriteFileRecordRequest.go | 5 +
.../model/ModbusPDUWriteFileRecordRequestItem.go | 5 +
.../model/ModbusPDUWriteFileRecordResponse.go | 5 +
.../model/ModbusPDUWriteFileRecordResponseItem.go | 5 +
.../model/ModbusPDUWriteMultipleCoilsRequest.go | 5 +
.../model/ModbusPDUWriteMultipleCoilsResponse.go | 5 +
...odbusPDUWriteMultipleHoldingRegistersRequest.go | 5 +
...dbusPDUWriteMultipleHoldingRegistersResponse.go | 5 +
.../model/ModbusPDUWriteSingleCoilRequest.go | 5 +
.../model/ModbusPDUWriteSingleCoilResponse.go | 5 +
.../model/ModbusPDUWriteSingleRegisterRequest.go | 5 +
.../model/ModbusPDUWriteSingleRegisterResponse.go | 5 +
.../modbus/readwrite/model/ModbusRtuADU.go | 5 +
.../modbus/readwrite/model/ModbusTcpADU.go | 5 +
.../modbus/readwrite/model/plc4x_common.go | 5 -
.../s7/readwrite/model/Alarm8MessageQueryType.go | 5 +
.../model/AlarmMessageAckObjectPushType.go | 5 +
.../s7/readwrite/model/AlarmMessageAckPushType.go | 5 +
.../readwrite/model/AlarmMessageAckResponseType.go | 5 +
.../s7/readwrite/model/AlarmMessageAckType.go | 5 +
.../readwrite/model/AlarmMessageObjectAckType.go | 5 +
.../readwrite/model/AlarmMessageObjectPushType.go | 5 +
.../readwrite/model/AlarmMessageObjectQueryType.go | 9 +-
.../s7/readwrite/model/AlarmMessagePushType.go | 5 +
.../s7/readwrite/model/AlarmMessageQueryType.go | 5 +
.../protocols/s7/readwrite/model/AlarmStateType.go | 9 +-
plc4go/protocols/s7/readwrite/model/AlarmType.go | 9 +-
.../s7/readwrite/model/AssociatedQueryValueType.go | 5 +
.../s7/readwrite/model/AssociatedValueType.go | 5 +
plc4go/protocols/s7/readwrite/model/COTPPacket.go | 7 +-
.../readwrite/model/COTPPacketConnectionRequest.go | 5 +
.../model/COTPPacketConnectionResponse.go | 5 +
.../protocols/s7/readwrite/model/COTPPacketData.go | 5 +
.../readwrite/model/COTPPacketDisconnectRequest.go | 5 +
.../model/COTPPacketDisconnectResponse.go | 5 +
.../s7/readwrite/model/COTPPacketTpduError.go | 5 +
.../protocols/s7/readwrite/model/COTPParameter.go | 5 +
.../s7/readwrite/model/COTPParameterCalledTsap.go | 5 +
.../s7/readwrite/model/COTPParameterCallingTsap.go | 5 +
.../s7/readwrite/model/COTPParameterChecksum.go | 5 +
...COTPParameterDisconnectAdditionalInformation.go | 5 +
.../s7/readwrite/model/COTPParameterTpduSize.go | 5 +
.../s7/readwrite/model/COTPProtocolClass.go | 9 +-
.../protocols/s7/readwrite/model/COTPTpduSize.go | 9 +-
.../s7/readwrite/model/CpuSubscribeEvents.go | 9 +-
.../s7/readwrite/model/CycServiceItemAnyType.go | 5 +
.../s7/readwrite/model/CycServiceItemDbReadType.go | 5 +
.../s7/readwrite/model/CycServiceItemType.go | 5 +
plc4go/protocols/s7/readwrite/model/DataItem.go | 5 +
.../s7/readwrite/model/DataTransportErrorCode.go | 9 +-
.../s7/readwrite/model/DataTransportSize.go | 9 +-
plc4go/protocols/s7/readwrite/model/DateAndTime.go | 5 +
plc4go/protocols/s7/readwrite/model/DeviceGroup.go | 9 +-
plc4go/protocols/s7/readwrite/model/EventType.go | 9 +-
plc4go/protocols/s7/readwrite/model/MemoryArea.go | 9 +-
.../s7/readwrite/model/ModeTransitionType.go | 9 +-
plc4go/protocols/s7/readwrite/model/QueryType.go | 9 +-
plc4go/protocols/s7/readwrite/model/S7Address.go | 5 +
.../protocols/s7/readwrite/model/S7AddressAny.go | 9 +-
.../s7/readwrite/model/S7DataAlarmMessage.go | 5 +
plc4go/protocols/s7/readwrite/model/S7Message.go | 13 +-
.../s7/readwrite/model/S7MessageObjectRequest.go | 13 +-
.../s7/readwrite/model/S7MessageObjectResponse.go | 9 +-
.../s7/readwrite/model/S7MessageRequest.go | 5 +
.../s7/readwrite/model/S7MessageResponse.go | 5 +
.../s7/readwrite/model/S7MessageResponseData.go | 5 +
.../s7/readwrite/model/S7MessageUserData.go | 5 +
plc4go/protocols/s7/readwrite/model/S7Parameter.go | 5 +
.../readwrite/model/S7ParameterModeTransition.go | 9 +-
.../readwrite/model/S7ParameterReadVarRequest.go | 5 +
.../readwrite/model/S7ParameterReadVarResponse.go | 5 +
.../model/S7ParameterSetupCommunication.go | 9 +-
.../s7/readwrite/model/S7ParameterUserData.go | 5 +
.../s7/readwrite/model/S7ParameterUserDataItem.go | 5 +
.../model/S7ParameterUserDataItemCPUFunctions.go | 5 +
.../readwrite/model/S7ParameterWriteVarRequest.go | 5 +
.../readwrite/model/S7ParameterWriteVarResponse.go | 5 +
plc4go/protocols/s7/readwrite/model/S7Payload.go | 5 +
.../s7/readwrite/model/S7PayloadAlarm8.go | 5 +
.../s7/readwrite/model/S7PayloadAlarmAckInd.go | 5 +
.../s7/readwrite/model/S7PayloadAlarmS.go | 5 +
.../s7/readwrite/model/S7PayloadAlarmSC.go | 5 +
.../s7/readwrite/model/S7PayloadAlarmSQ.go | 5 +
.../readwrite/model/S7PayloadDiagnosticMessage.go | 5 +
.../s7/readwrite/model/S7PayloadNotify.go | 5 +
.../s7/readwrite/model/S7PayloadNotify8.go | 5 +
.../s7/readwrite/model/S7PayloadReadVarResponse.go | 5 +
.../s7/readwrite/model/S7PayloadUserData.go | 5 +
.../s7/readwrite/model/S7PayloadUserDataItem.go | 5 +
...UserDataItemCpuFunctionAlarmAckErrorResponse.go | 5 +
...ayloadUserDataItemCpuFunctionAlarmAckRequest.go | 5 +
...yloadUserDataItemCpuFunctionAlarmAckResponse.go | 5 +
...loadUserDataItemCpuFunctionAlarmQueryRequest.go | 13 +-
...oadUserDataItemCpuFunctionAlarmQueryResponse.go | 5 +
...aItemCpuFunctionMsgSubscriptionAlarmResponse.go | 5 +
...serDataItemCpuFunctionMsgSubscriptionRequest.go | 9 +-
...erDataItemCpuFunctionMsgSubscriptionResponse.go | 5 +
...ataItemCpuFunctionMsgSubscriptionSysResponse.go | 5 +
...dUserDataItemCpuFunctionReadSzlNoDataRequest.go | 5 +
...PayloadUserDataItemCpuFunctionReadSzlRequest.go | 5 +
...ayloadUserDataItemCpuFunctionReadSzlResponse.go | 5 +
...adUserDataItemCyclicServicesChangeDrivenPush.go | 5 +
...mCyclicServicesChangeDrivenSubscribeResponse.go | 5 +
...yloadUserDataItemCyclicServicesErrorResponse.go | 5 +
.../S7PayloadUserDataItemCyclicServicesPush.go | 5 +
...adUserDataItemCyclicServicesSubscribeRequest.go | 5 +
...dUserDataItemCyclicServicesSubscribeResponse.go | 5 +
...UserDataItemCyclicServicesUnsubscribeRequest.go | 5 +
...serDataItemCyclicServicesUnsubscribeResponse.go | 5 +
.../s7/readwrite/model/S7PayloadWriteVarRequest.go | 5 +
.../readwrite/model/S7PayloadWriteVarResponse.go | 5 +
.../s7/readwrite/model/S7VarPayloadDataItem.go | 5 +
.../s7/readwrite/model/S7VarPayloadStatusItem.go | 5 +
.../readwrite/model/S7VarRequestParameterItem.go | 5 +
.../model/S7VarRequestParameterItemAddress.go | 5 +
plc4go/protocols/s7/readwrite/model/State.go | 5 +
plc4go/protocols/s7/readwrite/model/SubItem.go | 5 +
.../protocols/s7/readwrite/model/SyntaxIdType.go | 9 +-
.../s7/readwrite/model/SzlDataTreeItem.go | 5 +
plc4go/protocols/s7/readwrite/model/SzlId.go | 5 +
.../s7/readwrite/model/SzlModuleTypeClass.go | 9 +-
plc4go/protocols/s7/readwrite/model/SzlSublist.go | 9 +-
plc4go/protocols/s7/readwrite/model/TPKTPacket.go | 9 +-
plc4go/protocols/s7/readwrite/model/TimeBase.go | 9 +-
.../protocols/s7/readwrite/model/TransportSize.go | 9 +-
.../protocols/s7/readwrite/model/plc4x_common.go | 5 -
.../simulated/readwrite/model/DataItem.go | 5 +
.../protocols/simulated/readwrite/model/Dummy.go | 5 +
.../readwrite/model/SimulatedDataTypeSizes.go | 9 +-
.../simulated/readwrite/model/plc4x_common.go | 5 -
plc4go/spi/default/DefaultCodec.go | 1 +
plc4go/spi/options/Option.go | 32 ++++-
plc4go/spi/testutils/TestUtils.go | 10 --
plc4go/tests/drivers/tests/abeth_driver_test.go | 2 -
.../drivers/tests/abeth_parser_serializer_test.go | 2 -
plc4go/tests/drivers/tests/ads_driver_test.go | 1 -
.../drivers/tests/ads_parser_serializer_test.go | 2 -
.../drivers/tests/bacnet_parser_serializer_test.go | 2 -
plc4go/tests/drivers/tests/df1_driver_test.go | 2 -
.../drivers/tests/df1_parser_serializer_test.go | 2 -
plc4go/tests/drivers/tests/eip_driver_test.go | 2 -
.../drivers/tests/eip_parser_serializer_test.go | 3 -
plc4go/tests/drivers/tests/firmata_driver_test.go | 2 -
.../tests/firmata_parser_serializer_test.go | 2 -
plc4go/tests/drivers/tests/knxnetip_driver_test.go | 1 -
.../tests/knxnetip_parser_serializer_test.go | 2 -
.../tests/drivers/tests/manual_ads_driver_test.go | 2 -
.../drivers/tests/manual_bacnet_driver_test.go | 2 -
plc4go/tests/drivers/tests/manual_bacnet_test.go | 3 -
.../tests/drivers/tests/manual_cbus_driver_test.go | 9 --
.../tests/drivers/tests/manual_s7_driver_test.go | 2 -
plc4go/tests/drivers/tests/modbus_driver_test.go | 1 -
.../drivers/tests/modbus_parser_serializer_test.go | 2 -
plc4go/tests/drivers/tests/s7_driver_test.go | 1 -
.../drivers/tests/s7_parser_serializer_test.go | 2 -
2422 files changed, 13121 insertions(+), 1122 deletions(-)
diff --git a/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
index bbb48141bf..f28de13775 100644
--- a/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
@@ -56,6 +56,7 @@ import (
${import}
</#list>
</#if>
+ "github.com/rs/zerolog"
)
${sectionContent}
@@ -756,6 +757,8 @@ func ${type.name}Parse(ctx context.Context, theBytes []byte<#if hasParserArgumen
func ${type.name}ParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer<#if hasParserArguments>, ${parserArgumentList}</#if>) (${type.name}, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("${type.name}"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for ${type.name}")<@emitImport import="github.com/pkg/errors" />
}
@@ -1180,7 +1183,7 @@ func ${type.name}ParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffe
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):<@emitImport import="io" />
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing '${optionalField.name}' field of ${type.name}")<@emitImport import="github.com/pkg/errors" />
@@ -1264,7 +1267,7 @@ func ${type.name}ParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffe
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of ${type.name}")<@emitImport import="github.com/pkg/errors" />
}
if ${helper.toTypeSafeCompare(reservedField)} {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": ${helper.getReservedValue(reservedField)},
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -1553,6 +1556,8 @@ func (m *_${type.name}) SerializeWithWriteBuffer(ctx context.Context, writeBuffe
</#if>
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
<#if helper.hasFieldOfType("unknown")>
return errors.New("Unknown field not serializable")
<#else>
@@ -1801,7 +1806,7 @@ func (m *_${type.name}) SerializeWithWriteBuffer(ctx context.Context, writeBuffe
{
var reserved ${helper.getLanguageTypeNameForTypeReference(simpleTypeReference)} = ${helper.getReservedValue(reservedField)}
if <#if type.isAbstract()>p</#if>m.reservedField${reservedFieldIndex} != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": ${helper.getReservedValue(reservedField)},
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/code-generation/language-go/src/main/resources/templates/go/data-io-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/data-io-template.go.ftlh
index 9395d9a5c1..e5f8e90d90 100644
--- a/code-generation/language-go/src/main/resources/templates/go/data-io-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/data-io-template.go.ftlh
@@ -56,6 +56,7 @@ import (
${import}
</#list>
</#if>
+ "github.com/rs/zerolog"
)
${sectionContent}
@@ -74,6 +75,8 @@ func ${type.name}Parse(ctx context.Context, theBytes []byte<#if parserArguments?
}
func ${type.name}ParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer<#if parserArguments?has_content>, <#list parserArguments as parserArgument>${parserArgument.name} <#if parserArgument.type.isNonSimpleTypeReference() && !parserArgument.type.isEnumTypeReference()>I</#if>${helper.getLanguageTypeNameForTypeReference(parserArgument.type)}<#sep>, </#sep></#list></#if>) (api.PlcValue, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
readBuffer.PullContext("${type.name}")
switch {
<#list type.switchField.orElseThrow().cases as case>
@@ -246,6 +249,8 @@ func ${type.name}Serialize(value api.PlcValue<#if parserArguments?has_content>,
}
func ${type.name}SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue<#if parserArguments?has_content>, <#list parserArguments as parserArgument>${parserArgument.name} <#if parserArgument.type.isNonSimpleTypeReference() && !parserArgument.type.isEnumTypeReference()>I</#if>${helper.getLanguageTypeNameForTypeReference(parserArgument.type)}<#sep>, </#sep></#list></#if>) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
<#if parserArguments?has_content>
m := struct {
<#list parserArguments as parserArgument>
diff --git a/code-generation/language-go/src/main/resources/templates/go/enum-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/enum-template.go.ftlh
index c3098ec08d..d58b7bf0bf 100644
--- a/code-generation/language-go/src/main/resources/templates/go/enum-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/enum-template.go.ftlh
@@ -51,8 +51,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -186,12 +189,14 @@ func ${type.name}Parse(ctx context.Context, theBytes []byte) (${type.name}, erro
}
func ${type.name}ParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (${type.name}, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := ${helper.getReadBufferReadMethodCall(type.name, type.type.orElseThrow(), null)}
if err != nil {
return <#if type.type.orElseThrow().isStringTypeReference() || type.type.orElseThrow().isVstringTypeReference()>""<#elseif baseType == "bool">false<#else>0</#if>, errors.Wrap(err, "error reading ${type.name}")
}
if enum, ok := ${type.name}ByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return ${type.name}(val), nil
} else {
return enum, nil
@@ -207,6 +212,8 @@ func (e ${type.name}) Serialize() ([]byte, error) {
}
func (e ${type.name}) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return ${helper.getWriteBufferWriteMethodCall(type.name, type.type.orElseThrow(), helper.getLanguageTypeNameForTypeReference(type.type.orElseThrow()) + "(e)", null, "utils.WithAdditionalStringRepresentation(e.PLC4XEnumName())")}
}
</#if>
diff --git a/code-generation/language-go/src/main/resources/templates/go/plc4x_common.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/plc4x_common.go.ftlh
index bd3a49188a..0a32a486ce 100644
--- a/code-generation/language-go/src/main/resources/templates/go/plc4x_common.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/plc4x_common.go.ftlh
@@ -45,11 +45,6 @@ ${helper.fileName(protocolName, languageName, outputFlavor)?replace(".", "/")}/m
package model
-import "github.com/rs/zerolog/log"
-
// Code generated by code-generation. DO NOT EDIT.
-// Plc4xModelLog is the Logger used by the Parse/Serialize methods
-var Plc4xModelLog = &log.Logger
-
</#outputformat>
diff --git a/plc4go/internal/cbus/Browser_test.go b/plc4go/internal/cbus/Browser_test.go
index 8ce1fbb009..495618379e 100644
--- a/plc4go/internal/cbus/Browser_test.go
+++ b/plc4go/internal/cbus/Browser_test.go
@@ -93,9 +93,6 @@ func TestBrowser_BrowseQuery(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -371,9 +368,6 @@ func TestBrowser_getInstalledUnitAddressBytes(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom options for that
_options := []options.WithOption{
options.WithCustomLogger(logger),
diff --git a/plc4go/internal/cbus/CBusMessageMapper_test.go b/plc4go/internal/cbus/CBusMessageMapper_test.go
index 1067150d48..30c3a32b09 100644
--- a/plc4go/internal/cbus/CBusMessageMapper_test.go
+++ b/plc4go/internal/cbus/CBusMessageMapper_test.go
@@ -2779,7 +2779,6 @@ func TestMapEncodedReply(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
testingLogger := testutils.ProduceTestingLogger(t)
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
if tt.setup != nil {
tt.setup(t, &tt.args)
}
diff --git a/plc4go/internal/cbus/Connection_test.go b/plc4go/internal/cbus/Connection_test.go
index 92fe5553ba..b9816aa1d4 100644
--- a/plc4go/internal/cbus/Connection_test.go
+++ b/plc4go/internal/cbus/Connection_test.go
@@ -183,9 +183,6 @@ func TestConnection_ConnectWithContext(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- // Setup global model log
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -227,6 +224,7 @@ func TestConnection_ConnectWithContext(t *testing.T) {
log: tt.fields.log,
}
assert.True(t, tt.wantAsserter(t, c.ConnectWithContext(tt.args.ctx)), "ConnectWithContext(%v)", tt.args.ctx)
+ time.Sleep(200 * time.Millisecond) // TODO: find out what is still running here
})
}
}
@@ -880,9 +878,6 @@ func TestConnection_fireConnectionError(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
fields.DefaultConnection = _default.NewDefaultConnection(nil, loggerOption)
transport := test.NewTransport(loggerOption)
ti, err := transport.CreateTransportInstance(url.URL{Scheme: "test"}, nil, loggerOption)
@@ -910,9 +905,6 @@ func TestConnection_fireConnectionError(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
fields.DefaultConnection = _default.NewDefaultConnection(nil, loggerOption)
transport := test.NewTransport(loggerOption)
ti, err := transport.CreateTransportInstance(url.URL{Scheme: "test"}, nil, loggerOption)
@@ -1000,8 +992,6 @@ func TestConnection_sendCalDataWrite(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1086,9 +1076,6 @@ func TestConnection_sendReset(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
fields.DefaultConnection = _default.NewDefaultConnection(nil, loggerOption)
transport := test.NewTransport(loggerOption)
ti, err := transport.CreateTransportInstance(url.URL{Scheme: "test"}, nil, loggerOption)
@@ -1167,8 +1154,6 @@ func TestConnection_setApplicationFilter(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1251,8 +1236,6 @@ func TestConnection_setInterface1PowerUpSettings(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1335,8 +1318,6 @@ func TestConnection_setInterfaceOptions1(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1419,8 +1400,6 @@ func TestConnection_setInterfaceOptions3(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1492,8 +1471,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1520,8 +1497,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1573,8 +1548,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1638,8 +1611,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1709,8 +1680,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1789,8 +1758,6 @@ func TestConnection_setupConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
fields.log = logger
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -1907,9 +1874,6 @@ func TestConnection_startSubscriptionHandler(t *testing.T) {
fields.log = logger
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
fields.DefaultConnection = _default.NewDefaultConnection(nil, loggerOption)
},
},
@@ -1921,9 +1885,6 @@ func TestConnection_startSubscriptionHandler(t *testing.T) {
fields.log = logger
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
defaultConnection := _default.NewDefaultConnection(nil, loggerOption)
defaultConnection.SetConnected(true)
fields.DefaultConnection = defaultConnection
@@ -1947,9 +1908,6 @@ func TestConnection_startSubscriptionHandler(t *testing.T) {
fields.log = logger
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
defaultConnection := _default.NewDefaultConnection(nil, loggerOption)
defaultConnection.SetConnected(true)
fields.DefaultConnection = defaultConnection
@@ -2008,9 +1966,6 @@ func TestNewConnection(t *testing.T) {
logger := testutils.ProduceTestingLogger(t)
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
codec := NewMessageCodec(test.NewTransportInstance(transport, loggerOption), loggerOption)
t.Cleanup(func() {
diff --git a/plc4go/internal/cbus/Discoverer_test.go b/plc4go/internal/cbus/Discoverer_test.go
index fb5274ee2c..2620a6da8b 100644
--- a/plc4go/internal/cbus/Discoverer_test.go
+++ b/plc4go/internal/cbus/Discoverer_test.go
@@ -30,7 +30,6 @@ import (
"time"
apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
- readWriteModel "github.com/apache/plc4x/plc4go/protocols/cbus/readwrite/model"
"github.com/apache/plc4x/plc4go/spi/options"
"github.com/apache/plc4x/plc4go/spi/pool"
"github.com/apache/plc4x/plc4go/spi/testutils"
@@ -202,9 +201,6 @@ func TestDiscoverer_createDeviceScanDispatcher(t *testing.T) {
// Setup logger
logger := testutils.ProduceTestingLogger(t)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
loggerOption := options.WithCustomLogger(logger)
transport := tcp.NewTransport(loggerOption)
parse, err := url.Parse("tcp://" + listen.Addr().String())
diff --git a/plc4go/internal/cbus/MessageCodec_test.go b/plc4go/internal/cbus/MessageCodec_test.go
index e4305f88c7..ffc03e2f6f 100644
--- a/plc4go/internal/cbus/MessageCodec_test.go
+++ b/plc4go/internal/cbus/MessageCodec_test.go
@@ -69,9 +69,6 @@ func TestMessageCodec_Send(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
codec := NewMessageCodec(instance, loggerOption)
@@ -133,9 +130,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
codec := NewMessageCodec(instance, loggerOption)
@@ -166,9 +160,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("!"))
@@ -194,9 +185,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("@A62120\r@A62120\r"))
@@ -222,9 +210,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("what on earth\n\r"))
@@ -250,9 +235,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("AFFE!!!\r"))
@@ -310,9 +292,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("@1A2001!!!\r"))
@@ -338,9 +317,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("86040200F940380001000000000000000008000000000000000000000000FA\r\n"))
@@ -551,9 +527,6 @@ func TestMessageCodec_Receive(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
instance := test.NewTransportInstance(transport, loggerOption)
instance.FillReadBuffer([]byte("0531AC0079042F0401430316000011\r\n"))
@@ -649,9 +622,6 @@ func TestMessageCodec_Receive_Delayed_Response(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportInstance := test.NewTransportInstance(transport, loggerOption)
codec := NewMessageCodec(transportInstance, loggerOption)
@@ -691,9 +661,6 @@ func TestMessageCodec_Receive_Delayed_Response(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportInstance := test.NewTransportInstance(transport, loggerOption)
codec := NewMessageCodec(transportInstance, loggerOption)
@@ -736,9 +703,6 @@ func TestMessageCodec_Receive_Delayed_Response(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportInstance := test.NewTransportInstance(transport, loggerOption)
codec := NewMessageCodec(transportInstance, loggerOption)
diff --git a/plc4go/internal/cbus/Reader_test.go b/plc4go/internal/cbus/Reader_test.go
index 4fa5d73b66..bf1807f0dd 100644
--- a/plc4go/internal/cbus/Reader_test.go
+++ b/plc4go/internal/cbus/Reader_test.go
@@ -180,8 +180,6 @@ func TestReader_readSync(t *testing.T) {
// Setup logger
logger := testutils.ProduceTestingLogger(t)
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -263,9 +261,6 @@ func TestReader_readSync(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
fields.tm = transactions.NewRequestTransactionManager(10, loggerOption)
transport := test.NewTransport()
transportUrl := url.URL{Scheme: "test"}
@@ -346,9 +341,6 @@ func TestReader_readSync(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport()
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -436,8 +428,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
},
},
setup: func(t *testing.T, fields *fields, args *args, ch chan struct{}) {
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
loggerOption := options.WithCustomLogger(testutils.ProduceTestingLogger(t))
transport := test.NewTransport(loggerOption)
@@ -504,8 +494,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
// Setup logger
logger := testutils.ProduceTestingLogger(t)
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -593,8 +581,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
// Setup logger
logger := testutils.ProduceTestingLogger(t)
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
// Custom option for that
loggerOption := options.WithCustomLogger(logger)
@@ -694,9 +680,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -786,9 +769,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -878,9 +858,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -970,9 +947,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -1062,9 +1036,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
@@ -1154,9 +1125,6 @@ func TestReader_sendMessageOverTheWire(t *testing.T) {
loggerOption := options.WithCustomLogger(logger)
- // Set the model logger to the logger above
- testutils.SetToTestingLogger(t, readWriteModel.Plc4xModelLog)
-
transport := test.NewTransport(loggerOption)
transportUrl := url.URL{Scheme: "test"}
transportInstance, err := transport.CreateTransportInstance(transportUrl, nil, loggerOption)
diff --git a/plc4go/internal/cbus/Subscriber.go b/plc4go/internal/cbus/Subscriber.go
index 7b987b83f3..a9224fd79a 100644
--- a/plc4go/internal/cbus/Subscriber.go
+++ b/plc4go/internal/cbus/Subscriber.go
@@ -27,6 +27,7 @@ import (
"github.com/rs/zerolog"
"runtime/debug"
"strings"
+ "sync"
"time"
apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
@@ -41,6 +42,8 @@ type Subscriber struct {
consumers map[*spiModel.DefaultPlcConsumerRegistration]apiModel.PlcSubscriptionEventConsumer `ignore:"true"`
addSubscriber func(subscriber *Subscriber)
+ consumersMutex sync.RWMutex
+
log zerolog.Logger `ignore:"true"`
}
@@ -122,6 +125,8 @@ func (s *Subscriber) handleMonitoredMMI(calReply readWriteModel.CALReply) bool {
s.log.Debug().Msgf("Unit address string: %s", unitAddressString)
calData := calReply.GetCalData()
handled := false
+ s.consumersMutex.RLock()
+ defer s.consumersMutex.RUnlock()
for registration, consumer := range s.consumers {
s.log.Debug().Msgf("Checking with registration\n%s\nand consumer set %t", registration, consumer != nil)
for _, subscriptionHandle := range registration.GetSubscriptionHandles() {
@@ -259,6 +264,8 @@ func (s *Subscriber) offerMMI(unitAddressString string, calData readWriteModel.C
func (s *Subscriber) handleMonitoredSAL(sal readWriteModel.MonitoredSAL) bool {
handled := false
+ s.consumersMutex.RLock()
+ defer s.consumersMutex.RUnlock()
for registration, consumer := range s.consumers {
for _, subscriptionHandle := range registration.GetSubscriptionHandles() {
handled = handled || s.offerSAL(sal, subscriptionHandle.(*SubscriptionHandle), consumer)
@@ -406,11 +413,15 @@ func (s *Subscriber) offerSAL(sal readWriteModel.MonitoredSAL, subscriptionHandl
}
func (s *Subscriber) Register(consumer apiModel.PlcSubscriptionEventConsumer, handles []apiModel.PlcSubscriptionHandle) apiModel.PlcConsumerRegistration {
+ s.consumersMutex.Lock()
+ defer s.consumersMutex.Unlock()
consumerRegistration := spiModel.NewDefaultPlcConsumerRegistration(s, consumer, handles...)
s.consumers[consumerRegistration.(*spiModel.DefaultPlcConsumerRegistration)] = consumer
return consumerRegistration
}
func (s *Subscriber) Unregister(registration apiModel.PlcConsumerRegistration) {
+ s.consumersMutex.Lock()
+ defer s.consumersMutex.Unlock()
delete(s.consumers, registration.(*spiModel.DefaultPlcConsumerRegistration))
}
diff --git a/plc4go/pkg/api/config/config.go b/plc4go/pkg/api/config/config.go
index 62697d442c..63e01fe3bc 100644
--- a/plc4go/pkg/api/config/config.go
+++ b/plc4go/pkg/api/config/config.go
@@ -41,6 +41,11 @@ func WithCustomLogger(logger zerolog.Logger) WithOption {
return options.WithCustomLogger(logger)
}
+// WithPassLoggerToModel enables passing of log to the model
+func WithPassLoggerToModel(passLogger bool) WithOption {
+ return options.WithPassLoggerToModel(passLogger)
+}
+
// WithOption is a marker interface for options
type WithOption interface {
options.WithOption
diff --git a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
index 05f7f34336..c75d9e9e7d 100644
--- a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
+++ b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionRequest.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -115,6 +116,8 @@ func CIPEncapsulationConnectionRequestParse(ctx context.Context, theBytes []byte
func CIPEncapsulationConnectionRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CIPEncapsulationConnectionRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("CIPEncapsulationConnectionRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for CIPEncapsulationConnectionRequest")
}
@@ -144,6 +147,8 @@ func (m *_CIPEncapsulationConnectionRequest) Serialize() ([]byte, error) {
func (m *_CIPEncapsulationConnectionRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("CIPEncapsulationConnectionRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for CIPEncapsulationConnectionRequest")
diff --git a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
index 6b8b9088fc..66576caa66 100644
--- a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
+++ b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationConnectionResponse.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -115,6 +116,8 @@ func CIPEncapsulationConnectionResponseParse(ctx context.Context, theBytes []byt
func CIPEncapsulationConnectionResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CIPEncapsulationConnectionResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("CIPEncapsulationConnectionResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for CIPEncapsulationConnectionResponse")
}
@@ -144,6 +147,8 @@ func (m *_CIPEncapsulationConnectionResponse) Serialize() ([]byte, error) {
func (m *_CIPEncapsulationConnectionResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("CIPEncapsulationConnectionResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for CIPEncapsulationConnectionResponse")
diff --git a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationPacket.go b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationPacket.go
index 50bad5b949..ad55008a22 100644
--- a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationPacket.go
+++ b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationPacket.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -169,6 +170,8 @@ func CIPEncapsulationPacketParse(ctx context.Context, theBytes []byte) (CIPEncap
func CIPEncapsulationPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CIPEncapsulationPacket, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("CIPEncapsulationPacket"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for CIPEncapsulationPacket")
}
@@ -244,7 +247,7 @@ func CIPEncapsulationPacketParseWithBuffer(ctx context.Context, readBuffer utils
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of CIPEncapsulationPacket")
}
if reserved != uint32(0x00000000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint32(0x00000000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -295,6 +298,8 @@ func (pm *_CIPEncapsulationPacket) SerializeParent(ctx context.Context, writeBuf
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("CIPEncapsulationPacket"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for CIPEncapsulationPacket")
}
@@ -354,7 +359,7 @@ func (pm *_CIPEncapsulationPacket) SerializeParent(ctx context.Context, writeBuf
{
var reserved uint32 = uint32(0x00000000)
if pm.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint32(0x00000000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadRequest.go b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadRequest.go
index af7e3f5aeb..24eb0da117 100644
--- a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadRequest.go
+++ b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadRequest.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -136,6 +137,8 @@ func CIPEncapsulationReadRequestParse(ctx context.Context, theBytes []byte) (CIP
func CIPEncapsulationReadRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CIPEncapsulationReadRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("CIPEncapsulationReadRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for CIPEncapsulationReadRequest")
}
@@ -179,6 +182,8 @@ func (m *_CIPEncapsulationReadRequest) Serialize() ([]byte, error) {
func (m *_CIPEncapsulationReadRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("CIPEncapsulationReadRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for CIPEncapsulationReadRequest")
diff --git a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadResponse.go b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadResponse.go
index 36d770ac34..b7d8b7f86b 100644
--- a/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadResponse.go
+++ b/plc4go/protocols/abeth/readwrite/model/CIPEncapsulationReadResponse.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -139,6 +140,8 @@ func CIPEncapsulationReadResponseParse(ctx context.Context, theBytes []byte, pac
func CIPEncapsulationReadResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, packetLen uint16) (CIPEncapsulationReadResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("CIPEncapsulationReadResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for CIPEncapsulationReadResponse")
}
@@ -182,6 +185,8 @@ func (m *_CIPEncapsulationReadResponse) Serialize() ([]byte, error) {
func (m *_CIPEncapsulationReadResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("CIPEncapsulationReadResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for CIPEncapsulationReadResponse")
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1CommandRequestMessage.go b/plc4go/protocols/abeth/readwrite/model/DF1CommandRequestMessage.go
index 72c0a340b1..d8f2feda55 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1CommandRequestMessage.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1CommandRequestMessage.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func DF1CommandRequestMessageParse(ctx context.Context, theBytes []byte) (DF1Com
func DF1CommandRequestMessageParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DF1CommandRequestMessage, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1CommandRequestMessage"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1CommandRequestMessage")
}
@@ -178,6 +181,8 @@ func (m *_DF1CommandRequestMessage) Serialize() ([]byte, error) {
func (m *_DF1CommandRequestMessage) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("DF1CommandRequestMessage"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1CommandRequestMessage")
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go b/plc4go/protocols/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
index e5de5eab52..2f55884374 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1CommandResponseMessageProtectedTypedLogicalRead.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -137,6 +138,8 @@ func DF1CommandResponseMessageProtectedTypedLogicalReadParse(ctx context.Context
func DF1CommandResponseMessageProtectedTypedLogicalReadParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, payloadLength uint16) (DF1CommandResponseMessageProtectedTypedLogicalRead, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1CommandResponseMessageProtectedTypedLogicalRead"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1CommandResponseMessageProtectedTypedLogicalRead")
}
@@ -190,6 +193,8 @@ func (m *_DF1CommandResponseMessageProtectedTypedLogicalRead) Serialize() ([]byt
func (m *_DF1CommandResponseMessageProtectedTypedLogicalRead) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("DF1CommandResponseMessageProtectedTypedLogicalRead"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1CommandResponseMessageProtectedTypedLogicalRead")
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1RequestCommand.go b/plc4go/protocols/abeth/readwrite/model/DF1RequestCommand.go
index b519dcc138..6734610083 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1RequestCommand.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1RequestCommand.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -108,6 +109,8 @@ func DF1RequestCommandParse(ctx context.Context, theBytes []byte) (DF1RequestCom
func DF1RequestCommandParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DF1RequestCommand, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1RequestCommand"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1RequestCommand")
}
@@ -155,6 +158,8 @@ func (pm *_DF1RequestCommand) SerializeParent(ctx context.Context, writeBuffer u
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("DF1RequestCommand"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1RequestCommand")
}
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1RequestMessage.go b/plc4go/protocols/abeth/readwrite/model/DF1RequestMessage.go
index 821bfc2ddd..2cfa873828 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1RequestMessage.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1RequestMessage.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -163,6 +164,8 @@ func DF1RequestMessageParse(ctx context.Context, theBytes []byte) (DF1RequestMes
func DF1RequestMessageParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DF1RequestMessage, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1RequestMessage"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1RequestMessage")
}
@@ -191,7 +194,7 @@ func DF1RequestMessageParseWithBuffer(ctx context.Context, readBuffer utils.Read
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of DF1RequestMessage")
}
if reserved != uint16(0x0000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -256,6 +259,8 @@ func (pm *_DF1RequestMessage) SerializeParent(ctx context.Context, writeBuffer u
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("DF1RequestMessage"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1RequestMessage")
}
@@ -278,7 +283,7 @@ func (pm *_DF1RequestMessage) SerializeParent(ctx context.Context, writeBuffer u
{
var reserved uint16 = uint16(0x0000)
if pm.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go b/plc4go/protocols/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
index e3622c0d95..06f807a4b6 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1RequestProtectedTypedLogicalRead.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -174,6 +175,8 @@ func DF1RequestProtectedTypedLogicalReadParse(ctx context.Context, theBytes []by
func DF1RequestProtectedTypedLogicalReadParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DF1RequestProtectedTypedLogicalRead, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1RequestProtectedTypedLogicalRead"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1RequestProtectedTypedLogicalRead")
}
@@ -243,6 +246,8 @@ func (m *_DF1RequestProtectedTypedLogicalRead) Serialize() ([]byte, error) {
func (m *_DF1RequestProtectedTypedLogicalRead) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("DF1RequestProtectedTypedLogicalRead"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1RequestProtectedTypedLogicalRead")
diff --git a/plc4go/protocols/abeth/readwrite/model/DF1ResponseMessage.go b/plc4go/protocols/abeth/readwrite/model/DF1ResponseMessage.go
index cdaec45d42..e7602ed6d9 100644
--- a/plc4go/protocols/abeth/readwrite/model/DF1ResponseMessage.go
+++ b/plc4go/protocols/abeth/readwrite/model/DF1ResponseMessage.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -170,6 +171,8 @@ func DF1ResponseMessageParse(ctx context.Context, theBytes []byte, payloadLength
func DF1ResponseMessageParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, payloadLength uint16) (DF1ResponseMessage, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("DF1ResponseMessage"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for DF1ResponseMessage")
}
@@ -184,7 +187,7 @@ func DF1ResponseMessageParseWithBuffer(ctx context.Context, readBuffer utils.Rea
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of DF1ResponseMessage")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -215,7 +218,7 @@ func DF1ResponseMessageParseWithBuffer(ctx context.Context, readBuffer utils.Rea
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of DF1ResponseMessage")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -281,6 +284,8 @@ func (pm *_DF1ResponseMessage) SerializeParent(ctx context.Context, writeBuffer
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("DF1ResponseMessage"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for DF1ResponseMessage")
}
@@ -289,7 +294,7 @@ func (pm *_DF1ResponseMessage) SerializeParent(ctx context.Context, writeBuffer
{
var reserved uint8 = uint8(0x00)
if pm.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
@@ -319,7 +324,7 @@ func (pm *_DF1ResponseMessage) SerializeParent(ctx context.Context, writeBuffer
{
var reserved uint8 = uint8(0x00)
if pm.reservedField1 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/abeth/readwrite/model/plc4x_common.go b/plc4go/protocols/abeth/readwrite/model/plc4x_common.go
index d2d66e8bdd..8026ad9813 100644
--- a/plc4go/protocols/abeth/readwrite/model/plc4x_common.go
+++ b/plc4go/protocols/abeth/readwrite/model/plc4x_common.go
@@ -19,9 +19,4 @@
package model
-import "github.com/rs/zerolog/log"
-
// Code generated by code-generation. DO NOT EDIT.
-
-// Plc4xModelLog is the Logger used by the Parse/Serialize methods
-var Plc4xModelLog = &log.Logger
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscovery.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscovery.go
index d9297911b8..a308ef07fd 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscovery.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscovery.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -173,6 +174,8 @@ func AdsDiscoveryParse(ctx context.Context, theBytes []byte) (AdsDiscovery, erro
func AdsDiscoveryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscovery, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscovery"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscovery")
}
@@ -293,6 +296,8 @@ func (m *_AdsDiscovery) Serialize() ([]byte, error) {
func (m *_AdsDiscovery) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDiscovery"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscovery")
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlock.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlock.go
index 6a56c966aa..6277d730cd 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlock.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlock.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -108,6 +109,8 @@ func AdsDiscoveryBlockParse(ctx context.Context, theBytes []byte) (AdsDiscoveryB
func AdsDiscoveryBlockParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlock, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlock"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlock")
}
@@ -178,6 +181,8 @@ func (pm *_AdsDiscoveryBlock) SerializeParent(ctx context.Context, writeBuffer u
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlock"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlock")
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockAmsNetId.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockAmsNetId.go
index 464bb7d4f2..1649bdb8f1 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockAmsNetId.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockAmsNetId.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -149,6 +150,8 @@ func AdsDiscoveryBlockAmsNetIdParse(ctx context.Context, theBytes []byte) (AdsDi
func AdsDiscoveryBlockAmsNetIdParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockAmsNetId, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockAmsNetId"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockAmsNetId")
}
@@ -201,6 +204,8 @@ func (m *_AdsDiscoveryBlockAmsNetId) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockAmsNetId) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockAmsNetId"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockAmsNetId")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockFingerprint.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockFingerprint.go
index 8d848f5603..b9d87461d2 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockFingerprint.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockFingerprint.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func AdsDiscoveryBlockFingerprintParse(ctx context.Context, theBytes []byte) (Ad
func AdsDiscoveryBlockFingerprintParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockFingerprint, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockFingerprint"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockFingerprint")
}
@@ -178,6 +181,8 @@ func (m *_AdsDiscoveryBlockFingerprint) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockFingerprint) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockFingerprint"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockFingerprint")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockHostName.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockHostName.go
index 0ce0bcce83..b94e9a11e4 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockHostName.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockHostName.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func AdsDiscoveryBlockHostNameParse(ctx context.Context, theBytes []byte) (AdsDi
func AdsDiscoveryBlockHostNameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockHostName, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockHostName"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockHostName")
}
@@ -173,6 +176,8 @@ func (m *_AdsDiscoveryBlockHostName) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockHostName) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockHostName"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockHostName")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockOsData.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockOsData.go
index 8f7e3040aa..ccdba72021 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockOsData.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockOsData.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func AdsDiscoveryBlockOsDataParse(ctx context.Context, theBytes []byte) (AdsDisc
func AdsDiscoveryBlockOsDataParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockOsData, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockOsData"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockOsData")
}
@@ -178,6 +181,8 @@ func (m *_AdsDiscoveryBlockOsData) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockOsData) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockOsData"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockOsData")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockPassword.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockPassword.go
index a2ea5d3b3f..5412756586 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockPassword.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockPassword.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func AdsDiscoveryBlockPasswordParse(ctx context.Context, theBytes []byte) (AdsDi
func AdsDiscoveryBlockPasswordParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockPassword, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockPassword"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockPassword")
}
@@ -173,6 +176,8 @@ func (m *_AdsDiscoveryBlockPassword) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockPassword) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockPassword"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockPassword")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockRouteName.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockRouteName.go
index 9118781266..8589d53a66 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockRouteName.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockRouteName.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func AdsDiscoveryBlockRouteNameParse(ctx context.Context, theBytes []byte) (AdsD
func AdsDiscoveryBlockRouteNameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockRouteName, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockRouteName"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockRouteName")
}
@@ -173,6 +176,8 @@ func (m *_AdsDiscoveryBlockRouteName) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockRouteName) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockRouteName"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockRouteName")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockStatus.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockStatus.go
index f0b94cb5a3..acc5b7e8f8 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockStatus.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockStatus.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -149,6 +150,8 @@ func AdsDiscoveryBlockStatusParse(ctx context.Context, theBytes []byte) (AdsDisc
func AdsDiscoveryBlockStatusParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockStatus, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockStatus"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockStatus")
}
@@ -201,6 +204,8 @@ func (m *_AdsDiscoveryBlockStatus) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockStatus) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockStatus"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockStatus")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockType.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockType.go
index 41efc4e47d..5d545c624b 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockType.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,12 +149,14 @@ func AdsDiscoveryBlockTypeParse(ctx context.Context, theBytes []byte) (AdsDiscov
}
func AdsDiscoveryBlockTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("AdsDiscoveryBlockType", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading AdsDiscoveryBlockType")
}
if enum, ok := AdsDiscoveryBlockTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return AdsDiscoveryBlockType(val), nil
} else {
return enum, nil
@@ -167,6 +172,8 @@ func (e AdsDiscoveryBlockType) Serialize() ([]byte, error) {
}
func (e AdsDiscoveryBlockType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("AdsDiscoveryBlockType", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockUserName.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockUserName.go
index fbd961a829..bf62f58cc0 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockUserName.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockUserName.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func AdsDiscoveryBlockUserNameParse(ctx context.Context, theBytes []byte) (AdsDi
func AdsDiscoveryBlockUserNameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockUserName, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockUserName"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockUserName")
}
@@ -173,6 +176,8 @@ func (m *_AdsDiscoveryBlockUserName) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockUserName) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockUserName"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockUserName")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockVersion.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockVersion.go
index 84494fa399..5ab7b6e442 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockVersion.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryBlockVersion.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func AdsDiscoveryBlockVersionParse(ctx context.Context, theBytes []byte) (AdsDis
func AdsDiscoveryBlockVersionParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryBlockVersion, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryBlockVersion"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryBlockVersion")
}
@@ -178,6 +181,8 @@ func (m *_AdsDiscoveryBlockVersion) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryBlockVersion) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDiscoveryBlockVersion"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryBlockVersion")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryConstants.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryConstants.go
index 761dc3ea81..62e97fd4aa 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryConstants.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsDiscoveryConstants.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -103,6 +104,8 @@ func AdsDiscoveryConstantsParse(ctx context.Context, theBytes []byte) (AdsDiscov
func AdsDiscoveryConstantsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDiscoveryConstants, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDiscoveryConstants"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDiscoveryConstants")
}
@@ -137,6 +140,8 @@ func (m *_AdsDiscoveryConstants) Serialize() ([]byte, error) {
func (m *_AdsDiscoveryConstants) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDiscoveryConstants"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDiscoveryConstants")
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AdsPortNumbers.go b/plc4go/protocols/ads/discovery/readwrite/model/AdsPortNumbers.go
index fb5bc2cd47..6ed261b152 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AdsPortNumbers.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AdsPortNumbers.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -170,12 +173,14 @@ func AdsPortNumbersParse(ctx context.Context, theBytes []byte) (AdsPortNumbers,
}
func AdsPortNumbersParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsPortNumbers, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("AdsPortNumbers", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading AdsPortNumbers")
}
if enum, ok := AdsPortNumbersByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return AdsPortNumbers(val), nil
} else {
return enum, nil
@@ -191,6 +196,8 @@ func (e AdsPortNumbers) Serialize() ([]byte, error) {
}
func (e AdsPortNumbers) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("AdsPortNumbers", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AmsNetId.go b/plc4go/protocols/ads/discovery/readwrite/model/AmsNetId.go
index 2f38a85b70..55ae018f94 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AmsNetId.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AmsNetId.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -153,6 +154,8 @@ func AmsNetIdParse(ctx context.Context, theBytes []byte) (AmsNetId, error) {
func AmsNetIdParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsNetId, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsNetId"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsNetId")
}
@@ -227,6 +230,8 @@ func (m *_AmsNetId) Serialize() ([]byte, error) {
func (m *_AmsNetId) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsNetId"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsNetId")
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/AmsString.go b/plc4go/protocols/ads/discovery/readwrite/model/AmsString.go
index c78649d0a9..18b4ca4377 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/AmsString.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/AmsString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -111,6 +112,8 @@ func AmsStringParse(ctx context.Context, theBytes []byte) (AmsString, error) {
func AmsStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsString")
}
@@ -139,7 +142,7 @@ func AmsStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer)
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AmsString")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -170,6 +173,8 @@ func (m *_AmsString) Serialize() ([]byte, error) {
func (m *_AmsString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsString")
}
@@ -192,7 +197,7 @@ func (m *_AmsString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer u
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/Operation.go b/plc4go/protocols/ads/discovery/readwrite/model/Operation.go
index fa896802c0..27d1fafddc 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/Operation.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/Operation.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -140,12 +143,14 @@ func OperationParse(ctx context.Context, theBytes []byte) (Operation, error) {
}
func OperationParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (Operation, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint32("Operation", 32)
if err != nil {
return 0, errors.Wrap(err, "error reading Operation")
}
if enum, ok := OperationByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return Operation(val), nil
} else {
return enum, nil
@@ -161,6 +166,8 @@ func (e Operation) Serialize() ([]byte, error) {
}
func (e Operation) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint32("Operation", 32, uint32(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/Status.go b/plc4go/protocols/ads/discovery/readwrite/model/Status.go
index 4860df5a57..d4194af21a 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/Status.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/Status.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -110,12 +113,14 @@ func StatusParse(ctx context.Context, theBytes []byte) (Status, error) {
}
func StatusParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (Status, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint32("Status", 32)
if err != nil {
return 0, errors.Wrap(err, "error reading Status")
}
if enum, ok := StatusByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return Status(val), nil
} else {
return enum, nil
@@ -131,6 +136,8 @@ func (e Status) Serialize() ([]byte, error) {
}
func (e Status) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint32("Status", 32, uint32(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/discovery/readwrite/model/plc4x_common.go b/plc4go/protocols/ads/discovery/readwrite/model/plc4x_common.go
index d2d66e8bdd..8026ad9813 100644
--- a/plc4go/protocols/ads/discovery/readwrite/model/plc4x_common.go
+++ b/plc4go/protocols/ads/discovery/readwrite/model/plc4x_common.go
@@ -19,9 +19,4 @@
package model
-import "github.com/rs/zerolog/log"
-
// Code generated by code-generation. DO NOT EDIT.
-
-// Plc4xModelLog is the Logger used by the Parse/Serialize methods
-var Plc4xModelLog = &log.Logger
diff --git a/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationRequest.go b/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
index 1ca4e73752..c66ddb9da3 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -205,6 +206,8 @@ func AdsAddDeviceNotificationRequestParse(ctx context.Context, theBytes []byte)
func AdsAddDeviceNotificationRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsAddDeviceNotificationRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsAddDeviceNotificationRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsAddDeviceNotificationRequest")
}
@@ -267,7 +270,7 @@ func AdsAddDeviceNotificationRequestParseWithBuffer(ctx context.Context, readBuf
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AdsAddDeviceNotificationRequest")
}
if reserved != uint64(0x0000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint64(0x0000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -284,7 +287,7 @@ func AdsAddDeviceNotificationRequestParseWithBuffer(ctx context.Context, readBuf
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AdsAddDeviceNotificationRequest")
}
if reserved != uint64(0x0000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint64(0x0000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -324,6 +327,8 @@ func (m *_AdsAddDeviceNotificationRequest) Serialize() ([]byte, error) {
func (m *_AdsAddDeviceNotificationRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsAddDeviceNotificationRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsAddDeviceNotificationRequest")
@@ -380,7 +385,7 @@ func (m *_AdsAddDeviceNotificationRequest) SerializeWithWriteBuffer(ctx context.
{
var reserved uint64 = uint64(0x0000)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint64(0x0000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
@@ -396,7 +401,7 @@ func (m *_AdsAddDeviceNotificationRequest) SerializeWithWriteBuffer(ctx context.
{
var reserved uint64 = uint64(0x0000)
if m.reservedField1 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint64(0x0000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationResponse.go b/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
index feb4ef83f5..0bc2d6c7bd 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsAddDeviceNotificationResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -152,6 +153,8 @@ func AdsAddDeviceNotificationResponseParse(ctx context.Context, theBytes []byte)
func AdsAddDeviceNotificationResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsAddDeviceNotificationResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsAddDeviceNotificationResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsAddDeviceNotificationResponse")
}
@@ -203,6 +206,8 @@ func (m *_AdsAddDeviceNotificationResponse) Serialize() ([]byte, error) {
func (m *_AdsAddDeviceNotificationResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsAddDeviceNotificationResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsAddDeviceNotificationResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsConstants.go b/plc4go/protocols/ads/readwrite/model/AdsConstants.go
index 45b86d31d4..87097b95d9 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsConstants.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsConstants.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -103,6 +104,8 @@ func AdsConstantsParse(ctx context.Context, theBytes []byte) (AdsConstants, erro
func AdsConstantsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsConstants, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsConstants"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsConstants")
}
@@ -137,6 +140,8 @@ func (m *_AdsConstants) Serialize() ([]byte, error) {
func (m *_AdsConstants) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsConstants"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsConstants")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDataType.go b/plc4go/protocols/ads/readwrite/model/AdsDataType.go
index fe7c60fa21..cc9ced49be 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDataType.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDataType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -689,12 +692,14 @@ func AdsDataTypeParse(ctx context.Context, theBytes []byte) (AdsDataType, error)
}
func AdsDataTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadInt8("AdsDataType", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading AdsDataType")
}
if enum, ok := AdsDataTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return AdsDataType(val), nil
} else {
return enum, nil
@@ -710,6 +715,8 @@ func (e AdsDataType) Serialize() ([]byte, error) {
}
func (e AdsDataType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteInt8("AdsDataType", 8, int8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDataTypeArrayInfo.go b/plc4go/protocols/ads/readwrite/model/AdsDataTypeArrayInfo.go
index bbef6beab7..2ea8c4da81 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDataTypeArrayInfo.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDataTypeArrayInfo.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -133,6 +134,8 @@ func AdsDataTypeArrayInfoParse(ctx context.Context, theBytes []byte) (AdsDataTyp
func AdsDataTypeArrayInfoParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeArrayInfo, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDataTypeArrayInfo"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDataTypeArrayInfo")
}
@@ -180,6 +183,8 @@ func (m *_AdsDataTypeArrayInfo) Serialize() ([]byte, error) {
func (m *_AdsDataTypeArrayInfo) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDataTypeArrayInfo"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDataTypeArrayInfo")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableChildEntry.go b/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableChildEntry.go
index a96b201500..9cd8ef48d2 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableChildEntry.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableChildEntry.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -314,6 +315,8 @@ func AdsDataTypeTableChildEntryParse(ctx context.Context, theBytes []byte) (AdsD
func AdsDataTypeTableChildEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableChildEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDataTypeTableChildEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDataTypeTableChildEntry")
}
@@ -557,6 +560,8 @@ func (m *_AdsDataTypeTableChildEntry) Serialize() ([]byte, error) {
func (m *_AdsDataTypeTableChildEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDataTypeTableChildEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDataTypeTableChildEntry")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableEntry.go b/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableEntry.go
index 335fd738f0..ff8e819755 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableEntry.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDataTypeTableEntry.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -314,6 +315,8 @@ func AdsDataTypeTableEntryParse(ctx context.Context, theBytes []byte) (AdsDataTy
func AdsDataTypeTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDataTypeTableEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDataTypeTableEntry")
}
@@ -557,6 +560,8 @@ func (m *_AdsDataTypeTableEntry) Serialize() ([]byte, error) {
func (m *_AdsDataTypeTableEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsDataTypeTableEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDataTypeTableEntry")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go b/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
index dbeb057a7d..bcbc3e2cb4 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func AdsDeleteDeviceNotificationRequestParse(ctx context.Context, theBytes []byt
func AdsDeleteDeviceNotificationRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDeleteDeviceNotificationRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDeleteDeviceNotificationRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDeleteDeviceNotificationRequest")
}
@@ -178,6 +181,8 @@ func (m *_AdsDeleteDeviceNotificationRequest) Serialize() ([]byte, error) {
func (m *_AdsDeleteDeviceNotificationRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDeleteDeviceNotificationRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDeleteDeviceNotificationRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go b/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
index 7838af81b1..0169c0a489 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDeleteDeviceNotificationResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func AdsDeleteDeviceNotificationResponseParse(ctx context.Context, theBytes []by
func AdsDeleteDeviceNotificationResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDeleteDeviceNotificationResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDeleteDeviceNotificationResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDeleteDeviceNotificationResponse")
}
@@ -184,6 +187,8 @@ func (m *_AdsDeleteDeviceNotificationResponse) Serialize() ([]byte, error) {
func (m *_AdsDeleteDeviceNotificationResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDeleteDeviceNotificationResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDeleteDeviceNotificationResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationRequest.go b/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationRequest.go
index e85dcef81a..65c91d4785 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -170,6 +171,8 @@ func AdsDeviceNotificationRequestParse(ctx context.Context, theBytes []byte) (Ad
func AdsDeviceNotificationRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDeviceNotificationRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDeviceNotificationRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDeviceNotificationRequest")
}
@@ -243,6 +246,8 @@ func (m *_AdsDeviceNotificationRequest) Serialize() ([]byte, error) {
func (m *_AdsDeviceNotificationRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDeviceNotificationRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDeviceNotificationRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationResponse.go b/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationResponse.go
index b08c3bb893..441b52cebc 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func AdsDeviceNotificationResponseParse(ctx context.Context, theBytes []byte) (A
func AdsDeviceNotificationResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDeviceNotificationResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsDeviceNotificationResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsDeviceNotificationResponse")
}
@@ -149,6 +152,8 @@ func (m *_AdsDeviceNotificationResponse) Serialize() ([]byte, error) {
func (m *_AdsDeviceNotificationResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsDeviceNotificationResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsDeviceNotificationResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsInvalidRequest.go b/plc4go/protocols/ads/readwrite/model/AdsInvalidRequest.go
index 080a55d721..f702a45ddb 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsInvalidRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsInvalidRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func AdsInvalidRequestParse(ctx context.Context, theBytes []byte) (AdsInvalidReq
func AdsInvalidRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsInvalidRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsInvalidRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsInvalidRequest")
}
@@ -149,6 +152,8 @@ func (m *_AdsInvalidRequest) Serialize() ([]byte, error) {
func (m *_AdsInvalidRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsInvalidRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsInvalidRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsInvalidResponse.go b/plc4go/protocols/ads/readwrite/model/AdsInvalidResponse.go
index e63f6da11b..419b0abdd5 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsInvalidResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsInvalidResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func AdsInvalidResponseParse(ctx context.Context, theBytes []byte) (AdsInvalidRe
func AdsInvalidResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsInvalidResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsInvalidResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsInvalidResponse")
}
@@ -149,6 +152,8 @@ func (m *_AdsInvalidResponse) Serialize() ([]byte, error) {
func (m *_AdsInvalidResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsInvalidResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsInvalidResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItem.go b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItem.go
index 3c10379003..31ff9dd27a 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItem.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItem.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -106,6 +107,8 @@ func AdsMultiRequestItemParse(ctx context.Context, theBytes []byte, indexGroup u
func AdsMultiRequestItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (AdsMultiRequestItem, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsMultiRequestItem"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsMultiRequestItem")
}
@@ -151,6 +154,8 @@ func (pm *_AdsMultiRequestItem) SerializeParent(ctx context.Context, writeBuffer
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsMultiRequestItem"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsMultiRequestItem")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemRead.go b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemRead.go
index a1a317e532..c337b54d3a 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemRead.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemRead.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -152,6 +153,8 @@ func AdsMultiRequestItemReadParse(ctx context.Context, theBytes []byte, indexGro
func AdsMultiRequestItemReadParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (AdsMultiRequestItemRead, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsMultiRequestItemRead"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsMultiRequestItemRead")
}
@@ -205,6 +208,8 @@ func (m *_AdsMultiRequestItemRead) Serialize() ([]byte, error) {
func (m *_AdsMultiRequestItemRead) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsMultiRequestItemRead"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsMultiRequestItemRead")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemReadWrite.go b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
index de62fac610..ab51977e01 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemReadWrite.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -163,6 +164,8 @@ func AdsMultiRequestItemReadWriteParse(ctx context.Context, theBytes []byte, ind
func AdsMultiRequestItemReadWriteParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (AdsMultiRequestItemReadWrite, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsMultiRequestItemReadWrite"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsMultiRequestItemReadWrite")
}
@@ -224,6 +227,8 @@ func (m *_AdsMultiRequestItemReadWrite) Serialize() ([]byte, error) {
func (m *_AdsMultiRequestItemReadWrite) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsMultiRequestItemReadWrite"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsMultiRequestItemReadWrite")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemWrite.go b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemWrite.go
index 03033ec128..6135e1e64d 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemWrite.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsMultiRequestItemWrite.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -152,6 +153,8 @@ func AdsMultiRequestItemWriteParse(ctx context.Context, theBytes []byte, indexGr
func AdsMultiRequestItemWriteParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (AdsMultiRequestItemWrite, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsMultiRequestItemWrite"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsMultiRequestItemWrite")
}
@@ -205,6 +208,8 @@ func (m *_AdsMultiRequestItemWrite) Serialize() ([]byte, error) {
func (m *_AdsMultiRequestItemWrite) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsMultiRequestItemWrite"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsMultiRequestItemWrite")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsNotificationSample.go b/plc4go/protocols/ads/readwrite/model/AdsNotificationSample.go
index 023f7e6f31..677754fa5a 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsNotificationSample.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsNotificationSample.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -125,6 +126,8 @@ func AdsNotificationSampleParse(ctx context.Context, theBytes []byte) (AdsNotifi
func AdsNotificationSampleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsNotificationSample, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsNotificationSample"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsNotificationSample")
}
@@ -174,6 +177,8 @@ func (m *_AdsNotificationSample) Serialize() ([]byte, error) {
func (m *_AdsNotificationSample) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsNotificationSample"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsNotificationSample")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoRequest.go b/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoRequest.go
index 20f1d3035a..0e3c3f8949 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func AdsReadDeviceInfoRequestParse(ctx context.Context, theBytes []byte) (AdsRea
func AdsReadDeviceInfoRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadDeviceInfoRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadDeviceInfoRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadDeviceInfoRequest")
}
@@ -149,6 +152,8 @@ func (m *_AdsReadDeviceInfoRequest) Serialize() ([]byte, error) {
func (m *_AdsReadDeviceInfoRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadDeviceInfoRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadDeviceInfoRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoResponse.go b/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoResponse.go
index 8598c85b45..b6d495e324 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadDeviceInfoResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -187,6 +188,8 @@ func AdsReadDeviceInfoResponseParse(ctx context.Context, theBytes []byte) (AdsRe
func AdsReadDeviceInfoResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadDeviceInfoResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadDeviceInfoResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadDeviceInfoResponse")
}
@@ -261,6 +264,8 @@ func (m *_AdsReadDeviceInfoResponse) Serialize() ([]byte, error) {
func (m *_AdsReadDeviceInfoResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadDeviceInfoResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadDeviceInfoResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadRequest.go b/plc4go/protocols/ads/readwrite/model/AdsReadRequest.go
index 6dc8255026..f83e42e8ce 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -163,6 +164,8 @@ func AdsReadRequestParse(ctx context.Context, theBytes []byte) (AdsReadRequest,
func AdsReadRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadRequest")
}
@@ -216,6 +219,8 @@ func (m *_AdsReadRequest) Serialize() ([]byte, error) {
func (m *_AdsReadRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadResponse.go b/plc4go/protocols/ads/readwrite/model/AdsReadResponse.go
index bd1e70faaa..c97dcc084b 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -157,6 +158,8 @@ func AdsReadResponseParse(ctx context.Context, theBytes []byte) (AdsReadResponse
func AdsReadResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadResponse")
}
@@ -214,6 +217,8 @@ func (m *_AdsReadResponse) Serialize() ([]byte, error) {
func (m *_AdsReadResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadStateRequest.go b/plc4go/protocols/ads/readwrite/model/AdsReadStateRequest.go
index 31bc14869e..303dab0b98 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadStateRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadStateRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func AdsReadStateRequestParse(ctx context.Context, theBytes []byte) (AdsReadStat
func AdsReadStateRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadStateRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadStateRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadStateRequest")
}
@@ -149,6 +152,8 @@ func (m *_AdsReadStateRequest) Serialize() ([]byte, error) {
func (m *_AdsReadStateRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadStateRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadStateRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadStateResponse.go b/plc4go/protocols/ads/readwrite/model/AdsReadStateResponse.go
index 24a435fce9..a9b1fd6f75 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadStateResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadStateResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -163,6 +164,8 @@ func AdsReadStateResponseParse(ctx context.Context, theBytes []byte) (AdsReadSta
func AdsReadStateResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadStateResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadStateResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadStateResponse")
}
@@ -222,6 +225,8 @@ func (m *_AdsReadStateResponse) Serialize() ([]byte, error) {
func (m *_AdsReadStateResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadStateResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadStateResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadWriteRequest.go b/plc4go/protocols/ads/readwrite/model/AdsReadWriteRequest.go
index c64bd15c65..e332d4b31f 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadWriteRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadWriteRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -197,6 +198,8 @@ func AdsReadWriteRequestParse(ctx context.Context, theBytes []byte) (AdsReadWrit
func AdsReadWriteRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadWriteRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadWriteRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadWriteRequest")
}
@@ -292,6 +295,8 @@ func (m *_AdsReadWriteRequest) Serialize() ([]byte, error) {
func (m *_AdsReadWriteRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadWriteRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadWriteRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsReadWriteResponse.go b/plc4go/protocols/ads/readwrite/model/AdsReadWriteResponse.go
index 70e9de70b7..1ea60a9af2 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsReadWriteResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsReadWriteResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -157,6 +158,8 @@ func AdsReadWriteResponseParse(ctx context.Context, theBytes []byte) (AdsReadWri
func AdsReadWriteResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsReadWriteResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsReadWriteResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsReadWriteResponse")
}
@@ -214,6 +217,8 @@ func (m *_AdsReadWriteResponse) Serialize() ([]byte, error) {
func (m *_AdsReadWriteResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsReadWriteResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsReadWriteResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsStampHeader.go b/plc4go/protocols/ads/readwrite/model/AdsStampHeader.go
index 67a4e2a206..8a1ae401f3 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsStampHeader.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsStampHeader.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func AdsStampHeaderParse(ctx context.Context, theBytes []byte) (AdsStampHeader,
func AdsStampHeaderParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsStampHeader, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsStampHeader"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsStampHeader")
}
@@ -200,6 +203,8 @@ func (m *_AdsStampHeader) Serialize() ([]byte, error) {
func (m *_AdsStampHeader) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsStampHeader"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsStampHeader")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsSymbolTableEntry.go b/plc4go/protocols/ads/readwrite/model/AdsSymbolTableEntry.go
index a41c213bc9..9b992822ad 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsSymbolTableEntry.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsSymbolTableEntry.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -369,6 +370,8 @@ func AdsSymbolTableEntryParse(ctx context.Context, theBytes []byte) (AdsSymbolTa
func AdsSymbolTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsSymbolTableEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsSymbolTableEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsSymbolTableEntry")
}
@@ -476,7 +479,7 @@ func AdsSymbolTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.Re
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AdsSymbolTableEntry")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -528,7 +531,7 @@ func AdsSymbolTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.Re
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AdsSymbolTableEntry")
}
if reserved != uint16(0x0000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -656,6 +659,8 @@ func (m *_AdsSymbolTableEntry) Serialize() ([]byte, error) {
func (m *_AdsSymbolTableEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsSymbolTableEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsSymbolTableEntry")
}
@@ -755,7 +760,7 @@ func (m *_AdsSymbolTableEntry) SerializeWithWriteBuffer(ctx context.Context, wri
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
@@ -806,7 +811,7 @@ func (m *_AdsSymbolTableEntry) SerializeWithWriteBuffer(ctx context.Context, wri
{
var reserved uint16 = uint16(0x0000)
if m.reservedField1 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsTableSizes.go b/plc4go/protocols/ads/readwrite/model/AdsTableSizes.go
index ae47f4b9fd..8ab5c68e08 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsTableSizes.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsTableSizes.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -154,6 +155,8 @@ func AdsTableSizesParse(ctx context.Context, theBytes []byte) (AdsTableSizes, er
func AdsTableSizesParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTableSizes, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsTableSizes"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsTableSizes")
}
@@ -228,6 +231,8 @@ func (m *_AdsTableSizes) Serialize() ([]byte, error) {
func (m *_AdsTableSizes) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AdsTableSizes"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsTableSizes")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsTransMode.go b/plc4go/protocols/ads/readwrite/model/AdsTransMode.go
index 8b9412653e..508985099e 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsTransMode.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsTransMode.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func AdsTransModeParse(ctx context.Context, theBytes []byte) (AdsTransMode, erro
}
func AdsTransModeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTransMode, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint32("AdsTransMode", 32)
if err != nil {
return 0, errors.Wrap(err, "error reading AdsTransMode")
}
if enum, ok := AdsTransModeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return AdsTransMode(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e AdsTransMode) Serialize() ([]byte, error) {
}
func (e AdsTransMode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint32("AdsTransMode", 32, uint32(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/AdsWriteControlRequest.go b/plc4go/protocols/ads/readwrite/model/AdsWriteControlRequest.go
index 3469f9b1d0..47eec46dcf 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsWriteControlRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsWriteControlRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -168,6 +169,8 @@ func AdsWriteControlRequestParse(ctx context.Context, theBytes []byte) (AdsWrite
func AdsWriteControlRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsWriteControlRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsWriteControlRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsWriteControlRequest")
}
@@ -227,6 +230,8 @@ func (m *_AdsWriteControlRequest) Serialize() ([]byte, error) {
func (m *_AdsWriteControlRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsWriteControlRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsWriteControlRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsWriteControlResponse.go b/plc4go/protocols/ads/readwrite/model/AdsWriteControlResponse.go
index ca6dc960bb..5d374ae8c0 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsWriteControlResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsWriteControlResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func AdsWriteControlResponseParse(ctx context.Context, theBytes []byte) (AdsWrit
func AdsWriteControlResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsWriteControlResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsWriteControlResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsWriteControlResponse")
}
@@ -184,6 +187,8 @@ func (m *_AdsWriteControlResponse) Serialize() ([]byte, error) {
func (m *_AdsWriteControlResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsWriteControlResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsWriteControlResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsWriteRequest.go b/plc4go/protocols/ads/readwrite/model/AdsWriteRequest.go
index 3ae8423583..a4ea79d0a7 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsWriteRequest.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsWriteRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -168,6 +169,8 @@ func AdsWriteRequestParse(ctx context.Context, theBytes []byte) (AdsWriteRequest
func AdsWriteRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsWriteRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsWriteRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsWriteRequest")
}
@@ -227,6 +230,8 @@ func (m *_AdsWriteRequest) Serialize() ([]byte, error) {
func (m *_AdsWriteRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsWriteRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsWriteRequest")
diff --git a/plc4go/protocols/ads/readwrite/model/AdsWriteResponse.go b/plc4go/protocols/ads/readwrite/model/AdsWriteResponse.go
index 09e59d58c0..66de3d1e2e 100644
--- a/plc4go/protocols/ads/readwrite/model/AdsWriteResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/AdsWriteResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func AdsWriteResponseParse(ctx context.Context, theBytes []byte) (AdsWriteRespon
func AdsWriteResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsWriteResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AdsWriteResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AdsWriteResponse")
}
@@ -184,6 +187,8 @@ func (m *_AdsWriteResponse) Serialize() ([]byte, error) {
func (m *_AdsWriteResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("AdsWriteResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AdsWriteResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/AmsNetId.go b/plc4go/protocols/ads/readwrite/model/AmsNetId.go
index 2f38a85b70..55ae018f94 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsNetId.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsNetId.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -153,6 +154,8 @@ func AmsNetIdParse(ctx context.Context, theBytes []byte) (AmsNetId, error) {
func AmsNetIdParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsNetId, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsNetId"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsNetId")
}
@@ -227,6 +230,8 @@ func (m *_AmsNetId) Serialize() ([]byte, error) {
func (m *_AmsNetId) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsNetId"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsNetId")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AmsPacket.go b/plc4go/protocols/ads/readwrite/model/AmsPacket.go
index c2ef94eefe..1f295a4983 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsPacket.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsPacket.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -267,6 +268,8 @@ func AmsPacketParse(ctx context.Context, theBytes []byte) (AmsPacket, error) {
func AmsPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsPacket, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsPacket"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsPacket")
}
@@ -412,7 +415,7 @@ func AmsPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer)
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AmsPacket")
}
if reserved != int8(0x0) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": int8(0x0),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -518,6 +521,8 @@ func (pm *_AmsPacket) SerializeParent(ctx context.Context, writeBuffer utils.Wri
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsPacket"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsPacket")
}
@@ -634,7 +639,7 @@ func (pm *_AmsPacket) SerializeParent(ctx context.Context, writeBuffer utils.Wri
{
var reserved int8 = int8(0x0)
if pm.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": int8(0x0),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/ads/readwrite/model/AmsSerialAcknowledgeFrame.go b/plc4go/protocols/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
index d1e9b5abb7..ce0c1e0b5c 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsSerialAcknowledgeFrame.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -153,6 +154,8 @@ func AmsSerialAcknowledgeFrameParse(ctx context.Context, theBytes []byte) (AmsSe
func AmsSerialAcknowledgeFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialAcknowledgeFrame, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsSerialAcknowledgeFrame"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsSerialAcknowledgeFrame")
}
@@ -227,6 +230,8 @@ func (m *_AmsSerialAcknowledgeFrame) Serialize() ([]byte, error) {
func (m *_AmsSerialAcknowledgeFrame) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsSerialAcknowledgeFrame"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsSerialAcknowledgeFrame")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AmsSerialFrame.go b/plc4go/protocols/ads/readwrite/model/AmsSerialFrame.go
index 2b0762416a..5804b24104 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsSerialFrame.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsSerialFrame.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -163,6 +164,8 @@ func AmsSerialFrameParse(ctx context.Context, theBytes []byte) (AmsSerialFrame,
func AmsSerialFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialFrame, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsSerialFrame"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsSerialFrame")
}
@@ -251,6 +254,8 @@ func (m *_AmsSerialFrame) Serialize() ([]byte, error) {
func (m *_AmsSerialFrame) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsSerialFrame"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsSerialFrame")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AmsSerialResetFrame.go b/plc4go/protocols/ads/readwrite/model/AmsSerialResetFrame.go
index 719d35a814..988e1aee95 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsSerialResetFrame.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsSerialResetFrame.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -153,6 +154,8 @@ func AmsSerialResetFrameParse(ctx context.Context, theBytes []byte) (AmsSerialRe
func AmsSerialResetFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialResetFrame, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsSerialResetFrame"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsSerialResetFrame")
}
@@ -227,6 +230,8 @@ func (m *_AmsSerialResetFrame) Serialize() ([]byte, error) {
func (m *_AmsSerialResetFrame) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsSerialResetFrame"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsSerialResetFrame")
}
diff --git a/plc4go/protocols/ads/readwrite/model/AmsTCPPacket.go b/plc4go/protocols/ads/readwrite/model/AmsTCPPacket.go
index 4da7deafde..f8e1a342dc 100644
--- a/plc4go/protocols/ads/readwrite/model/AmsTCPPacket.go
+++ b/plc4go/protocols/ads/readwrite/model/AmsTCPPacket.go
@@ -25,6 +25,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -112,6 +113,8 @@ func AmsTCPPacketParse(ctx context.Context, theBytes []byte) (AmsTCPPacket, erro
func AmsTCPPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsTCPPacket, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("AmsTCPPacket"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for AmsTCPPacket")
}
@@ -126,7 +129,7 @@ func AmsTCPPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffe
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of AmsTCPPacket")
}
if reserved != uint16(0x0000) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -177,6 +180,8 @@ func (m *_AmsTCPPacket) Serialize() ([]byte, error) {
func (m *_AmsTCPPacket) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("AmsTCPPacket"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for AmsTCPPacket")
}
@@ -185,7 +190,7 @@ func (m *_AmsTCPPacket) SerializeWithWriteBuffer(ctx context.Context, writeBuffe
{
var reserved uint16 = uint16(0x0000)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint16(0x0000),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/ads/readwrite/model/CommandId.go b/plc4go/protocols/ads/readwrite/model/CommandId.go
index 04377618a3..e7731bf2cc 100644
--- a/plc4go/protocols/ads/readwrite/model/CommandId.go
+++ b/plc4go/protocols/ads/readwrite/model/CommandId.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -152,12 +155,14 @@ func CommandIdParse(ctx context.Context, theBytes []byte) (CommandId, error) {
}
func CommandIdParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CommandId, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("CommandId", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading CommandId")
}
if enum, ok := CommandIdByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return CommandId(val), nil
} else {
return enum, nil
@@ -173,6 +178,8 @@ func (e CommandId) Serialize() ([]byte, error) {
}
func (e CommandId) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("CommandId", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/DataItem.go b/plc4go/protocols/ads/readwrite/model/DataItem.go
index baccf06f25..42e49f2a25 100644
--- a/plc4go/protocols/ads/readwrite/model/DataItem.go
+++ b/plc4go/protocols/ads/readwrite/model/DataItem.go
@@ -25,6 +25,7 @@ import (
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/apache/plc4x/plc4go/spi/values"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -34,6 +35,8 @@ func DataItemParse(ctx context.Context, theBytes []byte, plcValueType PlcValueTy
}
func DataItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, plcValueType PlcValueType, stringLength int32) (api.PlcValue, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
readBuffer.PullContext("DataItem")
switch {
case plcValueType == PlcValueType_BOOL: // BOOL
@@ -281,6 +284,8 @@ func DataItemSerialize(value api.PlcValue, plcValueType PlcValueType, stringLeng
}
func DataItemSerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue, plcValueType PlcValueType, stringLength int32) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
m := struct {
PlcValueType PlcValueType
StringLength int32
diff --git a/plc4go/protocols/ads/readwrite/model/DefaultAmsPorts.go b/plc4go/protocols/ads/readwrite/model/DefaultAmsPorts.go
index efee54f7b6..4dd787e3af 100644
--- a/plc4go/protocols/ads/readwrite/model/DefaultAmsPorts.go
+++ b/plc4go/protocols/ads/readwrite/model/DefaultAmsPorts.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -422,12 +425,14 @@ func DefaultAmsPortsParse(ctx context.Context, theBytes []byte) (DefaultAmsPorts
}
func DefaultAmsPortsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DefaultAmsPorts, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("DefaultAmsPorts", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading DefaultAmsPorts")
}
if enum, ok := DefaultAmsPortsByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return DefaultAmsPorts(val), nil
} else {
return enum, nil
@@ -443,6 +448,8 @@ func (e DefaultAmsPorts) Serialize() ([]byte, error) {
}
func (e DefaultAmsPorts) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("DefaultAmsPorts", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/ErrorResponse.go b/plc4go/protocols/ads/readwrite/model/ErrorResponse.go
index 91cb838f91..ca0ad86cda 100644
--- a/plc4go/protocols/ads/readwrite/model/ErrorResponse.go
+++ b/plc4go/protocols/ads/readwrite/model/ErrorResponse.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -120,6 +121,8 @@ func ErrorResponseParse(ctx context.Context, theBytes []byte) (ErrorResponse, er
func ErrorResponseParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ErrorResponse, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("ErrorResponse"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for ErrorResponse")
}
@@ -149,6 +152,8 @@ func (m *_ErrorResponse) Serialize() ([]byte, error) {
func (m *_ErrorResponse) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("ErrorResponse"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for ErrorResponse")
diff --git a/plc4go/protocols/ads/readwrite/model/PlcValueType.go b/plc4go/protocols/ads/readwrite/model/PlcValueType.go
index 0dc6919778..108af362ea 100644
--- a/plc4go/protocols/ads/readwrite/model/PlcValueType.go
+++ b/plc4go/protocols/ads/readwrite/model/PlcValueType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -278,12 +281,14 @@ func PlcValueTypeParse(ctx context.Context, theBytes []byte) (PlcValueType, erro
}
func PlcValueTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (PlcValueType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("PlcValueType", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading PlcValueType")
}
if enum, ok := PlcValueTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return PlcValueType(val), nil
} else {
return enum, nil
@@ -299,6 +304,8 @@ func (e PlcValueType) Serialize() ([]byte, error) {
}
func (e PlcValueType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("PlcValueType", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/ReservedIndexGroups.go b/plc4go/protocols/ads/readwrite/model/ReservedIndexGroups.go
index 34a73d2319..c714452f27 100644
--- a/plc4go/protocols/ads/readwrite/model/ReservedIndexGroups.go
+++ b/plc4go/protocols/ads/readwrite/model/ReservedIndexGroups.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -314,12 +317,14 @@ func ReservedIndexGroupsParse(ctx context.Context, theBytes []byte) (ReservedInd
}
func ReservedIndexGroupsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReservedIndexGroups, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint32("ReservedIndexGroups", 32)
if err != nil {
return 0, errors.Wrap(err, "error reading ReservedIndexGroups")
}
if enum, ok := ReservedIndexGroupsByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return ReservedIndexGroups(val), nil
} else {
return enum, nil
@@ -335,6 +340,8 @@ func (e ReservedIndexGroups) Serialize() ([]byte, error) {
}
func (e ReservedIndexGroups) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint32("ReservedIndexGroups", 32, uint32(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/ReturnCode.go b/plc4go/protocols/ads/readwrite/model/ReturnCode.go
index 6263f5188c..477ce0ac28 100644
--- a/plc4go/protocols/ads/readwrite/model/ReturnCode.go
+++ b/plc4go/protocols/ads/readwrite/model/ReturnCode.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -824,12 +827,14 @@ func ReturnCodeParse(ctx context.Context, theBytes []byte) (ReturnCode, error) {
}
func ReturnCodeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReturnCode, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint32("ReturnCode", 32)
if err != nil {
return 0, errors.Wrap(err, "error reading ReturnCode")
}
if enum, ok := ReturnCodeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return ReturnCode(val), nil
} else {
return enum, nil
@@ -845,6 +850,8 @@ func (e ReturnCode) Serialize() ([]byte, error) {
}
func (e ReturnCode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint32("ReturnCode", 32, uint32(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/ads/readwrite/model/plc4x_common.go b/plc4go/protocols/ads/readwrite/model/plc4x_common.go
index d2d66e8bdd..8026ad9813 100644
--- a/plc4go/protocols/ads/readwrite/model/plc4x_common.go
+++ b/plc4go/protocols/ads/readwrite/model/plc4x_common.go
@@ -19,9 +19,4 @@
package model
-import "github.com/rs/zerolog/log"
-
// Code generated by code-generation. DO NOT EDIT.
-
-// Plc4xModelLog is the Logger used by the Parse/Serialize methods
-var Plc4xModelLog = &log.Logger
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDU.go b/plc4go/protocols/bacnetip/readwrite/model/APDU.go
index 629e0ae1e0..9b19d7df47 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDU.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDU.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -111,6 +112,8 @@ func APDUParse(ctx context.Context, theBytes []byte, apduLength uint16) (APDU, e
func APDUParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDU, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDU"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDU")
}
@@ -181,6 +184,8 @@ func (pm *_APDU) SerializeParent(ctx context.Context, writeBuffer utils.WriteBuf
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("APDU"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDU")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUAbort.go b/plc4go/protocols/bacnetip/readwrite/model/APDUAbort.go
index b71085e6f6..de6a895c86 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUAbort.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUAbort.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -157,6 +158,8 @@ func APDUAbortParse(ctx context.Context, theBytes []byte, apduLength uint16) (AP
func APDUAbortParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUAbort, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUAbort"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUAbort")
}
@@ -171,7 +174,7 @@ func APDUAbortParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer,
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUAbort")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -236,6 +239,8 @@ func (m *_APDUAbort) Serialize() ([]byte, error) {
func (m *_APDUAbort) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUAbort"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUAbort")
@@ -245,7 +250,7 @@ func (m *_APDUAbort) SerializeWithWriteBuffer(ctx context.Context, writeBuffer u
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUComplexAck.go b/plc4go/protocols/bacnetip/readwrite/model/APDUComplexAck.go
index 09dde4802e..1125a9791e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUComplexAck.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUComplexAck.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -268,6 +269,8 @@ func APDUComplexAckParse(ctx context.Context, theBytes []byte, apduLength uint16
func APDUComplexAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUComplexAck, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUComplexAck"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUComplexAck")
}
@@ -296,7 +299,7 @@ func APDUComplexAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuf
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUComplexAck")
}
if reserved != uint8(0) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -347,7 +350,7 @@ func APDUComplexAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuf
_val, _err := BACnetServiceAckParseWithBuffer(ctx, readBuffer, uint32(apduLength)-uint32(apduHeaderReduction))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'serviceAck' field of APDUComplexAck")
@@ -427,6 +430,8 @@ func (m *_APDUComplexAck) Serialize() ([]byte, error) {
func (m *_APDUComplexAck) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUComplexAck"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUComplexAck")
@@ -450,7 +455,7 @@ func (m *_APDUComplexAck) SerializeWithWriteBuffer(ctx context.Context, writeBuf
{
var reserved uint8 = uint8(0)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUConfirmedRequest.go b/plc4go/protocols/bacnetip/readwrite/model/APDUConfirmedRequest.go
index 520c4b1495..a85af29bfa 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUConfirmedRequest.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUConfirmedRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -301,6 +302,8 @@ func APDUConfirmedRequestParse(ctx context.Context, theBytes []byte, apduLength
func APDUConfirmedRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUConfirmedRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUConfirmedRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUConfirmedRequest")
}
@@ -336,7 +339,7 @@ func APDUConfirmedRequestParseWithBuffer(ctx context.Context, readBuffer utils.R
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUConfirmedRequest")
}
if reserved != uint8(0) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -413,7 +416,7 @@ func APDUConfirmedRequestParseWithBuffer(ctx context.Context, readBuffer utils.R
_val, _err := BACnetConfirmedServiceRequestParseWithBuffer(ctx, readBuffer, uint32(apduLength)-uint32(apduHeaderReduction))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'serviceRequest' field of APDUConfirmedRequest")
@@ -496,6 +499,8 @@ func (m *_APDUConfirmedRequest) Serialize() ([]byte, error) {
func (m *_APDUConfirmedRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUConfirmedRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUConfirmedRequest")
@@ -526,7 +531,7 @@ func (m *_APDUConfirmedRequest) SerializeWithWriteBuffer(ctx context.Context, wr
{
var reserved uint8 = uint8(0)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUError.go b/plc4go/protocols/bacnetip/readwrite/model/APDUError.go
index 7b96c45ae4..1ae544a31b 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUError.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUError.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -157,6 +158,8 @@ func APDUErrorParse(ctx context.Context, theBytes []byte, apduLength uint16) (AP
func APDUErrorParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUError, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUError"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUError")
}
@@ -171,7 +174,7 @@ func APDUErrorParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer,
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUError")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -242,6 +245,8 @@ func (m *_APDUError) Serialize() ([]byte, error) {
func (m *_APDUError) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUError"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUError")
@@ -251,7 +256,7 @@ func (m *_APDUError) SerializeWithWriteBuffer(ctx context.Context, writeBuffer u
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUReject.go b/plc4go/protocols/bacnetip/readwrite/model/APDUReject.go
index 5074bc14d0..ed9d3d9c05 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUReject.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUReject.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func APDURejectParse(ctx context.Context, theBytes []byte, apduLength uint16) (A
func APDURejectParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUReject, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUReject"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUReject")
}
@@ -160,7 +163,7 @@ func APDURejectParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer,
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUReject")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -217,6 +220,8 @@ func (m *_APDUReject) Serialize() ([]byte, error) {
func (m *_APDUReject) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUReject"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUReject")
@@ -226,7 +231,7 @@ func (m *_APDUReject) SerializeWithWriteBuffer(ctx context.Context, writeBuffer
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUSegmentAck.go b/plc4go/protocols/bacnetip/readwrite/model/APDUSegmentAck.go
index 280b76c333..24a30911c5 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUSegmentAck.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUSegmentAck.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -179,6 +180,8 @@ func APDUSegmentAckParse(ctx context.Context, theBytes []byte, apduLength uint16
func APDUSegmentAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUSegmentAck, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUSegmentAck"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUSegmentAck")
}
@@ -193,7 +196,7 @@ func APDUSegmentAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuf
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUSegmentAck")
}
if reserved != uint8(0x00) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -268,6 +271,8 @@ func (m *_APDUSegmentAck) Serialize() ([]byte, error) {
func (m *_APDUSegmentAck) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUSegmentAck"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUSegmentAck")
@@ -277,7 +282,7 @@ func (m *_APDUSegmentAck) SerializeWithWriteBuffer(ctx context.Context, writeBuf
{
var reserved uint8 = uint8(0x00)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0x00),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUSimpleAck.go b/plc4go/protocols/bacnetip/readwrite/model/APDUSimpleAck.go
index cf2a7ad155..67b9d93ebf 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUSimpleAck.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUSimpleAck.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func APDUSimpleAckParse(ctx context.Context, theBytes []byte, apduLength uint16)
func APDUSimpleAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUSimpleAck, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUSimpleAck"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUSimpleAck")
}
@@ -160,7 +163,7 @@ func APDUSimpleAckParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuff
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUSimpleAck")
}
if reserved != uint8(0) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -217,6 +220,8 @@ func (m *_APDUSimpleAck) Serialize() ([]byte, error) {
func (m *_APDUSimpleAck) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUSimpleAck"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUSimpleAck")
@@ -226,7 +231,7 @@ func (m *_APDUSimpleAck) SerializeWithWriteBuffer(ctx context.Context, writeBuff
{
var reserved uint8 = uint8(0)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUUnconfirmedRequest.go b/plc4go/protocols/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
index ba582ef052..96b06b02a3 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUUnconfirmedRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func APDUUnconfirmedRequestParse(ctx context.Context, theBytes []byte, apduLengt
func APDUUnconfirmedRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUUnconfirmedRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUUnconfirmedRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUUnconfirmedRequest")
}
@@ -149,7 +152,7 @@ func APDUUnconfirmedRequestParseWithBuffer(ctx context.Context, readBuffer utils
return nil, errors.Wrap(_err, "Error parsing 'reserved' field of APDUUnconfirmedRequest")
}
if reserved != uint8(0) {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Got unexpected response for reserved field.")
@@ -198,6 +201,8 @@ func (m *_APDUUnconfirmedRequest) Serialize() ([]byte, error) {
func (m *_APDUUnconfirmedRequest) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUUnconfirmedRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUUnconfirmedRequest")
@@ -207,7 +212,7 @@ func (m *_APDUUnconfirmedRequest) SerializeWithWriteBuffer(ctx context.Context,
{
var reserved uint8 = uint8(0)
if m.reservedField0 != nil {
- Plc4xModelLog.Info().Fields(map[string]any{
+ log.Info().Fields(map[string]any{
"expected value": uint8(0),
"got value": reserved,
}).Msg("Overriding reserved field with unexpected value.")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/APDUUnknown.go b/plc4go/protocols/bacnetip/readwrite/model/APDUUnknown.go
index 7a26461bea..c376a53a8e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/APDUUnknown.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/APDUUnknown.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -143,6 +144,8 @@ func APDUUnknownParse(ctx context.Context, theBytes []byte, apduLength uint16) (
func APDUUnknownParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, apduLength uint16) (APDUUnknown, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("APDUUnknown"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for APDUUnknown")
}
@@ -189,6 +192,8 @@ func (m *_APDUUnknown) Serialize() ([]byte, error) {
func (m *_APDUUnknown) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("APDUUnknown"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for APDUUnknown")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/ApduType.go b/plc4go/protocols/bacnetip/readwrite/model/ApduType.go
index 532e4c031a..2e59d382a3 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/ApduType.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/ApduType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -188,12 +191,14 @@ func ApduTypeParse(ctx context.Context, theBytes []byte) (ApduType, error) {
}
func ApduTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ApduType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("ApduType", 4)
if err != nil {
return 0, errors.Wrap(err, "error reading ApduType")
}
if enum, ok := ApduTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return ApduType(val), nil
} else {
return enum, nil
@@ -209,6 +214,8 @@ func (e ApduType) Serialize() ([]byte, error) {
}
func (e ApduType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("ApduType", 4, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReason.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReason.go
index 7be1962be0..09b5565f48 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReason.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReason.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -170,12 +173,14 @@ func BACnetAbortReasonParse(ctx context.Context, theBytes []byte) (BACnetAbortRe
}
func BACnetAbortReasonParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAbortReason, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAbortReason", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAbortReason")
}
if enum, ok := BACnetAbortReasonByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAbortReason(val), nil
} else {
return enum, nil
@@ -191,6 +196,8 @@ func (e BACnetAbortReason) Serialize() ([]byte, error) {
}
func (e BACnetAbortReason) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAbortReason", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReasonTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReasonTagged.go
index 9cd0e98b07..9d48aac3e9 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReasonTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAbortReasonTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -135,6 +136,8 @@ func BACnetAbortReasonTaggedParse(ctx context.Context, theBytes []byte, actualLe
func BACnetAbortReasonTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, actualLength uint32) (BACnetAbortReasonTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAbortReasonTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAbortReasonTagged")
}
@@ -189,6 +192,8 @@ func (m *_BACnetAbortReasonTagged) Serialize() ([]byte, error) {
func (m *_BACnetAbortReasonTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAbortReasonTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAbortReasonTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisable.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisable.go
index 5162a2e134..ba2749e757 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisable.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisable.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func BACnetAccessAuthenticationFactorDisableParse(ctx context.Context, theBytes
}
func BACnetAccessAuthenticationFactorDisableParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessAuthenticationFactorDisable, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessAuthenticationFactorDisable", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessAuthenticationFactorDisable")
}
if enum, ok := BACnetAccessAuthenticationFactorDisableByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessAuthenticationFactorDisable(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e BACnetAccessAuthenticationFactorDisable) Serialize() ([]byte, error) {
}
func (e BACnetAccessAuthenticationFactorDisable) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessAuthenticationFactorDisable", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisableTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisableTagged.go
index 2ae75a5e19..b28c1863fc 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisableTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessAuthenticationFactorDisableTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessAuthenticationFactorDisableTaggedParse(ctx context.Context, the
func BACnetAccessAuthenticationFactorDisableTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessAuthenticationFactorDisableTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessAuthenticationFactorDisableTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessAuthenticationFactorDisableTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessAuthenticationFactorDisableTagged) Serialize() ([]byte, er
func (m *_BACnetAccessAuthenticationFactorDisableTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessAuthenticationFactorDisableTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessAuthenticationFactorDisableTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisable.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisable.go
index abb5a7019c..953112a338 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisable.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisable.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -122,12 +125,14 @@ func BACnetAccessCredentialDisableParse(ctx context.Context, theBytes []byte) (B
}
func BACnetAccessCredentialDisableParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessCredentialDisable, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessCredentialDisable", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessCredentialDisable")
}
if enum, ok := BACnetAccessCredentialDisableByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessCredentialDisable(val), nil
} else {
return enum, nil
@@ -143,6 +148,8 @@ func (e BACnetAccessCredentialDisable) Serialize() ([]byte, error) {
}
func (e BACnetAccessCredentialDisable) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessCredentialDisable", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReason.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReason.go
index 8e6b8faebb..5c4b04f2d0 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReason.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReason.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -158,12 +161,14 @@ func BACnetAccessCredentialDisableReasonParse(ctx context.Context, theBytes []by
}
func BACnetAccessCredentialDisableReasonParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessCredentialDisableReason, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessCredentialDisableReason", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessCredentialDisableReason")
}
if enum, ok := BACnetAccessCredentialDisableReasonByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessCredentialDisableReason(val), nil
} else {
return enum, nil
@@ -179,6 +184,8 @@ func (e BACnetAccessCredentialDisableReason) Serialize() ([]byte, error) {
}
func (e BACnetAccessCredentialDisableReason) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessCredentialDisableReason", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReasonTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReasonTagged.go
index e44caa9357..93d26afc41 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReasonTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableReasonTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessCredentialDisableReasonTaggedParse(ctx context.Context, theByte
func BACnetAccessCredentialDisableReasonTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessCredentialDisableReasonTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessCredentialDisableReasonTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessCredentialDisableReasonTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessCredentialDisableReasonTagged) Serialize() ([]byte, error)
func (m *_BACnetAccessCredentialDisableReasonTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessCredentialDisableReasonTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessCredentialDisableReasonTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableTagged.go
index 9838a245c7..115f3b8988 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessCredentialDisableTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessCredentialDisableTaggedParse(ctx context.Context, theBytes []by
func BACnetAccessCredentialDisableTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessCredentialDisableTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessCredentialDisableTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessCredentialDisableTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessCredentialDisableTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessCredentialDisableTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessCredentialDisableTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessCredentialDisableTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEvent.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEvent.go
index 4dbc96f87b..2b7f1e6afc 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEvent.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEvent.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -422,12 +425,14 @@ func BACnetAccessEventParse(ctx context.Context, theBytes []byte) (BACnetAccessE
}
func BACnetAccessEventParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessEvent, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessEvent", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessEvent")
}
if enum, ok := BACnetAccessEventByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessEvent(val), nil
} else {
return enum, nil
@@ -443,6 +448,8 @@ func (e BACnetAccessEvent) Serialize() ([]byte, error) {
}
func (e BACnetAccessEvent) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessEvent", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEventTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEventTagged.go
index 71dca5c069..5717607bc3 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEventTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessEventTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessEventTaggedParse(ctx context.Context, theBytes []byte, tagNumbe
func BACnetAccessEventTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessEventTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessEventTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessEventTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessEventTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessEventTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessEventTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessEventTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackMode.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackMode.go
index 663c256c98..5aa1c47fe4 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackMode.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackMode.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -110,12 +113,14 @@ func BACnetAccessPassbackModeParse(ctx context.Context, theBytes []byte) (BACnet
}
func BACnetAccessPassbackModeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessPassbackMode, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAccessPassbackMode", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessPassbackMode")
}
if enum, ok := BACnetAccessPassbackModeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessPassbackMode(val), nil
} else {
return enum, nil
@@ -131,6 +136,8 @@ func (e BACnetAccessPassbackMode) Serialize() ([]byte, error) {
}
func (e BACnetAccessPassbackMode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAccessPassbackMode", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackModeTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackModeTagged.go
index 5da0bd6a89..3a84bcbf81 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackModeTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessPassbackModeTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAccessPassbackModeTaggedParse(ctx context.Context, theBytes []byte, t
func BACnetAccessPassbackModeTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessPassbackModeTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessPassbackModeTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessPassbackModeTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAccessPassbackModeTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessPassbackModeTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessPassbackModeTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessPassbackModeTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRule.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRule.go
index 310e769211..68a872d1c9 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRule.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRule.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -148,6 +149,8 @@ func BACnetAccessRuleParse(ctx context.Context, theBytes []byte) (BACnetAccessRu
func BACnetAccessRuleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessRule, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessRule"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessRule")
}
@@ -177,7 +180,7 @@ func BACnetAccessRuleParseWithBuffer(ctx context.Context, readBuffer utils.ReadB
_val, _err := BACnetDeviceObjectPropertyReferenceEnclosedParseWithBuffer(ctx, readBuffer, uint8(1))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'timeRange' field of BACnetAccessRule")
@@ -212,7 +215,7 @@ func BACnetAccessRuleParseWithBuffer(ctx context.Context, readBuffer utils.ReadB
_val, _err := BACnetDeviceObjectReferenceEnclosedParseWithBuffer(ctx, readBuffer, uint8(3))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'location' field of BACnetAccessRule")
@@ -262,6 +265,8 @@ func (m *_BACnetAccessRule) Serialize() ([]byte, error) {
func (m *_BACnetAccessRule) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessRule"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessRule")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifier.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifier.go
index ec0f84ed52..d7311e3c3e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifier.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifier.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -104,12 +107,14 @@ func BACnetAccessRuleLocationSpecifierParse(ctx context.Context, theBytes []byte
}
func BACnetAccessRuleLocationSpecifierParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessRuleLocationSpecifier, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAccessRuleLocationSpecifier", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessRuleLocationSpecifier")
}
if enum, ok := BACnetAccessRuleLocationSpecifierByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessRuleLocationSpecifier(val), nil
} else {
return enum, nil
@@ -125,6 +130,8 @@ func (e BACnetAccessRuleLocationSpecifier) Serialize() ([]byte, error) {
}
func (e BACnetAccessRuleLocationSpecifier) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAccessRuleLocationSpecifier", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifierTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifierTagged.go
index 6591a0ec25..5557e6b155 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifierTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleLocationSpecifierTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAccessRuleLocationSpecifierTaggedParse(ctx context.Context, theBytes
func BACnetAccessRuleLocationSpecifierTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessRuleLocationSpecifierTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessRuleLocationSpecifierTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessRuleLocationSpecifierTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAccessRuleLocationSpecifierTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessRuleLocationSpecifierTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessRuleLocationSpecifierTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessRuleLocationSpecifierTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifier.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifier.go
index 06eba90b54..b60087facb 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifier.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifier.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -104,12 +107,14 @@ func BACnetAccessRuleTimeRangeSpecifierParse(ctx context.Context, theBytes []byt
}
func BACnetAccessRuleTimeRangeSpecifierParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessRuleTimeRangeSpecifier, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAccessRuleTimeRangeSpecifier", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessRuleTimeRangeSpecifier")
}
if enum, ok := BACnetAccessRuleTimeRangeSpecifierByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessRuleTimeRangeSpecifier(val), nil
} else {
return enum, nil
@@ -125,6 +130,8 @@ func (e BACnetAccessRuleTimeRangeSpecifier) Serialize() ([]byte, error) {
}
func (e BACnetAccessRuleTimeRangeSpecifier) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAccessRuleTimeRangeSpecifier", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifierTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifierTagged.go
index aef8db9540..24775d08ae 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifierTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessRuleTimeRangeSpecifierTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAccessRuleTimeRangeSpecifierTaggedParse(ctx context.Context, theBytes
func BACnetAccessRuleTimeRangeSpecifierTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessRuleTimeRangeSpecifierTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessRuleTimeRangeSpecifierTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessRuleTimeRangeSpecifierTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAccessRuleTimeRangeSpecifierTagged) Serialize() ([]byte, error)
func (m *_BACnetAccessRuleTimeRangeSpecifierTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessRuleTimeRangeSpecifierTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessRuleTimeRangeSpecifierTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessThreatLevel.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessThreatLevel.go
index 7a35b47f3f..3976623152 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessThreatLevel.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessThreatLevel.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -103,6 +104,8 @@ func BACnetAccessThreatLevelParse(ctx context.Context, theBytes []byte) (BACnetA
func BACnetAccessThreatLevelParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessThreatLevel, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessThreatLevel"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessThreatLevel")
}
@@ -143,6 +146,8 @@ func (m *_BACnetAccessThreatLevel) Serialize() ([]byte, error) {
func (m *_BACnetAccessThreatLevel) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessThreatLevel"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessThreatLevel")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserType.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserType.go
index daf5533001..b62f2d169c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserType.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -116,12 +119,14 @@ func BACnetAccessUserTypeParse(ctx context.Context, theBytes []byte) (BACnetAcce
}
func BACnetAccessUserTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessUserType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessUserType", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessUserType")
}
if enum, ok := BACnetAccessUserTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessUserType(val), nil
} else {
return enum, nil
@@ -137,6 +142,8 @@ func (e BACnetAccessUserType) Serialize() ([]byte, error) {
}
func (e BACnetAccessUserType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessUserType", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserTypeTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserTypeTagged.go
index 04d3526400..216324ceed 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserTypeTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessUserTypeTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessUserTypeTaggedParse(ctx context.Context, theBytes []byte, tagNu
func BACnetAccessUserTypeTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessUserTypeTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessUserTypeTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessUserTypeTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessUserTypeTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessUserTypeTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessUserTypeTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessUserTypeTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyState.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyState.go
index f7a1e0f0ad..81e2713f4e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyState.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyState.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -140,12 +143,14 @@ func BACnetAccessZoneOccupancyStateParse(ctx context.Context, theBytes []byte) (
}
func BACnetAccessZoneOccupancyStateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccessZoneOccupancyState, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAccessZoneOccupancyState", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccessZoneOccupancyState")
}
if enum, ok := BACnetAccessZoneOccupancyStateByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccessZoneOccupancyState(val), nil
} else {
return enum, nil
@@ -161,6 +166,8 @@ func (e BACnetAccessZoneOccupancyState) Serialize() ([]byte, error) {
}
func (e BACnetAccessZoneOccupancyState) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAccessZoneOccupancyState", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyStateTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyStateTagged.go
index 559d797b48..d2bfc0c458 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyStateTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccessZoneOccupancyStateTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAccessZoneOccupancyStateTaggedParse(ctx context.Context, theBytes []b
func BACnetAccessZoneOccupancyStateTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccessZoneOccupancyStateTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccessZoneOccupancyStateTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccessZoneOccupancyStateTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAccessZoneOccupancyStateTagged) Serialize() ([]byte, error) {
func (m *_BACnetAccessZoneOccupancyStateTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccessZoneOccupancyStateTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccessZoneOccupancyStateTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecord.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecord.go
index 9191cf5376..35f0e63185 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecord.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecord.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -133,6 +134,8 @@ func BACnetAccumulatorRecordParse(ctx context.Context, theBytes []byte) (BACnetA
func BACnetAccumulatorRecordParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccumulatorRecord, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccumulatorRecord"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccumulatorRecord")
}
@@ -215,6 +218,8 @@ func (m *_BACnetAccumulatorRecord) Serialize() ([]byte, error) {
func (m *_BACnetAccumulatorRecord) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccumulatorRecord"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccumulatorRecord")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatus.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatus.go
index 44f6912f49..8d95686e19 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatus.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatus.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -122,12 +125,14 @@ func BACnetAccumulatorRecordAccumulatorStatusParse(ctx context.Context, theBytes
}
func BACnetAccumulatorRecordAccumulatorStatusParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAccumulatorRecordAccumulatorStatus, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAccumulatorRecordAccumulatorStatus", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAccumulatorRecordAccumulatorStatus")
}
if enum, ok := BACnetAccumulatorRecordAccumulatorStatusByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAccumulatorRecordAccumulatorStatus(val), nil
} else {
return enum, nil
@@ -143,6 +148,8 @@ func (e BACnetAccumulatorRecordAccumulatorStatus) Serialize() ([]byte, error) {
}
func (e BACnetAccumulatorRecordAccumulatorStatus) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAccumulatorRecordAccumulatorStatus", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatusTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatusTagged.go
index 276c75cfea..6e8f6e7be5 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatusTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAccumulatorRecordAccumulatorStatusTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAccumulatorRecordAccumulatorStatusTaggedParse(ctx context.Context, th
func BACnetAccumulatorRecordAccumulatorStatusTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAccumulatorRecordAccumulatorStatusTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAccumulatorRecordAccumulatorStatusTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAccumulatorRecordAccumulatorStatusTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAccumulatorRecordAccumulatorStatusTagged) Serialize() ([]byte, e
func (m *_BACnetAccumulatorRecordAccumulatorStatusTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAccumulatorRecordAccumulatorStatusTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAccumulatorRecordAccumulatorStatusTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAction.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAction.go
index db7e4298b2..794afeea3f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAction.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAction.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -104,12 +107,14 @@ func BACnetActionParse(ctx context.Context, theBytes []byte) (BACnetAction, erro
}
func BACnetActionParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAction, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAction", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAction")
}
if enum, ok := BACnetActionByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAction(val), nil
} else {
return enum, nil
@@ -125,6 +130,8 @@ func (e BACnetAction) Serialize() ([]byte, error) {
}
func (e BACnetAction) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAction", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionCommand.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionCommand.go
index 820ccd93be..b346620029 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionCommand.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionCommand.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -194,6 +195,8 @@ func BACnetActionCommandParse(ctx context.Context, theBytes []byte) (BACnetActio
func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetActionCommand, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetActionCommand"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetActionCommand")
}
@@ -210,7 +213,7 @@ func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.Re
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(0), BACnetDataType_BACNET_OBJECT_IDENTIFIER)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'deviceIdentifier' field of BACnetActionCommand")
@@ -258,7 +261,7 @@ func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.Re
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(3), BACnetDataType_UNSIGNED_INTEGER)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'arrayIndex' field of BACnetActionCommand")
@@ -280,7 +283,7 @@ func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.Re
_val, _err := BACnetConstructedDataParseWithBuffer(ctx, readBuffer, uint8(4), objectIdentifier.GetObjectType(), propertyIdentifier.GetValue(), (CastBACnetTagPayloadUnsignedInteger(utils.InlineIf(bool((arrayIndex) != (nil)), func() any { return CastBACnetTagPayloadUnsignedInteger((arrayIndex).GetPayload()) }, func() any { return CastBACnetTagPayloadUnsignedInteger(nil) }))))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'propertyValue' field of BACnetActionCommand")
@@ -302,7 +305,7 @@ func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.Re
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(5), BACnetDataType_UNSIGNED_INTEGER)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'priority' field of BACnetActionCommand")
@@ -324,7 +327,7 @@ func BACnetActionCommandParseWithBuffer(ctx context.Context, readBuffer utils.Re
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(6), BACnetDataType_BOOLEAN)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'postDelay' field of BACnetActionCommand")
@@ -391,6 +394,8 @@ func (m *_BACnetActionCommand) Serialize() ([]byte, error) {
func (m *_BACnetActionCommand) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetActionCommand"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetActionCommand")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionList.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionList.go
index 45887efde6..ea6f53dbeb 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionList.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionList.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -127,6 +128,8 @@ func BACnetActionListParse(ctx context.Context, theBytes []byte) (BACnetActionLi
func BACnetActionListParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetActionList, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetActionList"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetActionList")
}
@@ -201,6 +204,8 @@ func (m *_BACnetActionList) Serialize() ([]byte, error) {
func (m *_BACnetActionList) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetActionList"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetActionList")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionTagged.go
index c5d5b4cfd8..034a1c6de5 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetActionTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetActionTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetActionTaggedParse(ctx context.Context, theBytes []byte, tagNumber uin
func BACnetActionTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetActionTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetActionTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetActionTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetActionTagged) Serialize() ([]byte, error) {
func (m *_BACnetActionTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetActionTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetActionTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddress.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddress.go
index cea40d9607..f6a5c6acd6 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddress.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddress.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -152,6 +153,8 @@ func BACnetAddressParse(ctx context.Context, theBytes []byte) (BACnetAddress, er
func BACnetAddressParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAddress, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAddress"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAddress")
}
@@ -221,6 +224,8 @@ func (m *_BACnetAddress) Serialize() ([]byte, error) {
func (m *_BACnetAddress) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAddress"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAddress")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressBinding.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressBinding.go
index f42db861ae..8fa613ae1e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressBinding.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressBinding.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -113,6 +114,8 @@ func BACnetAddressBindingParse(ctx context.Context, theBytes []byte) (BACnetAddr
func BACnetAddressBindingParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAddressBinding, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAddressBinding"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAddressBinding")
}
@@ -167,6 +170,8 @@ func (m *_BACnetAddressBinding) Serialize() ([]byte, error) {
func (m *_BACnetAddressBinding) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAddressBinding"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAddressBinding")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressEnclosed.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressEnclosed.go
index 767c427883..fdd1561dd0 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressEnclosed.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAddressEnclosed.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -126,6 +127,8 @@ func BACnetAddressEnclosedParse(ctx context.Context, theBytes []byte, tagNumber
func BACnetAddressEnclosedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetAddressEnclosed, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAddressEnclosed"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAddressEnclosed")
}
@@ -195,6 +198,8 @@ func (m *_BACnetAddressEnclosed) Serialize() ([]byte, error) {
func (m *_BACnetAddressEnclosed) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAddressEnclosed"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAddressEnclosed")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTag.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTag.go
index 9930c4782f..d7aafc5749 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTag.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTag.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -153,6 +154,8 @@ func BACnetApplicationTagParse(ctx context.Context, theBytes []byte) (BACnetAppl
func BACnetApplicationTagParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTag, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTag"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTag")
}
@@ -246,6 +249,8 @@ func (pm *_BACnetApplicationTag) SerializeParent(ctx context.Context, writeBuffe
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetApplicationTag"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTag")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBitString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
index 2d70e54fa4..c5d9c93373 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBitString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetApplicationTagBitStringParse(ctx context.Context, theBytes []byte, he
func BACnetApplicationTagBitStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagBitString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagBitString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagBitString")
}
@@ -171,6 +174,8 @@ func (m *_BACnetApplicationTagBitString) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagBitString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagBitString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagBitString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
index 3b12ba3b71..92dafe09ef 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagBoolean.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagBooleanParse(ctx context.Context, theBytes []byte, head
func BACnetApplicationTagBooleanParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagBoolean, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagBoolean"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagBoolean")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagBoolean) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagBoolean) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagBoolean"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagBoolean")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
index 42c4a821a9..c9631923dd 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagCharacterString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagCharacterStringParse(ctx context.Context, theBytes []by
func BACnetApplicationTagCharacterStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagCharacterString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagCharacterString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagCharacterString")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagCharacterString) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagCharacterString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagCharacterString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagCharacterString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDate.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDate.go
index 5bdf2528cf..d337e70aa3 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDate.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDate.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetApplicationTagDateParse(ctx context.Context, theBytes []byte) (BACnet
func BACnetApplicationTagDateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagDate, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagDate"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagDate")
}
@@ -171,6 +174,8 @@ func (m *_BACnetApplicationTagDate) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagDate) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagDate"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagDate")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDouble.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
index fa87f8e743..c49630a420 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagDouble.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagDoubleParse(ctx context.Context, theBytes []byte) (BACn
func BACnetApplicationTagDoubleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagDouble, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagDouble"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagDouble")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagDouble) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagDouble) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagDouble"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagDouble")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
index 4bd880377d..ed95e48123 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagEnumerated.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagEnumeratedParse(ctx context.Context, theBytes []byte, h
func BACnetApplicationTagEnumeratedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagEnumerated, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagEnumerated"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagEnumerated")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagEnumerated) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagEnumerated) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagEnumerated"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagEnumerated")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagNull.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagNull.go
index 3b57ad22c5..664f2ca4d4 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagNull.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagNull.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -107,6 +108,8 @@ func BACnetApplicationTagNullParse(ctx context.Context, theBytes []byte) (BACnet
func BACnetApplicationTagNullParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagNull, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagNull"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagNull")
}
@@ -136,6 +139,8 @@ func (m *_BACnetApplicationTagNull) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagNull) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagNull"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagNull")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
index ae57d4624f..2b062e644f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagObjectIdentifier.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -157,6 +158,8 @@ func BACnetApplicationTagObjectIdentifierParse(ctx context.Context, theBytes []b
func BACnetApplicationTagObjectIdentifierParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagObjectIdentifier, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagObjectIdentifier"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagObjectIdentifier")
}
@@ -210,6 +213,8 @@ func (m *_BACnetApplicationTagObjectIdentifier) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagObjectIdentifier) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagObjectIdentifier"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagObjectIdentifier")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
index b25d3e982e..236131783d 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagOctetString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetApplicationTagOctetStringParse(ctx context.Context, theBytes []byte,
func BACnetApplicationTagOctetStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagOctetString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagOctetString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagOctetString")
}
@@ -171,6 +174,8 @@ func (m *_BACnetApplicationTagOctetString) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagOctetString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagOctetString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagOctetString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagReal.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagReal.go
index cc646191ed..a110d590c5 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagReal.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagReal.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagRealParse(ctx context.Context, theBytes []byte) (BACnet
func BACnetApplicationTagRealParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagReal, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagReal"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagReal")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagReal) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagReal) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagReal"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagReal")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
index 86e28f0e7a..27ecb902b7 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagSignedInteger.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagSignedIntegerParse(ctx context.Context, theBytes []byte
func BACnetApplicationTagSignedIntegerParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagSignedInteger, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagSignedInteger"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagSignedInteger")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagSignedInteger) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagSignedInteger) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagSignedInteger"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagSignedInteger")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagTime.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagTime.go
index 6396377a11..4908768376 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagTime.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagTime.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetApplicationTagTimeParse(ctx context.Context, theBytes []byte) (BACnet
func BACnetApplicationTagTimeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetApplicationTagTime, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagTime"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagTime")
}
@@ -171,6 +174,8 @@ func (m *_BACnetApplicationTagTime) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagTime) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagTime"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagTime")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
index 13bcd2d4a5..70314896bb 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetApplicationTagUnsignedInteger.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -147,6 +148,8 @@ func BACnetApplicationTagUnsignedIntegerParse(ctx context.Context, theBytes []by
func BACnetApplicationTagUnsignedIntegerParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, header BACnetTagHeader) (BACnetApplicationTagUnsignedInteger, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetApplicationTagUnsignedInteger"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetApplicationTagUnsignedInteger")
}
@@ -195,6 +198,8 @@ func (m *_BACnetApplicationTagUnsignedInteger) Serialize() ([]byte, error) {
func (m *_BACnetApplicationTagUnsignedInteger) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetApplicationTagUnsignedInteger"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetApplicationTagUnsignedInteger")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedAccessRights.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedAccessRights.go
index b0d71b00ed..8598e677eb 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedAccessRights.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedAccessRights.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -113,6 +114,8 @@ func BACnetAssignedAccessRightsParse(ctx context.Context, theBytes []byte) (BACn
func BACnetAssignedAccessRightsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAssignedAccessRights, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAssignedAccessRights"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAssignedAccessRights")
}
@@ -167,6 +170,8 @@ func (m *_BACnetAssignedAccessRights) Serialize() ([]byte, error) {
func (m *_BACnetAssignedAccessRights) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAssignedAccessRights"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAssignedAccessRights")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCalls.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCalls.go
index e0a534a5ba..278fe56735 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCalls.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCalls.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -103,6 +104,8 @@ func BACnetAssignedLandingCallsParse(ctx context.Context, theBytes []byte) (BACn
func BACnetAssignedLandingCallsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAssignedLandingCalls, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAssignedLandingCalls"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAssignedLandingCalls")
}
@@ -143,6 +146,8 @@ func (m *_BACnetAssignedLandingCalls) Serialize() ([]byte, error) {
func (m *_BACnetAssignedLandingCalls) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAssignedLandingCalls"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAssignedLandingCalls")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsList.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsList.go
index 16e6ef1140..0485a8facf 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsList.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsList.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func BACnetAssignedLandingCallsLandingCallsListParse(ctx context.Context, theByt
func BACnetAssignedLandingCallsLandingCallsListParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetAssignedLandingCallsLandingCallsList, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAssignedLandingCallsLandingCallsList"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAssignedLandingCallsLandingCallsList")
}
@@ -205,6 +208,8 @@ func (m *_BACnetAssignedLandingCallsLandingCallsList) Serialize() ([]byte, error
func (m *_BACnetAssignedLandingCallsLandingCallsList) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAssignedLandingCallsLandingCallsList"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAssignedLandingCallsLandingCallsList")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsListEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsListEntry.go
index d0b0c462f0..c14bada961 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsListEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAssignedLandingCallsLandingCallsListEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -113,6 +114,8 @@ func BACnetAssignedLandingCallsLandingCallsListEntryParse(ctx context.Context, t
func BACnetAssignedLandingCallsLandingCallsListEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAssignedLandingCallsLandingCallsListEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAssignedLandingCallsLandingCallsListEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAssignedLandingCallsLandingCallsListEntry")
}
@@ -167,6 +170,8 @@ func (m *_BACnetAssignedLandingCallsLandingCallsListEntry) Serialize() ([]byte,
func (m *_BACnetAssignedLandingCallsLandingCallsListEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAssignedLandingCallsLandingCallsListEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAssignedLandingCallsLandingCallsListEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactor.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactor.go
index eab31de830..87fc061b7f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactor.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactor.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -123,6 +124,8 @@ func BACnetAuthenticationFactorParse(ctx context.Context, theBytes []byte) (BACn
func BACnetAuthenticationFactorParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationFactor, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationFactor"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationFactor")
}
@@ -191,6 +194,8 @@ func (m *_BACnetAuthenticationFactor) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationFactor) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationFactor"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationFactor")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorEnclosed.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorEnclosed.go
index 38ea5c9316..3a8413c742 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorEnclosed.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorEnclosed.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -126,6 +127,8 @@ func BACnetAuthenticationFactorEnclosedParse(ctx context.Context, theBytes []byt
func BACnetAuthenticationFactorEnclosedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetAuthenticationFactorEnclosed, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationFactorEnclosed"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationFactorEnclosed")
}
@@ -195,6 +198,8 @@ func (m *_BACnetAuthenticationFactorEnclosed) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationFactorEnclosed) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationFactorEnclosed"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationFactorEnclosed")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorFormat.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorFormat.go
index b65a2061ca..303248f246 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorFormat.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorFormat.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -128,6 +129,8 @@ func BACnetAuthenticationFactorFormatParse(ctx context.Context, theBytes []byte)
func BACnetAuthenticationFactorFormatParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationFactorFormat, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationFactorFormat"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationFactorFormat")
}
@@ -157,7 +160,7 @@ func BACnetAuthenticationFactorFormatParseWithBuffer(ctx context.Context, readBu
_val, _err := BACnetVendorIdTaggedParseWithBuffer(ctx, readBuffer, uint8(1), TagClass_CONTEXT_SPECIFIC_TAGS)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'vendorId' field of BACnetAuthenticationFactorFormat")
@@ -179,7 +182,7 @@ func BACnetAuthenticationFactorFormatParseWithBuffer(ctx context.Context, readBu
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(2), BACnetDataType_UNSIGNED_INTEGER)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'vendorFormat' field of BACnetAuthenticationFactorFormat")
@@ -214,6 +217,8 @@ func (m *_BACnetAuthenticationFactorFormat) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationFactorFormat) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationFactorFormat"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationFactorFormat")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorType.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorType.go
index a1eea899bc..a5969ca560 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorType.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorType.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -242,12 +245,14 @@ func BACnetAuthenticationFactorTypeParse(ctx context.Context, theBytes []byte) (
}
func BACnetAuthenticationFactorTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationFactorType, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAuthenticationFactorType", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAuthenticationFactorType")
}
if enum, ok := BACnetAuthenticationFactorTypeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAuthenticationFactorType(val), nil
} else {
return enum, nil
@@ -263,6 +268,8 @@ func (e BACnetAuthenticationFactorType) Serialize() ([]byte, error) {
}
func (e BACnetAuthenticationFactorType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAuthenticationFactorType", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorTypeTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorTypeTagged.go
index 3c5d628d24..635098d72d 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorTypeTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationFactorTypeTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAuthenticationFactorTypeTaggedParse(ctx context.Context, theBytes []b
func BACnetAuthenticationFactorTypeTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAuthenticationFactorTypeTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationFactorTypeTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationFactorTypeTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAuthenticationFactorTypeTagged) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationFactorTypeTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationFactorTypeTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationFactorTypeTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicy.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicy.go
index f05d917c38..81090146b4 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicy.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicy.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -123,6 +124,8 @@ func BACnetAuthenticationPolicyParse(ctx context.Context, theBytes []byte) (BACn
func BACnetAuthenticationPolicyParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationPolicy, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationPolicy"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationPolicy")
}
@@ -191,6 +194,8 @@ func (m *_BACnetAuthenticationPolicy) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationPolicy) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationPolicy"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationPolicy")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyList.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyList.go
index 674604141f..3b1b2bd5d0 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyList.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyList.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func BACnetAuthenticationPolicyListParse(ctx context.Context, theBytes []byte, t
func BACnetAuthenticationPolicyListParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetAuthenticationPolicyList, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationPolicyList"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationPolicyList")
}
@@ -205,6 +208,8 @@ func (m *_BACnetAuthenticationPolicyList) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationPolicyList) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationPolicyList"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationPolicyList")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyListEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyListEntry.go
index 1aaa44e829..b38f89bac2 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyListEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationPolicyListEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -113,6 +114,8 @@ func BACnetAuthenticationPolicyListEntryParse(ctx context.Context, theBytes []by
func BACnetAuthenticationPolicyListEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationPolicyListEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationPolicyListEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationPolicyListEntry")
}
@@ -167,6 +170,8 @@ func (m *_BACnetAuthenticationPolicyListEntry) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationPolicyListEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationPolicyListEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationPolicyListEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatus.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatus.go
index cde22a2892..84a3eb5c6c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatus.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatus.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func BACnetAuthenticationStatusParse(ctx context.Context, theBytes []byte) (BACn
}
func BACnetAuthenticationStatusParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthenticationStatus, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAuthenticationStatus", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAuthenticationStatus")
}
if enum, ok := BACnetAuthenticationStatusByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAuthenticationStatus(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e BACnetAuthenticationStatus) Serialize() ([]byte, error) {
}
func (e BACnetAuthenticationStatus) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAuthenticationStatus", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatusTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatusTagged.go
index 9473bf5914..8eabda275e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatusTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthenticationStatusTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetAuthenticationStatusTaggedParse(ctx context.Context, theBytes []byte,
func BACnetAuthenticationStatusTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAuthenticationStatusTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthenticationStatusTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthenticationStatusTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetAuthenticationStatusTagged) Serialize() ([]byte, error) {
func (m *_BACnetAuthenticationStatusTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthenticationStatusTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthenticationStatusTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemption.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemption.go
index 655a13b89f..b06cddb6ff 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemption.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemption.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -140,12 +143,14 @@ func BACnetAuthorizationExemptionParse(ctx context.Context, theBytes []byte) (BA
}
func BACnetAuthorizationExemptionParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthorizationExemption, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetAuthorizationExemption", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAuthorizationExemption")
}
if enum, ok := BACnetAuthorizationExemptionByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAuthorizationExemption(val), nil
} else {
return enum, nil
@@ -161,6 +166,8 @@ func (e BACnetAuthorizationExemption) Serialize() ([]byte, error) {
}
func (e BACnetAuthorizationExemption) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetAuthorizationExemption", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemptionTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemptionTagged.go
index e8de09d401..112b32f88d 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemptionTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationExemptionTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAuthorizationExemptionTaggedParse(ctx context.Context, theBytes []byt
func BACnetAuthorizationExemptionTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAuthorizationExemptionTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthorizationExemptionTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthorizationExemptionTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAuthorizationExemptionTagged) Serialize() ([]byte, error) {
func (m *_BACnetAuthorizationExemptionTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthorizationExemptionTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthorizationExemptionTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationMode.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationMode.go
index fddbdbbe5a..ebc576609a 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationMode.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationMode.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func BACnetAuthorizationModeParse(ctx context.Context, theBytes []byte) (BACnetA
}
func BACnetAuthorizationModeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetAuthorizationMode, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint16("BACnetAuthorizationMode", 16)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetAuthorizationMode")
}
if enum, ok := BACnetAuthorizationModeByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetAuthorizationMode(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e BACnetAuthorizationMode) Serialize() ([]byte, error) {
}
func (e BACnetAuthorizationMode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint16("BACnetAuthorizationMode", 16, uint16(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationModeTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationModeTagged.go
index 3aae924606..4ac3651121 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationModeTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetAuthorizationModeTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetAuthorizationModeTaggedParse(ctx context.Context, theBytes []byte, ta
func BACnetAuthorizationModeTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetAuthorizationModeTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetAuthorizationModeTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetAuthorizationModeTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetAuthorizationModeTagged) Serialize() ([]byte, error) {
func (m *_BACnetAuthorizationModeTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetAuthorizationModeTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetAuthorizationModeTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBDTEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBDTEntry.go
index d23a5383a8..08acd51895 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBDTEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBDTEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -116,6 +117,8 @@ func BACnetBDTEntryParse(ctx context.Context, theBytes []byte) (BACnetBDTEntry,
func BACnetBDTEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetBDTEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetBDTEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetBDTEntry")
}
@@ -145,7 +148,7 @@ func BACnetBDTEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuf
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(1), BACnetDataType_OCTET_STRING)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'broadcastMask' field of BACnetBDTEntry")
@@ -179,6 +182,8 @@ func (m *_BACnetBDTEntry) Serialize() ([]byte, error) {
func (m *_BACnetBDTEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetBDTEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetBDTEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupState.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupState.go
index b409183f1d..2b6bcaefd1 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupState.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupState.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func BACnetBackupStateParse(ctx context.Context, theBytes []byte) (BACnetBackupS
}
func BACnetBackupStateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetBackupState, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetBackupState", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetBackupState")
}
if enum, ok := BACnetBackupStateByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetBackupState(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e BACnetBackupState) Serialize() ([]byte, error) {
}
func (e BACnetBackupState) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetBackupState", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupStateTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupStateTagged.go
index 26d336c899..dcfa83484c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupStateTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBackupStateTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetBackupStateTaggedParse(ctx context.Context, theBytes []byte, tagNumbe
func BACnetBackupStateTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetBackupStateTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetBackupStateTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetBackupStateTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetBackupStateTagged) Serialize() ([]byte, error) {
func (m *_BACnetBackupStateTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetBackupStateTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetBackupStateTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPV.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPV.go
index 0c9bba0821..d60a04631b 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPV.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPV.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -134,12 +137,14 @@ func BACnetBinaryLightingPVParse(ctx context.Context, theBytes []byte) (BACnetBi
}
func BACnetBinaryLightingPVParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetBinaryLightingPV, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetBinaryLightingPV", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetBinaryLightingPV")
}
if enum, ok := BACnetBinaryLightingPVByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetBinaryLightingPV(val), nil
} else {
return enum, nil
@@ -155,6 +160,8 @@ func (e BACnetBinaryLightingPV) Serialize() ([]byte, error) {
}
func (e BACnetBinaryLightingPV) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetBinaryLightingPV", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPVTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPVTagged.go
index 8011b9210a..16163a0883 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPVTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryLightingPVTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -146,6 +147,8 @@ func BACnetBinaryLightingPVTaggedParse(ctx context.Context, theBytes []byte, tag
func BACnetBinaryLightingPVTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetBinaryLightingPVTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetBinaryLightingPVTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetBinaryLightingPVTagged")
}
@@ -225,6 +228,8 @@ func (m *_BACnetBinaryLightingPVTagged) Serialize() ([]byte, error) {
func (m *_BACnetBinaryLightingPVTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetBinaryLightingPVTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetBinaryLightingPVTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPV.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPV.go
index 0e9f33f401..6a68f1df00 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPV.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPV.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -104,12 +107,14 @@ func BACnetBinaryPVParse(ctx context.Context, theBytes []byte) (BACnetBinaryPV,
}
func BACnetBinaryPVParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetBinaryPV, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetBinaryPV", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetBinaryPV")
}
if enum, ok := BACnetBinaryPVByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetBinaryPV(val), nil
} else {
return enum, nil
@@ -125,6 +130,8 @@ func (e BACnetBinaryPV) Serialize() ([]byte, error) {
}
func (e BACnetBinaryPV) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetBinaryPV", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPVTagged.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPVTagged.go
index cc14200191..889e645e8b 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPVTagged.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetBinaryPVTagged.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -117,6 +118,8 @@ func BACnetBinaryPVTaggedParse(ctx context.Context, theBytes []byte, tagNumber u
func BACnetBinaryPVTaggedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8, tagClass TagClass) (BACnetBinaryPVTagged, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetBinaryPVTagged"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetBinaryPVTagged")
}
@@ -180,6 +183,8 @@ func (m *_BACnetBinaryPVTagged) Serialize() ([]byte, error) {
func (m *_BACnetBinaryPVTagged) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetBinaryPVTagged"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetBinaryPVTagged")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscription.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscription.go
index d2148ebdb8..1b6e8c2beb 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscription.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscription.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -143,6 +144,8 @@ func BACnetCOVMultipleSubscriptionParse(ctx context.Context, theBytes []byte) (B
func BACnetCOVMultipleSubscriptionParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCOVMultipleSubscription, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVMultipleSubscription"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVMultipleSubscription")
}
@@ -239,6 +242,8 @@ func (m *_BACnetCOVMultipleSubscription) Serialize() ([]byte, error) {
func (m *_BACnetCOVMultipleSubscription) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVMultipleSubscription"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVMultipleSubscription")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification.go
index f5e2b23227..1956acf379 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationParse(ctx co
func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification")
}
@@ -205,6 +208,8 @@ func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification) Seria
func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecification")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry.go
index 91f98253c2..c5d3e7cbe8 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -113,6 +114,8 @@ func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryParse(c
func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry")
}
@@ -167,6 +170,8 @@ func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry)
func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences.go
index 656eaf5715..88af167c4c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -130,6 +131,8 @@ func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfC
func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences")
}
@@ -205,6 +208,8 @@ func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryLi
func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferences")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry.go
index 0063a02fbc..b302c108b0 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -126,6 +127,8 @@ func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfC
func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry")
}
@@ -155,7 +158,7 @@ func BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfC
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(1), BACnetDataType_REAL)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'covIncrement' field of BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry")
@@ -203,6 +206,8 @@ func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryLi
func (m *_BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVMultipleSubscriptionListOfCovSubscriptionSpecificationEntryListOfCovReferencesEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVSubscription.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVSubscription.go
index 1c249948da..b77dca8df2 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVSubscription.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCOVSubscription.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -146,6 +147,8 @@ func BACnetCOVSubscriptionParse(ctx context.Context, theBytes []byte) (BACnetCOV
func BACnetCOVSubscriptionParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCOVSubscription, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCOVSubscription"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCOVSubscription")
}
@@ -214,7 +217,7 @@ func BACnetCOVSubscriptionParseWithBuffer(ctx context.Context, readBuffer utils.
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(4), BACnetDataType_REAL)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'covIncrement' field of BACnetCOVSubscription")
@@ -251,6 +254,8 @@ func (m *_BACnetCOVSubscription) Serialize() ([]byte, error) {
func (m *_BACnetCOVSubscription) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCOVSubscription"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCOVSubscription")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntry.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntry.go
index 478423b103..ddf94ede12 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntry.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntry.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -140,6 +141,8 @@ func BACnetCalendarEntryParse(ctx context.Context, theBytes []byte) (BACnetCalen
func BACnetCalendarEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCalendarEntry, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCalendarEntry"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCalendarEntry")
}
@@ -203,6 +206,8 @@ func (pm *_BACnetCalendarEntry) SerializeParent(ctx context.Context, writeBuffer
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCalendarEntry"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCalendarEntry")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDate.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDate.go
index 423c31a4ae..e98145f7df 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDate.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDate.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetCalendarEntryDateParse(ctx context.Context, theBytes []byte) (BACnetC
func BACnetCalendarEntryDateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCalendarEntryDate, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCalendarEntryDate"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCalendarEntryDate")
}
@@ -171,6 +174,8 @@ func (m *_BACnetCalendarEntryDate) Serialize() ([]byte, error) {
func (m *_BACnetCalendarEntryDate) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetCalendarEntryDate"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCalendarEntryDate")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDateRange.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDateRange.go
index 2950ebbbed..c355145720 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDateRange.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryDateRange.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetCalendarEntryDateRangeParse(ctx context.Context, theBytes []byte) (BA
func BACnetCalendarEntryDateRangeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCalendarEntryDateRange, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCalendarEntryDateRange"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCalendarEntryDateRange")
}
@@ -171,6 +174,8 @@ func (m *_BACnetCalendarEntryDateRange) Serialize() ([]byte, error) {
func (m *_BACnetCalendarEntryDateRange) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetCalendarEntryDateRange"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCalendarEntryDateRange")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryEnclosed.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryEnclosed.go
index 822f666f1c..83a84a77b3 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryEnclosed.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryEnclosed.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -126,6 +127,8 @@ func BACnetCalendarEntryEnclosedParse(ctx context.Context, theBytes []byte, tagN
func BACnetCalendarEntryEnclosedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumber uint8) (BACnetCalendarEntryEnclosed, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCalendarEntryEnclosed"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCalendarEntryEnclosed")
}
@@ -195,6 +198,8 @@ func (m *_BACnetCalendarEntryEnclosed) Serialize() ([]byte, error) {
func (m *_BACnetCalendarEntryEnclosed) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetCalendarEntryEnclosed"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCalendarEntryEnclosed")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryWeekNDay.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryWeekNDay.go
index c4a324776a..81e4caab9f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryWeekNDay.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCalendarEntryWeekNDay.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetCalendarEntryWeekNDayParse(ctx context.Context, theBytes []byte) (BAC
func BACnetCalendarEntryWeekNDayParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCalendarEntryWeekNDay, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetCalendarEntryWeekNDay"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetCalendarEntryWeekNDay")
}
@@ -171,6 +174,8 @@ func (m *_BACnetCalendarEntryWeekNDay) Serialize() ([]byte, error) {
func (m *_BACnetCalendarEntryWeekNDay) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetCalendarEntryWeekNDay"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetCalendarEntryWeekNDay")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValue.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValue.go
index c1a7043277..35eb42e6e6 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValue.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValue.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -151,6 +152,8 @@ func BACnetChannelValueParse(ctx context.Context, theBytes []byte) (BACnetChanne
func BACnetChannelValueParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValue, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValue"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValue")
}
@@ -241,6 +244,8 @@ func (pm *_BACnetChannelValue) SerializeParent(ctx context.Context, writeBuffer
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetChannelValue"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValue")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBitString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBitString.go
index 79a36cc1cf..d72b64895f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBitString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBitString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueBitStringParse(ctx context.Context, theBytes []byte) (BAC
func BACnetChannelValueBitStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueBitString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueBitString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueBitString")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueBitString) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueBitString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueBitString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueBitString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBoolean.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBoolean.go
index eb7f512d52..e265a0dd30 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBoolean.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueBoolean.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueBooleanParse(ctx context.Context, theBytes []byte) (BACne
func BACnetChannelValueBooleanParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueBoolean, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueBoolean"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueBoolean")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueBoolean) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueBoolean) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueBoolean"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueBoolean")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueCharacterString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueCharacterString.go
index 08aa0d4a68..704af1613c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueCharacterString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueCharacterString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueCharacterStringParse(ctx context.Context, theBytes []byte
func BACnetChannelValueCharacterStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueCharacterString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueCharacterString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueCharacterString")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueCharacterString) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueCharacterString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueCharacterString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueCharacterString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDate.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDate.go
index 544ea90cb4..8adfa500c2 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDate.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDate.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueDateParse(ctx context.Context, theBytes []byte) (BACnetCh
func BACnetChannelValueDateParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueDate, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueDate"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueDate")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueDate) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueDate) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueDate"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueDate")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDouble.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDouble.go
index c07b492b6c..b09293ceba 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDouble.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueDouble.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueDoubleParse(ctx context.Context, theBytes []byte) (BACnet
func BACnetChannelValueDoubleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueDouble, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueDouble"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueDouble")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueDouble) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueDouble) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueDouble"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueDouble")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueEnumerated.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueEnumerated.go
index c8c72813e8..3df02fcbc8 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueEnumerated.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueEnumerated.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueEnumeratedParse(ctx context.Context, theBytes []byte) (BA
func BACnetChannelValueEnumeratedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueEnumerated, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueEnumerated"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueEnumerated")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueEnumerated) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueEnumerated) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueEnumerated"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueEnumerated")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueInteger.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueInteger.go
index 4b0e7ad78e..e1e521bf68 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueInteger.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueInteger.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueIntegerParse(ctx context.Context, theBytes []byte) (BACne
func BACnetChannelValueIntegerParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueInteger, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueInteger"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueInteger")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueInteger) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueInteger) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueInteger"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueInteger")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueLightingCommand.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueLightingCommand.go
index 93f48152d5..5c0a11f177 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueLightingCommand.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueLightingCommand.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueLightingCommandParse(ctx context.Context, theBytes []byte
func BACnetChannelValueLightingCommandParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueLightingCommand, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueLightingCommand"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueLightingCommand")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueLightingCommand) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueLightingCommand) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueLightingCommand"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueLightingCommand")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueNull.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueNull.go
index 9f78b8043f..a6704036fa 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueNull.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueNull.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueNullParse(ctx context.Context, theBytes []byte) (BACnetCh
func BACnetChannelValueNullParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueNull, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueNull"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueNull")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueNull) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueNull) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueNull"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueNull")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueObjectidentifier.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueObjectidentifier.go
index db91212d3d..d573fed174 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueObjectidentifier.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueObjectidentifier.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueObjectidentifierParse(ctx context.Context, theBytes []byt
func BACnetChannelValueObjectidentifierParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueObjectidentifier, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueObjectidentifier"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueObjectidentifier")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueObjectidentifier) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueObjectidentifier) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueObjectidentifier"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueObjectidentifier")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueOctetString.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueOctetString.go
index 11a6b79525..ad8f12be79 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueOctetString.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueOctetString.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueOctetStringParse(ctx context.Context, theBytes []byte) (B
func BACnetChannelValueOctetStringParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueOctetString, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueOctetString"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueOctetString")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueOctetString) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueOctetString) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueOctetString"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueOctetString")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueReal.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueReal.go
index f690cdcb37..66ee2a55ec 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueReal.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueReal.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueRealParse(ctx context.Context, theBytes []byte) (BACnetCh
func BACnetChannelValueRealParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueReal, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueReal"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueReal")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueReal) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueReal) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueReal"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueReal")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueTime.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueTime.go
index ed0d76b76e..13966a9964 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueTime.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueTime.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueTimeParse(ctx context.Context, theBytes []byte) (BACnetCh
func BACnetChannelValueTimeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueTime, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueTime"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueTime")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueTime) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueTime) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueTime"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueTime")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueUnsigned.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueUnsigned.go
index 74023b01df..6237a82e9c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueUnsigned.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetChannelValueUnsigned.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetChannelValueUnsignedParse(ctx context.Context, theBytes []byte) (BACn
func BACnetChannelValueUnsignedParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetChannelValueUnsigned, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetChannelValueUnsigned"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetChannelValueUnsigned")
}
@@ -171,6 +174,8 @@ func (m *_BACnetChannelValueUnsigned) Serialize() ([]byte, error) {
func (m *_BACnetChannelValueUnsigned) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetChannelValueUnsigned"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetChannelValueUnsigned")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetCharacterEncoding.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetCharacterEncoding.go
index 8dbf828642..34201a5247 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetCharacterEncoding.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetCharacterEncoding.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,12 +131,14 @@ func BACnetCharacterEncodingParse(ctx context.Context, theBytes []byte) (BACnetC
}
func BACnetCharacterEncodingParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetCharacterEncoding, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadByte("BACnetCharacterEncoding")
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetCharacterEncoding")
}
if enum, ok := BACnetCharacterEncodingByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetCharacterEncoding(val), nil
} else {
return enum, nil
@@ -149,6 +154,8 @@ func (e BACnetCharacterEncoding) Serialize() ([]byte, error) {
}
func (e BACnetCharacterEncoding) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteByte("BACnetCharacterEncoding", byte(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOV.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOV.go
index d2e233754d..2a1b835922 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOV.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOV.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -140,6 +141,8 @@ func BACnetClientCOVParse(ctx context.Context, theBytes []byte) (BACnetClientCOV
func BACnetClientCOVParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetClientCOV, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetClientCOV"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetClientCOV")
}
@@ -196,6 +199,8 @@ func (pm *_BACnetClientCOV) SerializeParent(ctx context.Context, writeBuffer uti
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetClientCOV"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetClientCOV")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVNone.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVNone.go
index 07febe9977..22420bf657 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVNone.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVNone.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetClientCOVNoneParse(ctx context.Context, theBytes []byte) (BACnetClien
func BACnetClientCOVNoneParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetClientCOVNone, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetClientCOVNone"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetClientCOVNone")
}
@@ -171,6 +174,8 @@ func (m *_BACnetClientCOVNone) Serialize() ([]byte, error) {
func (m *_BACnetClientCOVNone) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetClientCOVNone"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetClientCOVNone")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVObject.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVObject.go
index fee06954f1..c3a29c34df 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVObject.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetClientCOVObject.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -128,6 +129,8 @@ func BACnetClientCOVObjectParse(ctx context.Context, theBytes []byte) (BACnetCli
func BACnetClientCOVObjectParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetClientCOVObject, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetClientCOVObject"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetClientCOVObject")
}
@@ -171,6 +174,8 @@ func (m *_BACnetClientCOVObject) Serialize() ([]byte, error) {
func (m *_BACnetClientCOVObject) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetClientCOVObject"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetClientCOVObject")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetClosingTag.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetClosingTag.go
index 7f34259353..1b9ee4de3f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetClosingTag.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetClosingTag.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -106,6 +107,8 @@ func BACnetClosingTagParse(ctx context.Context, theBytes []byte, tagNumberArgume
func BACnetClosingTagParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, tagNumberArgument uint8) (BACnetClosingTag, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetClosingTag"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetClosingTag")
}
@@ -162,6 +165,8 @@ func (m *_BACnetClosingTag) Serialize() ([]byte, error) {
func (m *_BACnetClosingTag) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetClosingTag"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetClosingTag")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceChoice.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceChoice.go
index de79d686ea..4fe8080e12 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceChoice.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceChoice.go
@@ -22,8 +22,11 @@ package model
import (
"context"
"fmt"
+
"github.com/apache/plc4x/plc4go/spi/utils"
+
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -284,12 +287,14 @@ func BACnetConfirmedServiceChoiceParse(ctx context.Context, theBytes []byte) (BA
}
func BACnetConfirmedServiceChoiceParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetConfirmedServiceChoice, error) {
+ log := zerolog.Ctx(ctx)
+ _ = log
val, err := readBuffer.ReadUint8("BACnetConfirmedServiceChoice", 8)
if err != nil {
return 0, errors.Wrap(err, "error reading BACnetConfirmedServiceChoice")
}
if enum, ok := BACnetConfirmedServiceChoiceByValue(val); !ok {
- Plc4xModelLog.Debug().Msgf("no value %x found for RequestType", val)
+ log.Debug().Msgf("no value %x found for RequestType", val)
return BACnetConfirmedServiceChoice(val), nil
} else {
return enum, nil
@@ -305,6 +310,8 @@ func (e BACnetConfirmedServiceChoice) Serialize() ([]byte, error) {
}
func (e BACnetConfirmedServiceChoice) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
+ log := zerolog.Ctx(ctx)
+ _ = log
return writeBuffer.WriteUint8("BACnetConfirmedServiceChoice", 8, uint8(e), utils.WithAdditionalStringRepresentation(e.PLC4XEnumName()))
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
index 175b96e55d..1b020b94b9 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequest.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -131,6 +132,8 @@ func BACnetConfirmedServiceRequestParse(ctx context.Context, theBytes []byte, se
func BACnetConfirmedServiceRequestParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, serviceRequestLength uint32) (BACnetConfirmedServiceRequest, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequest"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequest")
}
@@ -252,6 +255,8 @@ func (pm *_BACnetConfirmedServiceRequest) SerializeParent(ctx context.Context, w
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequest"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequest")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
index cd1c22b645..0f6597441c 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAcknowledgeAlarm.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -186,6 +187,8 @@ func BACnetConfirmedServiceRequestAcknowledgeAlarmParse(ctx context.Context, the
func BACnetConfirmedServiceRequestAcknowledgeAlarmParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, serviceRequestLength uint32) (BACnetConfirmedServiceRequestAcknowledgeAlarm, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAcknowledgeAlarm"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAcknowledgeAlarm")
}
@@ -301,6 +304,8 @@ func (m *_BACnetConfirmedServiceRequestAcknowledgeAlarm) Serialize() ([]byte, er
func (m *_BACnetConfirmedServiceRequestAcknowledgeAlarm) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAcknowledgeAlarm"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAcknowledgeAlarm")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
index 4356225fc4..40538a02b6 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAddListElement.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -169,6 +170,8 @@ func BACnetConfirmedServiceRequestAddListElementParse(ctx context.Context, theBy
func BACnetConfirmedServiceRequestAddListElementParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, serviceRequestLength uint32) (BACnetConfirmedServiceRequestAddListElement, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAddListElement"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAddListElement")
}
@@ -211,7 +214,7 @@ func BACnetConfirmedServiceRequestAddListElementParseWithBuffer(ctx context.Cont
_val, _err := BACnetContextTagParseWithBuffer(ctx, readBuffer, uint8(2), BACnetDataType_UNSIGNED_INTEGER)
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'arrayIndex' field of BACnetConfirmedServiceRequestAddListElement")
@@ -233,7 +236,7 @@ func BACnetConfirmedServiceRequestAddListElementParseWithBuffer(ctx context.Cont
_val, _err := BACnetConstructedDataParseWithBuffer(ctx, readBuffer, uint8(3), objectIdentifier.GetObjectType(), propertyIdentifier.GetValue(), (CastBACnetTagPayloadUnsignedInteger(utils.InlineIf(bool((arrayIndex) != (nil)), func() any { return CastBACnetTagPayloadUnsignedInteger((arrayIndex).GetPayload()) }, func() any { return CastBACnetTagPayloadUnsignedInteger(nil) }))))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'listOfElements' field of BACnetConfirmedServiceRequestAddListElement")
@@ -274,6 +277,8 @@ func (m *_BACnetConfirmedServiceRequestAddListElement) Serialize() ([]byte, erro
func (m *_BACnetConfirmedServiceRequestAddListElement) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAddListElement"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAddListElement")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
index a1235fa909..e05a23be6e 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFile.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -142,6 +143,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileParse(ctx context.Context, theBy
func BACnetConfirmedServiceRequestAtomicReadFileParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, serviceRequestLength uint32) (BACnetConfirmedServiceRequestAtomicReadFile, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFile"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAtomicReadFile")
}
@@ -201,6 +204,8 @@ func (m *_BACnetConfirmedServiceRequestAtomicReadFile) Serialize() ([]byte, erro
func (m *_BACnetConfirmedServiceRequestAtomicReadFile) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAtomicReadFile"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAtomicReadFile")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
index a5165526c8..1dc19a1283 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileRecord.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileRecordParse(ctx context.Context,
func BACnetConfirmedServiceRequestAtomicReadFileRecordParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetConfirmedServiceRequestAtomicReadFileRecord, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileRecord"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAtomicReadFileRecord")
}
@@ -198,6 +201,8 @@ func (m *_BACnetConfirmedServiceRequestAtomicReadFileRecord) Serialize() ([]byte
func (m *_BACnetConfirmedServiceRequestAtomicReadFileRecord) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAtomicReadFileRecord"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAtomicReadFileRecord")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
index 68f5689d66..c67e84df5f 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStream.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -141,6 +142,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileStreamParse(ctx context.Context,
func BACnetConfirmedServiceRequestAtomicReadFileStreamParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetConfirmedServiceRequestAtomicReadFileStream, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileStream"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAtomicReadFileStream")
}
@@ -198,6 +201,8 @@ func (m *_BACnetConfirmedServiceRequestAtomicReadFileStream) Serialize() ([]byte
func (m *_BACnetConfirmedServiceRequestAtomicReadFileStream) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAtomicReadFileStream"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAtomicReadFileStream")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
index e1663b3d59..7eb8001c73 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
)
// Code generated by code-generation. DO NOT EDIT.
@@ -160,6 +161,8 @@ func BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecordParse(ctx context.
func BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecordParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord")
}
@@ -242,6 +245,8 @@ func (pm *_BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord) SerializeP
_ = m
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAtomicReadFileStreamOrRecord")
}
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
index 3c95ce4249..0caa974116 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAtomicWriteFile.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
"github.com/pkg/errors"
+ "github.com/rs/zerolog"
"io"
)
@@ -180,6 +181,8 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParse(ctx context.Context, theB
func BACnetConfirmedServiceRequestAtomicWriteFileParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, serviceRequestLength uint32) (BACnetConfirmedServiceRequestAtomicWriteFile, error) {
positionAware := readBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
if pullErr := readBuffer.PullContext("BACnetConfirmedServiceRequestAtomicWriteFile"); pullErr != nil {
return nil, errors.Wrap(pullErr, "Error pulling for BACnetConfirmedServiceRequestAtomicWriteFile")
}
@@ -209,7 +212,7 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParseWithBuffer(ctx context.Con
_val, _err := BACnetOpeningTagParseWithBuffer(ctx, readBuffer, uint8(0))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'openingTag' field of BACnetConfirmedServiceRequestAtomicWriteFile")
@@ -257,7 +260,7 @@ func BACnetConfirmedServiceRequestAtomicWriteFileParseWithBuffer(ctx context.Con
_val, _err := BACnetClosingTagParseWithBuffer(ctx, readBuffer, uint8(0))
switch {
case errors.Is(_err, utils.ParseAssertError{}) || errors.Is(_err, io.EOF):
- Plc4xModelLog.Debug().Err(_err).Msg("Resetting position because optional threw an error")
+ log.Debug().Err(_err).Msg("Resetting position because optional threw an error")
readBuffer.Reset(currentPos)
case _err != nil:
return nil, errors.Wrap(_err, "Error parsing 'closingTag' field of BACnetConfirmedServiceRequestAtomicWriteFile")
@@ -299,6 +302,8 @@ func (m *_BACnetConfirmedServiceRequestAtomicWriteFile) Serialize() ([]byte, err
func (m *_BACnetConfirmedServiceRequestAtomicWriteFile) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error {
positionAware := writeBuffer
_ = positionAware
+ log := zerolog.Ctx(ctx)
+ _ = log
ser := func() error {
if pushErr := writeBuffer.PushContext("BACnetConfirmedServiceRequestAtomicWriteFile"); pushErr != nil {
return errors.Wrap(pushErr, "Error pushing for BACnetConfirmedServiceRequestAtomicWriteFile")
diff --git a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAuthenticate.go b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAuthenticate.go
index ffa7a5a9c2..54d5680cc9 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAuthenticate.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/BACnetConfirmedServiceRequestAuthenticate.go
@@ -24,6 +24,7 @@ import (
"fmt"
"github.com/apache/plc4x/plc4go/spi/utils"
... 72130 lines suppressed ...