- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
J_E_Mc
-
Content Count
2 -
Joined
-
Last visited
Posts posted by J_E_Mc
-
-
I need to read files without the filesystem library but it is only returning 2048 characters of the file i am trying to read.
calling component in variable but error
in Programming
Posted · Edited by J_E_Mc
misread the post
The reason that your code isn't working is that require is a function avaliable in open-oson an eeprom you have to interface directly with the components.try:function getComponent(name) component.proxy(component.list(name, true)()) end local m = getComponent("modem")
component.list lists all components with the given name's addresses and type (calling the return value returns the first index's address)component.proxy gives you a "proxy" of the component using an addresswith out a proxy you would have to use component.invoke to call a method on a componentrealised that you needed help with the server not the drone sorry, ignore this post.