theoriginalbit, on 28 October 2013 - 11:17 PM, said:
Okay, I wrong on the version I was running. I am running the latest (0.2.1) but it is still happening. My code is very simple as I am just trying to learn it and can't get out usable details. getTankInfo insists it needs a parameter and only seems to work if I put the name of the tank (I get it from right-clicking the connection to it).
The code:
net = peripheral.wrap("openblocks_tank_5")
results = net.getTankInfo("openblocks_tank_5")
print(results)
This prints to the screen:
table: a50ecb1
If I am using the code wrong please let me know. I get a "attempt to index ? (a nul value)" or "attempt to call nil" on line 2.