Skip to content

Commit 600e437

Browse files
committed
comments
1 parent 28346de commit 600e437

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

python_client/src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ impl PyPoulpeRemoteClient {
344344
}
345345

346346
/// Launch the server
347+
///
348+
/// Args:
349+
/// file_name (str): The path to the configuration file (default: ../config/ethercat.yaml
350+
/// Returns:
351+
/// str: The URL address of the server
347352
#[pyfunction]
348353
#[pyo3(signature = (file_name=None))]
349354
pub fn launch_server(file_name: Option<&str>) -> String {
@@ -363,7 +368,12 @@ pub fn launch_server(file_name: Option<&str>) -> String {
363368
return "http://127.0.0.1:50098".to_string();
364369
}
365370

366-
/// Launch the server
371+
/// Get all slaves connected to the master
372+
///
373+
/// Args:
374+
/// addr (str): The URL address of the master
375+
/// Returns:
376+
/// tuple: The slave ids and device names
367377
#[pyfunction]
368378
pub fn get_all_slaves_in_network(addr: &str) -> (Vec<u16>, Vec<String>) {
369379
let addr_uri = match addr.parse::<Uri>() {

0 commit comments

Comments
 (0)