●方法定义
get_tagType(self, tagID)
●方法参数说明
参数名称 |
参数说明 |
参数类型 |
默认值 |
tagID |
标签的ID |
数字类型 |
|
●异常
如果调用失败,抛出hyperdb.HDError异常
●返回值
tag的类型(例如 ‘int8’),返回值类型为string
●方法调用
def GetTagType(self):
tagname = ["testtag"]
try:
tag_ID = self.myTagMgr.get_tagIDs(tagnames=tagname)
except Exception as e:
print("get_tagIDs error", e.errcode)
try:
tag_type = self.myTagMgr.get_tagType(tagID=tag_ID[1][0])
except Exception as e:
print("get_tagType error", e.errcode)
else:
print("getting tag_type:", tag_type, " succeeds")