Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

Ulyssedu45 Apr 7th, 2020 (edited) 160 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local event = require "event"
  3.  
  4. for k,v in component.list("ir_") do
  5. local proxy = component.proxy(k)
  6. print(proxy.address)
  7. print(proxy.type)
  8. if proxy.type == "ir_augment_detector" then
  9. proxy.info()
  10. else
  11. proxy.setThrottle(0)
  12. proxy.setBrake(1)
  13. proxy.horn()
  14. end
  15.  
  16. while true do
  17.   event_name, net_address, augment_type, stock_uuid = event.pull("ir_train_overhead")
  18.   print(event_name)
  19.     print(net_address)
  20.     print(augment_type)
  21.     print(stock_uuid)
  22. end
  23.  
  24. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top