Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/src/api/ecal.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ The `Ecal` struct manages initialization and finalization of the eCAL system.
```rust
use rustecal::Ecal;

let ecal = Ecal::initialize("my_rust_app")?;
// use publishers or subscribers
drop(ecal); // finalizes on drop
fn main() -> Result<(), Box<dyn std::error::Error>> {
Ecal::initialize(Some("my ecal app"), EcalComponents::DEFAULT)?;

// use publishers, subscribers, clients, server


Ecal::finalize();
Ok(())
}
```