Ok, this is whole my work,
1. I have developed my own java client which post , put and get device deatil to rest URI, so i can get and change device deatils (config + provisioning can be done), this works fine
2. For the softaware update part also i use the same mechanism which is available here (but i have small problem with sw update Package,,, i hope i will be able to fix it)
https://wiki.eclipse.org/Mihini/REST_API#defaultconfig.lua
3. Additionol to this i also running a lua client on mihini side it monitors some variable using "devicetree.register" and trigger some functions, so i will be able to send some control parameters to the small devices such as arduino, zigbee etc. which are connected to mihini.
for this third task , i require some additional functions to be implemented like appcon.install, os.exit, that is why i am more concern on rpc at the moment.
however i can call os.exit(1) from rpc client as follows: it works fine
local function restartMih()
print ('hey ok')
client, err = rpc.newclient('localhost', 1999)
client:call('os.exit','1')
end
but when i do samething for appcon.install as follows, nothing happens(print statement works), no error messages
local function insApp() --this function is used to install app for new small device
print('inside swU')
client, err = rpc.newclient('localhost', 1999)
client:call('agent.appcon.install','main1','/home/ramsath/app','true')
end
Is it possible to use appcon.install? in my main script
Thanks