Api/netlib.getstring(): Difference between revisions
Jump to navigation
Jump to search
(Created page with "netlib function used to receive a string expected to arrive with "sendstring" it will verify the string with the sender, it needs to know who will be sending the string. '''usage:''' local temp = netlib.receive(client) '''output:''' returns the string if the data was verified returns false if it failed to verify") |
No edit summary |
||
Line 2: | Line 2: | ||
it will verify the string with the sender, it needs to know who will be sending the string. | it will verify the string with the sender, it needs to know who will be sending the string. | ||
sendstring will first send a regular rednet message with the string "sendstring", you need to catch that first with your listening software. | |||
Revision as of 00:04, 14 October 2024
netlib function used to receive a string expected to arrive with "sendstring"
it will verify the string with the sender, it needs to know who will be sending the string.
sendstring will first send a regular rednet message with the string "sendstring", you need to catch that first with your listening software.
usage:
local temp = netlib.receive(client)
output:
returns the string if the data was verified
returns false if it failed to verify