|
|
@ -166,4 +166,19 @@ void TestPageCmdImpl::initialize() { |
|
|
|
m_msgProcesser->registerMsgProcesser("DBDBTestPage__extValBoardIsOnline", BIND(TestPageCmdImpl::DBDBTestPage__extValBoardIsOnline)); |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
m_msgProcesser->registerMsgProcesser("TestPage_printerTest", BIND(TestPageCmdImpl::TestPage_printerTest)); |
|
|
|
} |
|
|
|
|
|
|
|
void TestPageCmdImpl::TestPage_printerTest(json& cmd, json& receipt) { |
|
|
|
logger->info("TestPage_printerTest"); |
|
|
|
m_deviceIoControlService->printerPrintf("你好中国\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("abcdefghijklmnopqrstuvwxyz\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("ABCDEFGHIJKLMNOPQRSTUVWXYZ\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("0123456789\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("+_)(*&^%$#@!~`-=[]\\{}|;':\",./<>?\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("\n"); |
|
|
|
m_deviceIoControlService->printerPrintf("\n"); |
|
|
|
return; |
|
|
|
} |