1 2 3 4 5 6 7 | instanceOptions.encoding = SML_WBXML; instanceOptions.workspaceName ="MyWorkspace"; instanceOptions.workspaceSize =20000; callbacks.addCmdFunc = &handleAddCmdFunc; ...rc = smlInitInstance(callbacks, instanceOptions, &instanceID); |
1 2 3 | smlProcessData(instanceID, // pass the instance SML_ALL_COMMANDS, // parse entire Msg pUserData); // a void ptr |
1 2 3 4 5 | pAddStruct->elementType = SML_PE_ADD; pAddStruct->cmdID = ... ; pAddStruct->itemList = ... ; pAddStruct->cred = ... ; smlAddCmd(instanceID, pAddStruct); |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |