opc_ua/client.py
branchwxPython4
changeset 3612 428fb2472f43
parent 3611 2c041d3d6ee3
child 3643 c6068b674b30
equal deleted inserted replaced
3611:2c041d3d6ee3 3612:428fb2472f43
   128     def CTNGenerate_C(self, buildpath, locations):
   128     def CTNGenerate_C(self, buildpath, locations):
   129         current_location = self.GetCurrentLocation()
   129         current_location = self.GetCurrentLocation()
   130         locstr = "_".join(map(str, current_location))
   130         locstr = "_".join(map(str, current_location))
   131         c_path = os.path.join(buildpath, "opcua_client__%s.c" % locstr)
   131         c_path = os.path.join(buildpath, "opcua_client__%s.c" % locstr)
   132 
   132 
   133         c_code = self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   133         c_code = '#include "beremiz.h"\n'
       
   134         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   134 
   135 
   135         with open(c_path, 'wb') as c_file:
   136         with open(c_path, 'wb') as c_file:
   136             c_file.write(c_code)
   137             c_file.write(c_code)
   137 
   138 
   138         LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']
   139         LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']