I've been working on robots that don't have interfaces - and instead commune by wireless means.
Part of programming these robots has involved writing on an EEPROM
to get to an API, but FileSystem doesn't work this way.
The program here (ran on a computer) wouldn't work as I put
fs = require("component").filesystem
Where I should have put
fs = require("filesystem")
If I make this change, the program works.
But if I comment out the require statements, uncomment the proxy statements, write to an EEPROM and then insert into a robot, it doesn't work over there.
So what's the BIOS way to get the filesystem API?
(If you're wondering, the program is a recursive function designed to inform other devices of what's on the robot's filesystem)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I've been working on robots that don't have interfaces - and instead commune by wireless means.
Part of programming these robots has involved writing on an EEPROM
My problem lies with getting certain APIs.
I've previously encountered things such as
modem = component.proxy(component.list("modem")())
to get to an API, but FileSystem doesn't work this way.
The program here (ran on a computer) wouldn't work as I put
fs = require("component").filesystem
Where I should have put
fs = require("filesystem")
If I make this change, the program works.
But if I comment out the require statements, uncomment the proxy statements, write to an EEPROM and then insert into a robot, it doesn't work over there.
So what's the BIOS way to get the filesystem API?
(If you're wondering, the program is a recursive function designed to inform other devices of what's on the robot's filesystem)
Link to post
Share on other sites