Lua multi VM system for home automation

Cours Lua multi VM system for home automation, tutoriel & guide de travaux pratiques en pdf.

VM Management

Start new VM vm.start(name,quota,priority,stack) Stop VM vm.stop(name) Get list of VMs vm.list()
Inter VM Calls
Enqueue Lua code to execute in named VM vm.execute(name,code) Synchronously execute Lua code in named VM, copy results vm.call(name,code) Synchronously execute Lua method by path in VM, copy params & results vm.qcall(name,path,…)
Publish-Subscribe
Call handler(channel,data) any time message is posted vm.subscribe(prefix,handler) Cancel subscription vm.unsubscribe(prefix) Post message to channel with data vm.post(channel,data)
Timers
Old style, execute once vm.timer(timeout,handler) New style vm.timer(name,timeout,repeat,handler)

Cours gratuitTélécharger le cours complet

Télécharger aussi :

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *