UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
JsonMng.JsonComm 類別 參考文件

公開方法(Public Methods)

 __init__ (self, comm_to_ptr, comm_type)
 使用給定的通信指針和類型初始化一個新實例。
 
 get_ptr_comm (self)
 獲取 TCP 通信實例。
 
 set_using_data_port (self, using_data_port)
 如果使用 USB Comm,則設置為 True。
 
 start (self)
 
 stop (self)
 停止 JSON 通信。
 
 stop_ex (self)
 JSON 通信的擴展停止功能。
 

公開屬性

 using_data_port
 
 m_th_is_running
 

建構子與解構子說明文件

◆ __init__()

JsonMng.JsonComm.__init__ ( self,
comm_to_ptr,
comm_type )

使用給定的通信指針和類型初始化一個新實例。

參數
comm_to_ptr通信實例的指針。
comm_type通信類型。
傳回值
已初始化的 JsonComm 實例,如果無法創建對象,則為 nil。

函式成員說明文件

◆ get_ptr_comm()

JsonMng.JsonComm.get_ptr_comm ( self)

獲取 TCP 通信實例。

傳回值
指向 TcpComm 實例的指針。

◆ set_using_data_port()

JsonMng.JsonComm.set_using_data_port ( self,
using_data_port )

如果使用 USB Comm,則設置為 True。

參數
using_data_port如果使用 USBComm,則為 True,否則為 False。

◆ start()

JsonMng.JsonComm.start ( self)
@~English
@brief Starts the JSON communication.

@~Chinese
@brief 启动 JSON 通信。

@~Chinese-Traditional
@brief 啟動 JSON 通信。

◆ stop()

JsonMng.JsonComm.stop ( self)

停止 JSON 通信。

◆ stop_ex()

JsonMng.JsonComm.stop_ex ( self)

JSON 通信的擴展停止功能。

資料成員說明文件

◆ m_th_is_running

JsonMng.JsonComm.m_th_is_running

◆ using_data_port

JsonMng.JsonComm.using_data_port

此類別(class) 文件是由下列檔案中產生: