Skip to content

fix: keep ADS handles alive and update on_init signature - #8

Open
mfabregat wants to merge 1 commit into
b-robotized:rollingfrom
mfabregat:fix/ads_handles
Open

fix: keep ADS handles alive and update on_init signature#8
mfabregat wants to merge 1 commit into
b-robotized:rollingfrom
mfabregat:fix/ads_handles

Conversation

@mfabregat

Copy link
Copy Markdown

Retain ADS handle objects to avoid invalid handles during sum read/write, and adopt the new HardwareComponentInterfaceParams on_init API to silence Jazzy deprecation warnings

Retain ADS handle objects to avoid invalid handles during sum read/write, and adopt the new HardwareComponentInterfaceParams on_init API to silence Jazzy deprecation warnings
@MatthijsBurgh

Copy link
Copy Markdown

@Nibanovic @habartakh Please take a look at this PR.

@Nibanovic

Nibanovic commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Ah, so if I understood, when we destroy the handle on our side, PLC is signaled to clear the handle. Then when we make a SUM read command, it says "I don't have this" and rejects the request.

SO we can use the derefrenced uint instead of the handle for packing the requests, but we have to keep the ADS handle object alive while hw interface is active, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants