mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Updated Component Modem (markdown)
parent
f5e238b817
commit
d5b2c3ce2b
@ -38,6 +38,6 @@ print(m.isOpen(123)) -- true
|
|||||||
-- Send some message.
|
-- Send some message.
|
||||||
m.broadcast(321, "this is a test")
|
m.broadcast(321, "this is a test")
|
||||||
-- Wait for a message from another network card.
|
-- Wait for a message from another network card.
|
||||||
local _, from, port, _, message = event.pull("modem_message")
|
local _, _, from, port, _, message = event.pull("modem_message")
|
||||||
print("Got a message from " .. from .. " on port " .. port .. ": " .. tostring(message))
|
print("Got a message from " .. from .. " on port " .. port .. ": " .. tostring(message))
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user