Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- prox = sensor.wrap("left")
- local target = prox.getTargets()
- for tarName, _ in pairs(target) do
- --fetch the detailed information table for the current target.
- local details = prox.getTargetDetails(tarName)
- for k, v in pairs(details) do
- print(tostring(k)..": "..tostring(v))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement