This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MxHn's profile picture

New Function For Wired Modems?

Started by MxHn, 15 August 2013 - 12:12 PM
MxHn #1
Posted 15 August 2013 - 02:12 PM
New function: P.wrap(peripheral)
Returns a handle like peripheral.wrap
Engineer #2
Posted 15 August 2013 - 02:24 PM
You can easily do this yourself. Add this to your startup file:

P = peripheral

Now you can do every handle of the peripheral API using P.*
MxHn #3
Posted 15 August 2013 - 02:27 PM
No but the only way as i know to acces a peripheral over a wired network is modem.call. I would like a wrap function.
theoriginalbit #4
Posted 15 August 2013 - 02:28 PM
You can do it fine over a network…

peripheral.wrap works either by the computer side, or the peripheral name… also I believe (although may be wrong) that there is a wrap function also present on the wired modem.
Cranium #5
Posted 15 August 2013 - 02:29 PM
You can already do this.