Hi i have been trying for several days to modify this great controller code i found here https://www.instructables.com/id/Arduino-Based-GSMSMS-Remote-Control-Unit/ i have several projects that i'd like a gsm controller with remotely changeable functions for ranging from a multi zone heating extension controller to a basic gate lock controller which i'm starting with now.
i was able to write my own simple codes using AT commands however i spent several days trying to get my head around how to pull settable variables such as output channels and timer variables or delays from received SMS messages, so to try and make things easier for myself i found the instructable linked above which works fine as it is however i would like to change several things about it such as i don't need 4 inputs and outputs for this project i also wanted to remove things such as the pulse timers to reduce the code size and allow me to monitor a battery voltage and temperature etc.
so i went to work in my usual way of pulling out all the functions i don't want one at a time then checking the code still runs but no matter which function i remove i always get not declared errors on every function in this code unless i use it as the original code, i've now spent almost a week trying to modify and replicate this code as it has a lot of functions i really like but it seems however i change it i cant compile.
i cant post the original code as its very long but its in the instructable link at the beginning but im trying to slim down a basic edit enough to post where i tried to pull two of the input and output channels out from 4 to 2 before i try to add anything of my own in so you can see how it fails but i only have to take one function out for it to error even though i check the function doesn't have variables used in other ones, any help in where i'm going wrong would be very much appreciated if i can get this code to post under 9000 characters i will try to send it as an attachment hopefully it works.
2ch_in_out_gsm_module.ino (55.8 KB)