PC-Logix / OpenSecurity

Security addon for OpenComputers
MIT License
46 stars 24 forks source link

Component bug #51

Closed FilipK-CZ closed 8 years ago

FilipK-CZ commented 8 years ago

In lua command component.os_rfidreader.scan(10) works but in program not. image

image

image

MyNameIsKodos commented 8 years ago

This is not a bug. You need to require component in your program. Example:

local component = require("component")

local data = component.os_rfidreader.scan(10)

Then you just need to process the 'data' as you wish further in the program

CaitlynMainer commented 8 years ago

Thanks @MyNameIsKodos