Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
component:modem [2018/10/12 23:39]
payonel
component:modem [2020/11/25 07:10]
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"​)