File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,11 @@ impl PyPoulpeRemoteClient {
344
344
}
345
345
346
346
/// 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
347
352
#[ pyfunction]
348
353
#[ pyo3( signature = ( file_name=None ) ) ]
349
354
pub fn launch_server ( file_name : Option < & str > ) -> String {
@@ -363,7 +368,12 @@ pub fn launch_server(file_name: Option<&str>) -> String {
363
368
return "http://127.0.0.1:50098" . to_string ( ) ;
364
369
}
365
370
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
367
377
#[ pyfunction]
368
378
pub fn get_all_slaves_in_network ( addr : & str ) -> ( Vec < u16 > , Vec < String > ) {
369
379
let addr_uri = match addr. parse :: < Uri > ( ) {
You can’t perform that action at this time.
0 commit comments