Giter Site home page Giter Site logo

Comments (6)

bmalinowsky avatar bmalinowsky commented on August 30, 2024

Hi,
yes, overriding those methods is currently not optimal.

tl.sendData should actually be replaced with the standard send method, so writeMemory essentially requires send & sendWait.

If you need access to tl, you can also use the protected ctor. It's behavior is different when detaching (if you pass in the transport layer you own it, otherwise the mgmt client owns it)

from calimero-core.

Darthyson avatar Darthyson commented on August 30, 2024

Hi,
i tried using the protected ctor like this:

public SB2ManagementClientImpl(KNXNetworkLink link)  
        throws KNXLinkClosedException {  
    tl = new TransportLayerImpl(link);  
    super(link, tl);  
    ...  
}

but this leads to the problem, that super(..) must be the first call and i don't want to create the tl "outside", actually i don't want to handle the tl at all, instead ManagementClientImpl should handle it for me.
I could avoid that by using send and sendWait, but they are private.

If you are interested, under https://github.com/selfbus/software-arm-lib/.../SBManagementClientImpl.java you'll find my dirty workaround.

from calimero-core.

bmalinowsky avatar bmalinowsky commented on August 30, 2024

Hi @Darthyson,
a few methods are now protected, so I think your use-case should work without reflection (there is no snapshot yet).

from calimero-core.

Darthyson avatar Darthyson commented on August 30, 2024

Hi,
first tests were successful. Thanks a lot. That makes life much easier. Is there a timeline for a v2.6-snapshot? calimero-rxtx is already pointing to it.

from calimero-core.

bmalinowsky avatar bmalinowsky commented on August 30, 2024

The latest snapshot now contains that commit.

from calimero-core.

Darthyson avatar Darthyson commented on August 30, 2024

OK, i was missing the snapshot repository...

maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }

Thanks again.

from calimero-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.