Next: Python interpreter module, Previous: send method, Up: MIN2Lua API
It is possible to execute functionalities on the slave device with following methods:
In order to do this one must use slave handler:
function case_function() -- remote example slavehnd = min.slave_allocate(SlaveTypePhone,"Slave1"); slavehnd:request("Event1"); min.slave_free(slavehnd); end function case_function() -- remote example 2 slavehnd = min.slave_allocate(SlaveTypePhone,"Slave1"); slavehnd.request(slavehnd,"Event1"); min.slave_free(slavehnd); end
Note that the first parameter is always slave handler. You must specify it when using '.
' Or use ':
' because then it is added automatically.