UniPRT 軟體開發套件 v1.0.0.0-.a (C++ 靜態函式庫)
 
載入中...
搜尋中...
無符合項目
JsonSDK.cpp 檔案參考文件
#include "JsonSDK.h"
#include "JsonMng.h"
#include "RfidMonitor.h"
#include "OdvMonitor.h"
#include "PrinterMonitor.h"
#include "SettingsReadWrite.h"
#include "JsonConfig.h"
JsonSDK.cpp的包含相依圖:

函式

void MessengerGet (void *ptrComm, COMM_TYP commTyp, int maxInputMsgCapacity, bool usingDataPort)
 建立一個頻道,用於發送/接收管理訊息,並指定最大容量。
 
void MessengerRelease ()
 釋放訊息傳輸介面資源
 
void MessengerSendMsg (char *strCommand, char *strContent)
 向印表機發送管理指令和資料/內容。
 
void MessengerReadNextMsg (const char **strNextMsg)
 讀取已經從印表機非同步接收的下一則訊息。
 
void MessengerSendMsgAndWaitForResponse (char *strCommand, char *strContent, int maxWaitTimeSecs, const char **strResponse)
 將管理命令和數據/內容發送到印表機,並等待 maxWaitTimeSecs 秒的回應。
 
int MessengerUnreadMsgCount ()
 獲取未讀消息的數量。
 
void RfidMonitorConnection (char *lpAddress)
 使用網路介面 (NET Interface) 連接印表機以啟用 RFID 監控功能。
 
void OdvMonitorConnection (char *lpAddress)
 使用網路介面 (NET Interface) 連接印表機以啟用 ODV 監控功能。
 
void PrinterMonitorConnection (char *lpAddress, INFO_TYP InfoTyp)
 使用網路介面 (NET Interface) 連接印表機以啟用印表機監控功能。
 
void GetPrinterInfo (stPrinterInfo *pPrtInfo, INFO_TYP InfoTyp)
 獲取印表機功能的相關信息。
 
bool GetRfidReportListening ()
 獲取 RFID 報告監聽的標誌。
 
void SetRfidReportListening (bool value)
 設置 RFID 報告監聽的標誌。
 
bool GetOdvReportListening ()
 獲取 ODV 報告監聽的標誌。
 
void SetOdvReportListening (bool value)
 設置 ODV 報告監聽的標誌。
 
void RfidMonitorDispose ()
 釋放 RFID 監控資源。
 
void OdvMonitorDispose ()
 釋放 ODV 監控資源。
 
void PrinterMonitorDispose (INFO_TYP InfoTyp)
 釋放印表機監控資源。
 
void SetRfidReportCallback (void callback(const RfidReport &report))
 設置一個回調函數來獲取 RFID 報告。
 
void SetOdvReportCallback (void callback(const OdvReport &report))
 設置一個回調函數來獲取 ODV 報告。
 
void SetEngineStatusListening (bool value)
 設置印表機報告監聽引擎狀態的標誌。
 
void SetDisplayStatusListening (bool value)
 設置印表機報告監聽螢幕狀態的標誌。
 
void SetAlertStatusListening (bool value)
 設置印表機報告監聽警報狀態的標誌。
 
bool GetEngineStatusListening ()
 獲取引擎狀態監聽的標誌。
 
bool GetDisplayStatusListening ()
 獲取顯示狀態監聽的標誌。
 
bool GetAlertStatusListening ()
 獲取警報狀態監聽的標誌。
 
void SetEngineStatusCallback (void callback(const std::string &engineState))
 設置印表機報告監聽警報狀態的標誌。
 
void SetDisplayStatusCallback (void callback(const std::vector< std::string > &newDisplayText))
 設置印表機報告監聽螢幕狀態的標誌。
 
void SetAlertStatusCallback (void callback(const std::vector< std::string > &alert))
 設置一個回傳數來獲取警報狀態。
 
char * GetPrinterAllValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort)
 獲取印表機的所有設置。
 
char * GetPrinterValue (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key)
 獲取印表機的單一設置。
 
char * GetPrinterValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const std::vector< std::string > &keys)
 獲取印表機的多個設置。
 
bool SetPrinterValue (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key, const char *value)
 設定印表機的單一設置。
 
bool SetPrinterValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, std::map< std::string, std::string > *keysToSet)
 設定印表機的多個設置。
 
char * GetPrinterProperties (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key)
 獲取印表機的單一屬性。
 
char * GetPrinterPropertiesEx (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *keys[], size_t count)
 獲取印表機的多個屬性。
 
char * GetPrinterAllProperties (void *ptrComm, COMM_TYP commTyp, bool usingDataPort)
 獲取印表機的所有屬性。
 
void FreeString (char *str)
 釋放字串資源。
 
char * GetPrinterConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, int CfgNumber)
 獲取印表機的單一組態設定。
 
bool SetPrinterConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, char *pConfig)
 設定印表機的單一組態設定。
 
char * GetPrinterAllConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort)
 獲取印表機的所有組態設定。
 

變數

static JsonMessenger gJsonMessenger
 
static RfidMonitor gRfidMonitor
 
static RfidReport gRfidReport
 
static OdvMonitor gOdvMonitor
 
static PrinterMonitor gPrinterMonitor_Rfid
 
static PrinterMonitor gPrinterMonitor_Odv
 
static PrinterMonitor gPrinterMonitor
 
static std::string AllMsg
 

函式說明文件

◆ FreeString()

void FreeString ( char * str)

釋放字串資源。

參數
[in]str: 字串資源
傳回值
程式碼
FreeString(AllProperties);
void FreeString(char *str)
釋放字串資源。
Definition JsonSDK.cpp:1995

◆ GetAlertStatusListening()

bool GetAlertStatusListening ( )

獲取警報狀態監聽的標誌。

傳回值
bool

◆ GetDisplayStatusListening()

bool GetDisplayStatusListening ( )

獲取顯示狀態監聽的標誌。

傳回值
bool

◆ GetEngineStatusListening()

bool GetEngineStatusListening ( )

獲取引擎狀態監聽的標誌。

傳回值
bool

◆ GetOdvReportListening()

bool GetOdvReportListening ( )

獲取 ODV 報告監聽的標誌。

傳回值
bool

◆ GetPrinterAllConfig()

char * GetPrinterAllConfig ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort )

獲取印表機的所有組態設定。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
傳回值
char*
程式碼
char* pAllConfig = pGetPrinterAllConfig(commPtr, commTyp, false);

◆ GetPrinterAllProperties()

char * GetPrinterAllProperties ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort )

獲取印表機的所有屬性。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
傳回值
char*
程式碼
char* AllProperties = GetPrinterAllProperties(commPtr, commTyp, false);
char * GetPrinterAllProperties(void *ptrComm, COMM_TYP commTyp, bool usingDataPort)
獲取印表機的所有屬性。
Definition JsonSDK.cpp:1914

◆ GetPrinterAllValues()

char * GetPrinterAllValues ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort )

獲取印表機的所有設置。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
傳回值
char*
程式碼
char* values = GetPrinterAllValues(commPtr, commTyp, false);
char * GetPrinterAllValues(void *ptrComm, COMM_TYP commTyp, bool usingDataPort)
獲取印表機的所有設置。
Definition JsonSDK.cpp:1344

◆ GetPrinterConfig()

char * GetPrinterConfig ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
int CfgNumber )

獲取印表機的單一組態設定。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]CfgNumber: 組態設定索引值, 範圍是 0~8
傳回值
char*
程式碼
char* pConfig = pGetPrinterConfig(commPtr, commTyp, false, 2);

◆ GetPrinterInfo()

void GetPrinterInfo ( stPrinterInfo * pPrtInfo,
INFO_TYP InfoTyp )

獲取印表機功能的相關信息。

參數
[out]pPrtInfo: 用來存儲印表機信息的結構體
[in]InfoTyp: 設置 RFID 或 ODV 信息的類型
傳回值
程式碼
PrinterInfo PrtInfo;
GetPrinterInfo(&PrtInfo, INFO_TYP::PRINTER_TYP);
void GetPrinterInfo(stPrinterInfo *pPrtInfo, INFO_TYP InfoTyp)
獲取印表機功能的相關信息。
Definition JsonSDK.cpp:727

◆ GetPrinterProperties()

char * GetPrinterProperties ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
const char * key )

獲取印表機的單一屬性。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]key印表機設置的一個鍵值
傳回值
char*
程式碼
std::string key = "Speed.Print-mmps";
char* Properties = GetPrinterProperties(commPtr, commTyp, false, key.c_str());
char * GetPrinterProperties(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key)
獲取印表機的單一屬性。
Definition JsonSDK.cpp:1730

◆ GetPrinterPropertiesEx()

char * GetPrinterPropertiesEx ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
const char * keys[],
size_t count )

獲取印表機的多個屬性。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]keyProps印表機設置的多個鍵值
[in]keyCount鍵值數量
傳回值
char*
程式碼
const char* keyProps[] = { "Speed", "Label.Sensor" };
size_t keyCount = sizeof(keyProps) / sizeof(keyProps[0]);
char* PropertiesEx = GetPrinterPropertiesEx(commPtr, commTyp, false, keyProps, keyCount);
char * GetPrinterPropertiesEx(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *keys[], size_t count)
獲取印表機的多個屬性。
Definition JsonSDK.cpp:1827

◆ GetPrinterValue()

char * GetPrinterValue ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
const char * key )

獲取印表機的單一設置。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]key印表機設置的一個鍵值
傳回值
char*
程式碼
const std::string& key = "Ethernet.MAC";
char* value = GetPrinterValue(commPtr, commTyp, false, key.c_str());
char * GetPrinterValue(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key)
獲取印表機的單一設置。
Definition JsonSDK.cpp:1424

◆ GetPrinterValues()

char * GetPrinterValues ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
const std::vector< std::string > & keys )

獲取印表機的多個設置。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]keys印表機設置的多個鍵值
傳回值
char*
程式碼
std::vector<std::string> keys = { "Ethernet.IP", "Ethernet.MAC", "Ethernet.Speed" };
char* values = GetPrinterValues(commPtr, commTyp, false, keys);
char * GetPrinterValues(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const std::vector< std::string > &keys)
獲取印表機的多個設置。
Definition JsonSDK.cpp:1499

◆ GetRfidReportListening()

bool GetRfidReportListening ( )

獲取 RFID 報告監聽的標誌。

傳回值
bool

◆ MessengerGet()

void MessengerGet ( void * ptrComm,
COMM_TYP commTyp,
int maxInputMsgCapacity,
bool usingDataPort )

建立一個頻道,用於發送/接收管理訊息,並指定最大容量。

參數
[out]ptrComm: 介面指標
[in]commTyp: 介面種類
[in]maxInputMsgCapacity: 最大訊息輸入容量, 預設 MAX_INPUT_MSG_CAPACITY(20)
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
傳回值
程式碼
std::string content;
COMM_TYP commTyp = COMM_TYP::TCP_COMM;
void* commPtr = NULL;
MessengerGet(commPtr, commTyp, MAX_INPUT_MSG_CAPACITY, false);
void MessengerGet(void *ptrComm, COMM_TYP commTyp, int maxInputMsgCapacity, bool usingDataPort)
建立一個頻道,用於發送/接收管理訊息,並指定最大容量。
Definition JsonSDK.cpp:244

◆ MessengerReadNextMsg()

void MessengerReadNextMsg ( const char ** strNextMsg)

讀取已經從印表機非同步接收的下一則訊息。

參數
[out]strNextMsg: 用來存儲下一個返回消息的緩衝區
傳回值
程式碼
const char* strNextMsg = new char[MAX_BUFSIZE];
MessengerReadNextMsg(&strNextMsg);
if (!_bAsyncListening)
break;
if (strNextMsg != NULL)
{
std::string str(strNextMsg);
currentText += str;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "Response:";
std::cout << currentText << std::endl;
}
delete[] strNextMsg;
void MessengerReadNextMsg(const char **strNextMsg)
將下一條可能已從印表機異步接收的消息讀取出來。
Definition JsonSDK.cpp:426

◆ MessengerRelease()

void MessengerRelease ( )

釋放訊息傳輸介面資源

傳回值
程式碼
void MessengerRelease()
釋放訊息傳輸介面資源
Definition JsonSDK.cpp:280

◆ MessengerSendMsg()

void MessengerSendMsg ( char * strCommand,
char * strContent )

向印表機發送管理指令和資料/內容。

參數
[in]strCommand: 管理指令字串
[in]strContent: 管理資料/內容字串
傳回值
程式碼
char* pCmdStr = (char*)"Cfg.Item";
std::string content;
content += "{\r\n";
content += "\"Speed\" : null,\r\n";
content += "\"ODV.Symbol\" : null,\r\n";
content += "\"Label.Sensor\":null\r\n";
content += "}\r\n";
const char* pContentStr = content.c_str();
MessengerSendMsg(pCmdStr, (char*)pContentStr);
void MessengerSendMsg(char *strCommand, char *strContent)
向印表機發送管理指令和資料/內容。
Definition JsonSDK.cpp:345

◆ MessengerSendMsgAndWaitForResponse()

void MessengerSendMsgAndWaitForResponse ( char * strCommand,
char * strContent,
int maxWaitTimeSecs,
const char ** strResponse )

將管理命令和數據/內容發送到印表機,並等待 maxWaitTimeSecs 秒的回應。

參數
[in]strCommand: 一個管理命令字符串
[in]strContent: 一個管理數據/內容字符串
[in]maxWaitTimeSecs: 最大等待時間
[out]strResponse: 用來存儲 JSON 字符串回應的緩衝區
傳回值
程式碼
#define MAX_WAIT_TIME_SECS 5
char* pCmdStr = (char*)"Cfg.Item";
std::string content;
content += "{\r\n";
content += "\"Speed\" : null,\r\n";
content += "\"ODV.Symbol\" : null,\r\n";
content += "\"Label.Sensor\":null\r\n";
content += "}\r\n";
const char* pContentStr = content.c_str();
const char* strResponse = NULL;
MessengerSendMsgAndWaitForResponse(pCmdStr, (char*)pContentStr, MAX_WAIT_TIME_SECS, &strResponse);
void MessengerSendMsgAndWaitForResponse(char *strCommand, char *strContent, int maxWaitTimeSecs, const char **strResponse)
將管理命令和數據/內容發送到印表機,並等待 maxWaitTimeSecs 秒的回應。
Definition JsonSDK.cpp:514

◆ MessengerUnreadMsgCount()

int MessengerUnreadMsgCount ( )

獲取未讀消息的數量。

傳回值
int
程式碼
int iUnreadMsgCount = MessengerUnreadMsgCount();
int MessengerUnreadMsgCount()
獲取未讀消息的數量。
Definition JsonSDK.cpp:553

◆ OdvMonitorConnection()

void OdvMonitorConnection ( char * lpAddress)

使用網路介面 (NET Interface) 連接印表機以啟用 ODV 監控功能。

參數
[in]lpAddress: IP 位址
傳回值
程式碼
std::string ptrIpOdv = "10.0.10.171";
pOdvMonitorConnection((char*)ptrIpOdv.c_str());

◆ OdvMonitorDispose()

void OdvMonitorDispose ( )

釋放 ODV 監控資源。

傳回值

◆ PrinterMonitorConnection()

void PrinterMonitorConnection ( char * lpAddress,
INFO_TYP InfoTyp )

使用網路介面 (NET Interface) 連接印表機以啟用印表機監控功能。

參數
[in]lpAddress: IP 位址
傳回值
程式碼
std::string ptrIpRfid = "10.0.10.178";
RfidMonitorConnection((char*)ptrIpRfid.c_str());
PrinterMonitorConnection((char*)ptrIpRfid.c_str(), INFO_TYP::RFID_TYP);
void PrinterMonitorConnection(char *lpAddress, INFO_TYP InfoTyp)
使用網路介面 (NET Interface) 連接印表機以啟用印表機監控功能。
Definition JsonSDK.cpp:678
void RfidMonitorConnection(char *lpAddress)
使用網路介面 (NET Interface) 連接印表機以啟用 RFID 監控功能。
Definition JsonSDK.cpp:594

◆ PrinterMonitorDispose()

void PrinterMonitorDispose ( INFO_TYP InfoTyp)

釋放印表機監控資源。

傳回值

◆ RfidMonitorConnection()

void RfidMonitorConnection ( char * lpAddress)

使用網路介面 (NET Interface) 連接印表機以啟用 RFID 監控功能。

參數
[in]lpAddress: IP 位址
傳回值
程式碼
std::string ptrIpRfid = "10.0.10.178";
RfidMonitorConnection((char*)ptrIpRfid.c_str());

◆ RfidMonitorDispose()

void RfidMonitorDispose ( )

釋放 RFID 監控資源。

傳回值

◆ SetAlertStatusCallback()

void SetAlertStatusCallback ( void callbackconst std::vector< std::string > &alert)

設置一個回傳數來獲取警報狀態。

參數
[in]callback:a callback function
傳回值
void
Sample
SetAlertStatusCallback(PtrAlertNoticeListener);
void SetAlertStatusCallback(void callback(const std::vector< std::string > &alert))
設置一個回傳數來獲取警報狀態。
Definition JsonSDK.cpp:1298

設置印表機報告監聽警報狀態的標誌。

參數
[in]callback:回調函數
傳回值
程式碼
SetAlertStatusCallback(PtrAlertNoticeListener);

◆ SetAlertStatusListening()

void SetAlertStatusListening ( bool value)

設置印表機報告監聽警報狀態的標誌。

參數
[in]value: 用來設置印表機報告監聽的標誌
傳回值
程式碼
void SetAlertStatusListening(bool value)
設置印表機報告監聽警報狀態的標誌。
Definition JsonSDK.cpp:1119

◆ SetDisplayStatusCallback()

void SetDisplayStatusCallback ( void callbackconst std::vector< std::string > &newDisplayText)

設置印表機報告監聽螢幕狀態的標誌。

參數
[in]callback:回調函數
傳回值
程式碼
SetEngineStatusCallback(PtrEngineStatusNoticeListener);
void SetEngineStatusCallback(void callback(const std::string &engineState))
設置印表機報告監聽警報狀態的標誌。
Definition JsonSDK.cpp:1223

◆ SetDisplayStatusListening()

void SetDisplayStatusListening ( bool value)

設置印表機報告監聽螢幕狀態的標誌。

參數
[in]value: 用來設置印表機報告監聽的標誌
傳回值
程式碼
void SetDisplayStatusListening(bool value)
設置印表機報告監聽螢幕狀態的標誌。
Definition JsonSDK.cpp:1081

◆ SetEngineStatusCallback()

void SetEngineStatusCallback ( void callbackconst std::string &engineState)

設置印表機報告監聽警報狀態的標誌。

參數
[in]callback:回調函數
傳回值
程式碼
SetEngineStatusCallback(PtrEngineStatusNoticeListener);

◆ SetEngineStatusListening()

void SetEngineStatusListening ( bool value)

設置印表機報告監聽引擎狀態的標誌。

參數
[in]value: 用來設置印表機報告監聽的標誌
傳回值
程式碼
void SetEngineStatusListening(bool value)
設置印表機報告監聽引擎狀態的標誌。
Definition JsonSDK.cpp:1044

◆ SetOdvReportCallback()

void SetOdvReportCallback ( void callbackconst OdvReport &report)

設置一個回調函數來獲取 ODV 報告。

參數
[in]callback:回調函數
傳回值
程式碼
SetOdvReportCallback(OdvReportCallback);
void SetOdvReportCallback(void callback(const OdvReport &report))
設置一個回調函數來獲取 ODV 報告。
Definition JsonSDK.cpp:1006

◆ SetOdvReportListening()

void SetOdvReportListening ( bool value)

設置 ODV 報告監聽的標誌。

參數
[in]value: 用來設置 ODV 報告監聽的標誌
傳回值
程式碼
void SetRfidReportListening(bool value)
設置 RFID 報告監聽的標誌。
Definition JsonSDK.cpp:800

◆ SetPrinterConfig()

bool SetPrinterConfig ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
char * pConfig )

設定印表機的單一組態設定。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]pConfig: 組態設定
傳回值
bool
程式碼
char* pConfig = pGetPrinterConfig(commPtr, commTyp, false, 2);
bool result = pSetPrinterConfig(commPtr, commTyp, false, pConfig);

◆ SetPrinterValue()

bool SetPrinterValue ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
const char * key,
const char * value )

設定印表機的單一設置。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]key印表機設置的一個鍵值
[in]value一個印表機設置值
傳回值
bool
程式碼
const std::string _key = "Ethernet.Speed";
const std::string _value = "eAutomatic";
bool result = SetPrinterValue(commPtr, commTyp, false, _key.c_str(), _value.c_str());
bool SetPrinterValue(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key, const char *value)
設定印表機的單一設置。
Definition JsonSDK.cpp:1581

◆ SetPrinterValues()

bool SetPrinterValues ( void * ptrComm,
COMM_TYP commTyp,
bool usingDataPort,
std::map< std::string, std::string > * keysToSet )

設定印表機的多個設置。

參數
[in]commPtr: 介面指標
[in]commTyp: 介面種類
[in]usingDataPort: 使用資料埠傳輸, 預設是 false
[in]keysToSet印表機設置的多個鍵值
傳回值
bool
程式碼
std::map<std::string, std::string> keyValues = {
{"Ethernet.Speed", "eAutomatic"},
{"Image.Width-in", "3.5"}
};
bool result = SetPrinterValues(commPtr, commTyp, false, &keyValues);
bool SetPrinterValues(void *ptrComm, COMM_TYP commTyp, bool usingDataPort, std::map< std::string, std::string > *keysToSet)
設定印表機的多個設置。
Definition JsonSDK.cpp:1660

◆ SetRfidReportCallback()

void SetRfidReportCallback ( void callbackconst RfidReport &report)

設置一個回調函數來獲取 RFID 報告。

參數
[in]callback:回調函數
傳回值
程式碼
SetRfidReportCallback(RfidReportCallback);
void SetRfidReportCallback(void callback(const RfidReport &report))
設置一個回調函數來獲取 RFID 報告。
Definition JsonSDK.cpp:968

◆ SetRfidReportListening()

void SetRfidReportListening ( bool value)

設置 RFID 報告監聽的標誌。

參數
[in]value: 用來設置 RFID 報告監聽的標誌
傳回值
程式碼

變數說明文件

◆ AllMsg

std::string AllMsg
static

◆ gJsonMessenger

JsonMessenger gJsonMessenger
static

◆ gOdvMonitor

OdvMonitor gOdvMonitor
static

◆ gPrinterMonitor

PrinterMonitor gPrinterMonitor
static

◆ gPrinterMonitor_Odv

PrinterMonitor gPrinterMonitor_Odv
static

◆ gPrinterMonitor_Rfid

PrinterMonitor gPrinterMonitor_Rfid
static

◆ gRfidMonitor

RfidMonitor gRfidMonitor
static

◆ gRfidReport

RfidReport gRfidReport
static