Posted 23 October 2016 - 08:10 PM
So, I've been working on a program for quite a while now; and even though it mostly works, there are a few errors that I can't seem to fix, or don't even know why they exist in the first place. Mainly, as the title says, it's because of the RedNet API function: "rednet.send"; I'm not sure what am I doing wrong but it very often sends commands and strings wrong, like: During startup, the server receives a table value. The first time it tries to fetch the commands from the server, it always fails. The first time it tries to register itself in the server, it always fails. Most times I need the server to return something (Example: the string "Pong!") it returns nil; and now for some reason when my pocket computer tries to fetch the commands the server receives it as nil.
Here's the Server's Source Code
EDIT: A.1.2.11 --10/24/2016
And Here's the Pocket Computer's (or RCD (Remote Controller Device))'s Source Code
EDIT: A.1.2.2 --10/24/2016
I also took a few screenshots, all which are available in this Imgur album
Any help is very appreciated; if my code lacks any comments or you don't understand something, please let me know
Also feel free to correct any mistakes I've made or a way to improve my code, which is also very appreciated.
Here's the Server's Source Code
EDIT: A.1.2.11 --10/24/2016
And Here's the Pocket Computer's (or RCD (Remote Controller Device))'s Source Code
EDIT: A.1.2.2 --10/24/2016
I also took a few screenshots, all which are available in this Imgur album
Any help is very appreciated; if my code lacks any comments or you don't understand something, please let me know
Also feel free to correct any mistakes I've made or a way to improve my code, which is also very appreciated.
Edited on 24 October 2016 - 11:21 PM