Closed askuric closed 3 months ago
I can't reproduce, at least with current master branch. Please let me know if you're still having problems.
The issue did not go away. Had to change the example completely to comply with he new API. I don't know, given your comment it must be that I'm doing something wrong. In any case it's just this example that was posing issues for me, everything else works great.
Ok, reopening to clarify this. The examples/cyclic-data.rs
currently on master definitely compiles with the lib from master.
Which code did you take, and with which version of the lib are you using it?
Hi @birkenfeld,
Thanks for the message!
I've tested some more and it seems that it is the version of the ethercat-esi
that causes these problems.
Basically the examples are using the older version 0.1
and in my case the version that was downloaded by default was the latest 0.2
. And the new version is braking the API and the example does no longer compile.
So you are absolutely right, if you build the example by downloading the master branch and compiling it it will work.
In case you need to create a new cargo project and if you copy the cyclic-data
example inside and not specify explicitly the ethercat-esi
version to be 0.1
, the code will not compile.
Here is the Cargo.toml
that compiles and runs the cyclic-data
example for those interested :D
[package]
name = "cyclic_data_test"
version = "0.1.0"
edition = "2021"
[dependencies]
ethercat = "0.3.1"
log = "0.4"
ethercat-esi = "0.1.0" # important
env_logger = "0.8"
Gotcha! I've updated the ethercat-esi
dependency to 0.2 in the example now.
Hi guys,
I'm having trouble compiling the cycling_data example. Here is the message:
Could this be a problem of my configuration or is this due to some API change? Thanks