daasiot_python
cli Namespace Reference

Classes

class  MyHandler

Functions

 init (int sid, int din, str config=typer.Option("config.json", help="Path to config file"))
 enable_driver (str link, str uri)
 map (int din, str link, str uri)
 perform (str mode=typer.Option("PERFORM_CORE_THREAD", help="Execution mode"))
 push (int din, str message)
 pull (int din)

Variables

 app = typer.Typer(help="DaaS-IoT Python CLI")
 node = None

Function Documentation

◆ enable_driver()

cli.enable_driver ( str link,
str uri )
Enable a driver on the node.

Example:
    enable-driver _LINK_INET4 127.0.0.1:2222

Definition at line 62 of file cli.py.

◆ init()

cli.init ( int sid,
int din,
str config = typer.Option("config.json", help="Path to config file") )
Initialize a DaaS-IoT node with given SID and DIN.

Definition at line 50 of file cli.py.

◆ map()

cli.map ( int din,
str link,
str uri )
Map a remote node in the DaaS network.

Definition at line 78 of file cli.py.

◆ perform()

cli.perform ( str mode = typer.Option("PERFORM_CORE_THREAD", help="Execution mode"))
Start the internal processing loop.

Definition at line 91 of file cli.py.

◆ pull()

cli.pull ( int din)
Pull messages manually from a remote node.

Definition at line 121 of file cli.py.

◆ push()

cli.push ( int din,
str message )
Push a text message to a remote node.

Definition at line 104 of file cli.py.

Variable Documentation

◆ app

cli.app = typer.Typer(help="DaaS-IoT Python CLI")

Definition at line 4 of file cli.py.

◆ node

cli.node = None

Definition at line 7 of file cli.py.