Api/netlib.gettable(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Api/netlib|netlib function]] used to receive a table expected to be sent with "sendtable"
[[Api/netlib|netlib function]] used to receive a table expected to be sent with "sendtable"
timeout argument is optional, if provided acts like a timeout just as rednet.receive() does.
if no timeout is provided, listens untill it hears it's call.




Line 5: Line 10:
'''usage:'''
'''usage:'''


local table = netlib.gettable(client)
local table = netlib.gettable(client, timeout)





Revision as of 02:36, 14 October 2024

netlib function used to receive a table expected to be sent with "sendtable"

timeout argument is optional, if provided acts like a timeout just as rednet.receive() does.

if no timeout is provided, listens untill it hears it's call.



usage:

local table = netlib.gettable(client, timeout)


output:

returns the table if successfull,

returns false if failed