|
# bDumpAll 导出所有节点 0 1
def dumpNodeXml(self, bDumpAll):
ret = False
if self._handle > 0:
self._rpc.dumpNodeXml.argtypes = [ctypes.c_long, ctypes.c_int]
self._rpc.dumpNodeXml.restype = ctypes.c_void_p
ptr = self._rpc.dumpNodeXml(self._handle, bDumpAll)
if ptr is not None:
p2 = ctypes.cast(ptr, ctypes.c_char_p)
ret = p2.value.decode("utf-8")
# 释放指针内存
self._rpc.freeRpcPtr.argtypes = [ctypes.c_void_p]
self._rpc.freeRpcPtr(ptr)
return ret
有概率这个方法卡死,触发时间多为设备刚启动的时候。
|
|