local args = {
name='APP00000040',
inst='modbus_1',
version=36,
conf={
port='/dev/ttyS1'
}
}
local action_id = 'this_is_an_example_unique_id'
local r, err = skynet.call(".upgrader", "lua", "install_app", action_id, args)
local args = {
name='APP00000040',
inst='modbus_1',
version=39
}
local action_id = 'this_is_an_example_unique_id'
local r, err = skynet.call(".upgrader", "lua", "upgrade_app", action_id, args)
local args = {
inst='modbus_1',
new_name='modbus_2'
}
local action_id = 'this_is_an_example_unique_id'
local r, err = skynet.call(".upgrader", "lua", "rename_app", action_id, args)
local args = {
inst='modbus_1'
}
local action_id = 'this_is_an_example_unique_id'
local r, err = skynet.call(".upgrader", "lua", "uninstall_app", action_id, args)
local apps = skynet.call(".upgrader", "lua", "list_app")
local args = {
no_ack = 1,
version = 1192,
skynet = {
version = 1934
}
},
local action_id = 'this_is_an_example_unique_id'
local r, err = skynet.call(".upgrader", "lua", "uninstall_app", action_id, args)