lib/imperituroard/projects/iot.rb in imperituroard-1.1.4 vs lib/imperituroard/projects/iot.rb in imperituroard-1.1.5
- old
+ new
@@ -226,10 +226,11 @@
im_li.append(sd["devices"])
end
imei_list = im_li
input_json = {:request_full => request_full}
+ input_json22 = {:login => login, :imei_list => imei_list}
resp_out = {}
begin
thr1 = Thread.new do
if add_functions_connector.check_input_1(login, imei_list)[:code]==200
@@ -365,10 +366,10 @@
rescue
resp_out = {:code => 507, :result => "Unknown SDK error"}
end
thr1.join
- resp_out[:body][:tosoapgw] = internal_func.iot_create_dev_soapgw_answer(input_json, resp_out)
+ resp_out[:body][:tosoapgw] = internal_func.iot_create_dev_soapgw_answer(input_json22, resp_out)
mongo_client.audit_logger("add_device_to_profile", remote_ip, input_json, resp_out, real_ip, {})
resp_out
end