Jump to content




premote(Or P-Remote) a simple utility to use peripherals connected to wired modems

utility networking peripheral

1 reply to this topic

#1 GiantNuker

  • Members
  • 3 posts

Posted 03 April 2016 - 10:58 PM

P-Remote is a utility to access remote peripherals connected with a wired modem.
It gives the following functions:
  • getModemSide() - Gets the modem's side by using a bunch of ifs
  • getModem() - Gets the modem based on 1 & 2
  • getRemotePeripherals() - uses the peripherals api function getNamesRemote()
  • getPeripheralMethods(peripheral) - uses the peripherals api function getMethodsRemote(peripheral)
  • hasRemotePeripheral(peripheral) - Check if a peripheral is present
  • callRemoteMethod(peripheral, method) - calls th peripheral's function
Note: All of the above start with "premote.", so "getModem()" would be "premote.getModem()"

DOWNLOAD
pastebin get RWYDLAD3 or http://pastebin.com/RWYDLAD3
Note 2: I Havn't tested it quite yet, I'll update this when I have(very soon)

Note 3: You may want to put this in the default apis folder.

Note 4: I'm suprised it dosent already have this functionality XD

btw this is my first WORKING program/api/util

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 04 April 2016 - 03:04 PM

peripheral.getNames might make your life easier.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users