Hi Curo,
again thank you ver much for your explanation,
I have tried several ways to implement DevieManagement finally implemented some configuration and provisionin operations, now my requirement is install and updates some apps to the device remotely, for that i need to use the functions defined in appcon module,
as you said i tried rpc module to remotely connect to mihini VM and called the appcon function, but still i cannot access those functions,
here is my code, it doesn't work
local function main()
log.setlevel("INFO")
log("GENARAL", "INFO","Device initiated")
devicetree.init()-- configure the module
devicetree.set ("config.agent.deviceId", 'ramshad')
devicetree.set ("config.agent.server.url", 'tcp://
m2m.eclipse.org:44900')
devicetree.set ("config.agent.DEVInfo.Man", 'anodize')
devicetree.set ("config.agent.DevInfo.DevId", 'ramsh')
devicetree.set ("config.agent.DevInfo.Lang", 'english')
devicetree.set ("config.agent.DevInfo.Mod", 'r001')
devicetree.set ("config.agent.DevInfo.DmV", 'dm01')
devicetree.set ("config.server.autoconnect.onboot", true)
local devId=devicetree.get("config.agent.deviceId")
local Lang=devicetree.get("config.agent.DevInfo.Lang")
local Man=devicetree.get("config.agent.deviceInfo.Man")
local Mod=devicetree.get ("config.agent.DevInfo.Mod")
local DmV=devicetree.get ("config.agent.DevInfo.DmV")
print(devicetree.get("config.agent.deviceId"))
print(devicetree.get("config.agent.DmAcc.newNode"))
print(devicetree.get("config.agent.DmAcc.reboo"))
devicetree.register('config.agent.DmAcc.newNode',test)
devicetree.register('config.agent.DmAcc.reboo',swUpdate)
client, err = rpc.newclient('localhost', 1999)
for x,y in pairs(client) do
print (x,":",y)
end
client:call('client.agent.appcon.list')
end
sched.run(main)
--sched.run(writebranch)
sched.run(swUpdate)
sched.loop()
can you please tell me how to exactly call appcon.install/appcon.list function using rpc