Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component:modem [2018/10/12 21:39]
payonel
component:modem [2020/11/25 06:10] (current)
hanschrome Fix example in order to work.
Line 58: Line 58:
 print(m.isOpen(123)) -- true print(m.isOpen(123)) -- true
 -- Send some message. -- Send some message.
-m.broadcast(321, "this is a test")+m.broadcast(123, "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"​)