I’m trying to figure out how to create a package, but I keep running into my own limited understanding on how info-beamer works. I finally found out (was told) that I need to use UDP communication (See great explanation here: Analog Clock demo help)
So now I have some questions using the following files/example:
node.lua:
local var1
util.data_mapper {
A = function(myParm)
var1 = myParm
end
}
print(var1)
service:
from hosted import node
node.send('/myParm:MyData')
Is this the correct way to transfer data?
- Is ‘A’ just an empty/unused variable?
- Should it be ‘[myParm]=’ instead of ‘A=’?
- Or should the service file contain node.send(“A:MyData”) instead
- Is ‘myParm’ corresponding to /myParm?
I’m trying to figure out what is what. I have never worked with sockets and TCP/UDP - as you probably can see