The WISP extended runtime class.
More...
|
def | __init__ (self, antennas=[1], n_tags_per_report=5, kwargs) |
| The WISP extended runtime constructor. More...
|
|
def | add_service (self, name, factory, args, kwargs) |
| Add a service class to runtime. More...
|
|
def | start (self, server, port) |
| Start WISP extended runtime. More...
|
|
def | stop (self) |
| Stop WISP extended runtime. More...
|
|
The WISP extended runtime class.
◆ __init__()
def wisp_ert.runtime.Runtime.__init__ |
( |
|
self, |
|
|
|
antennas = [1] , |
|
|
|
n_tags_per_report = 5 , |
|
|
|
kwargs |
|
) |
| |
The WISP extended runtime constructor.
- Parameters
-
antennas | Antennas to be enabled. |
n_tags_per_report | Number of tags per tag report. |
kwargs | Other arguments. |
◆ _handle_new_client()
def wisp_ert.runtime.Runtime._handle_new_client |
( |
|
self, |
|
|
|
connection |
|
) |
| |
|
private |
Handle new WISP client.
- Parameters
-
connection | New WTP connection. |
◆ _service_constants()
def wisp_ert.runtime.Runtime._service_constants |
( |
|
self, |
|
|
|
connection, |
|
|
|
name |
|
) |
| |
|
private |
Get service C constants by service name.
- Parameters
-
connection | WTP connection. |
name | Service name. |
- Returns
- Respective service C constants in binary format.
◆ _wtp_recv_cb()
def wisp_ert.runtime.Runtime._wtp_recv_cb |
( |
|
self, |
|
|
|
connection, |
|
|
|
data |
|
) |
| |
|
private |
WTP on message received callback.
- Parameters
-
connection | WTP connection. |
data | Received data. |
◆ add_service()
def wisp_ert.runtime.Runtime.add_service |
( |
|
self, |
|
|
|
name, |
|
|
|
factory, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Add a service class to runtime.
- Parameters
-
name | Name of the service. |
factory | Service instance factory. |
args | Arguments to be passed to service factory. |
kwargs | Keyword arguments to be passed to service factory. |
◆ start()
def wisp_ert.runtime.Runtime.start |
( |
|
self, |
|
|
|
server, |
|
|
|
port |
|
) |
| |
Start WISP extended runtime.
- Parameters
-
server | LLRP reader IP or domain name. |
port | LLRP reader port. |
◆ stop()
def wisp_ert.runtime.Runtime.stop |
( |
|
self | ) |
|
Stop WISP extended runtime.
◆ _clients
wisp_ert.runtime.Runtime._clients |
|
private |
WTP connection to services mapping.
◆ _services
wisp_ert.runtime.Runtime._services |
|
private |
◆ _services_factory
wisp_ert.runtime.Runtime._services_factory |
|
private |
◆ _wtp_ep
wisp_ert.runtime.Runtime._wtp_ep |
|
private |
The documentation for this class was generated from the following file: