mqtt/client.py
changeset 3985 d0c5d77a33af
parent 3984 883a85b9ebcc
child 3986 98bd0bb33ce4
equal deleted inserted replaced
3984:883a85b9ebcc 3985:d0c5d77a33af
   120         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   120         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   121 
   121 
   122         with open(c_path, 'w') as c_file:
   122         with open(c_path, 'w') as c_file:
   123             c_file.write(c_code)
   123             c_file.write(c_code)
   124 
   124 
   125         LDFLAGS = [' "' + os.path.join(PahoMqttCLibraryPath, "libpaho-mqtt3as.a") + '"', '-lcrypto']
   125         LDFLAGS = [' "' + os.path.join(PahoMqttCLibraryPath, "libpaho-mqtt3cs.a") + '"', '-lssl', '-lcrypto']
   126 
   126 
   127         CFLAGS = ' '.join(['-I"' + path + '"' for path in PahoMqttCIncludePaths])
   127         CFLAGS = ' '.join(['-I"' + path + '"' for path in PahoMqttCIncludePaths])
   128 
   128 
   129         return [(c_path, CFLAGS)], LDFLAGS, True
   129         return [(c_path, CFLAGS)], LDFLAGS, True
   130 
   130