Jump to content




Send Events to computers attached as peripherals


  • You cannot reply to this topic
3 replies to this topic

#1 Ilikemlp123

  • Members
  • 12 posts

Posted 26 April 2017 - 04:58 AM

It would be very great if you could send events to computers/turtles attached as peripherals.
Another addition to my idea is the ability to send programs the same way.

the functions would be like this:
//send event
C1 = peripheral.find("computer")
C1.sendEvent("remoteEvent","params")
//send program
C1.sendProgram("path","remotepath")



#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 26 April 2017 - 05:35 AM

This happens to be exactly how modems function.

http://www.computerc...Modem_%28API%29

#3 Anavrins

  • Members
  • 775 posts

Posted 26 April 2017 - 03:59 PM

View PostBomb Bloke, on 26 April 2017 - 05:35 AM, said:

This happens to be exactly how modems function.

http://www.computerc...Modem_%28API%29
Not quite, the callRemote function allows you to remotely call a function as the computer peripheral, which only contains these http://www.computerc.../Computer_(API)
There's nothing to send events or shell commands to the remote computer, you would have to code something that runs in the background listening to such commands.

Edited by Anavrins, 26 April 2017 - 04:03 PM.


#4 apemanzilla

  • Members
  • 1,421 posts

Posted 01 May 2017 - 01:11 PM

View PostAnavrins, on 26 April 2017 - 03:59 PM, said:

View PostBomb Bloke, on 26 April 2017 - 05:35 AM, said:

This happens to be exactly how modems function.

http://www.computerc...Modem_%28API%29
Not quite, the callRemote function allows you to remotely call a function as the computer peripheral, which only contains these http://www.computerc.../Computer_(API)
There's nothing to send events or shell commands to the remote computer, you would have to code something that runs in the background listening to such commands.

BB means that you can cause events on another computer via modem messages.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users