Comments (6)
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.
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.
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.
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.
The latest snapshot now contains that commit.
from calimero-core.
OK, i was missing the snapshot repository...
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
Thanks again.
from calimero-core.
Related Issues (20)
- Does not work with tpuart ic HOT 24
- [Feature Request] Add support for security proxy
- Datapoint type discovery HOT 1
- DPT8 missing in README.md HOT 1
- Mangamementclient no basic restart anymore with v2.5? HOT 3
- Warnings from Calimero HOT 13
- Receiving a GroupValueResponse with DPT 1.001 fails due to missing data in the asdu HOT 2
- DPT 251.600 format should be consistent across platforms and locales HOT 3
- readBool maxASDULen should be ‘1’ ?,now is ‘0’ HOT 1
- Android project runtime FATAL EXCEPTION. HOT 5
- GO Diagnostics: Improve selection of surrogate HOT 10
- DPT 10.001 is wrongly parsed when "no day" is present HOT 2
- Throws Exception when EventListener catch one HOT 2
- KNXNetworkLinkFT12: detect status, CEMI setting.... HOT 2
- Implement Transport Layer Connection-Oriented State Machine Style 3 HOT 2
- Throws `KNXTimeoutException` due to missing confirmation although the confirmation was received HOT 2
- Calimero GUI and KNX Virtual HOT 2
- Data Secure - Read Group Request management HOT 2
- Not able to connect to KNX USB RF module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calimero-core.