コード例 #1
0
 def __init__(self, file_xml):
     ProxyCoAP.__init__(self)
     self._mapping = {}
     root = Resource('root', visible=False, observable=False, allow_children=True)
     root.path = '/'
     self.root = Tree(root)
     self.file_xml = file_xml
コード例 #2
0
 def __init__(self, host, port, client):
     ProxyCoAP.__init__(self, (host, port), client)
     print "CoAP Forward Proxy start on " + host + ":" + str(port)