This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Marra1996's profile picture

Remote Controll Turtle?

Started by Marra1996, 29 February 2012 - 11:30 AM
Marra1996 #1
Posted 29 February 2012 - 12:30 PM
Hi there Forum!
I have Computercraft 1.3 and i want to send a command to my turtle, which it executes. not a program, a command.
Is there anyway i can handle this?
Thank you!
Espen #2
Posted 29 February 2012 - 12:37 PM
http://www.computercraft.info/forums2/index.php?/topic/226-send-arbitrary-commands-over-wifi
Use the loadstring/loadfile described in that thread.
Liraal #3
Posted 29 February 2012 - 12:48 PM
Or there's software that handles it all for you. Just look for it in the program library.
Espen #4
Posted 29 February 2012 - 12:58 PM
Or there's software that handles it all for you. Just look for it in the program library.
Can you refer to one such program?
I'm just asking because I looked for one that sends arbitrary commands and not just predefined ones, but didn't find any.
But now that you said there is one, I'm curious to know. :o/>/>
Liraal #5
Posted 29 February 2012 - 01:04 PM
Try my API, it has autoUpdate (the name's a bit misleading :o/>/> ) function that can handle rednet commands from a specified terminal, it even does that in the background, while the turtle can do virtually anything.
Espen #6
Posted 29 February 2012 - 01:15 PM
Ah, that is explains it, during my search through all the wireless prorgams I only saw sendCommand in yours and didn't see any processing of commands there.
But now I see you're receiving the command through some other functions and finally loadstring it in your lua() function.
I was wondering when I would see this being implemented instead of only a set of predefined functions. Nice work. :o/>/>
Liraal #7
Posted 29 February 2012 - 01:22 PM
i suppose that i haven't phrased that clear enough in my changelog :o/>/>