Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
All config and template files attached in the zip file. The properties correctly readout when printed from the luascriptresource - I just can't get them to update in composer
I feel you are missing some fields in your config.lua file.
If you can please try below config.lua file,
///////////////////////////
scripts.log_level = "INFO"
scripts.log_audit_target = "file://" or "http://"
scripts.log_publish_directory = "/_tw_logs/"
scripts.log_publish_level = "INFO"
scripts.log_max_file_storage = "2000000"
scripts.log_auto_flush = "true"
scripts.log_flush_chunk_size = "16384"
scripts.log_buffer_size = "4096"
scripts.fips_enabled = false
--
-- Connection parameters
--
scripts.rap_host = "10.0.2.15"
scripts.rap_port = "8001"
scripts.rap_ssl = false
scripts.rap_server_authenticate = false
scripts.rap_deny_selfsigned = true
scripts.rap_validate = false
--
-- HTTP Server Configuration
--
scripts.script_resource_host = "localhost"
scripts.script_resource_port = "8000"
scripts.script_resource_ssl = false
scripts.script_resource_use_default_certificate = false
scripts.ThingName = {
file = "thing.lua",
template = "template_thing",
taskRate = 30000,
scanRate = 1000
}
-------------------------------------------------------------------------------
-- Example integration script
-------------------------------------------------------------------------------
--
-- See etc/custom/scripts/sample.lua for implementation details.
scripts.sample = {
file = "sample.lua"
}
/////////////////////////////////