Ok, I'm going to try and address a few things here:
Again, you're still not using any function arguments, so why bother creating them?
I assume you're referring to this statement - $.getJSON(requestURL, function(json)
I tried to remove the function, but I continued to get errors, so reverted to what worked.
Having the deviceID and accesstoken inside every function is redundant, and could be handles as a global variable.
I changed this, they are now a global variables.
What exactly is wrong with the example I provided you here, that made you go "ah, nah, I'll use JQuery instead"?
The example you provided worked as expected. I was having problems understanding how to get that example to return the data back to the html page. I'm pretty sure it needs to use JSON, and I was having a hard time find JSON examples. I read through this but I couldn't relate their examples to what I need.
As for the to do list, here it is:
Doser To Do List
1. Manual ON/OFF
2. Calibrate 60 Seconds ON
3. Refresh Current Settings
4. setupChannels with Set Button
Listed in order of string command
- Channel#
- time (convert seconds to 24hr TOD)
- dose rate (determined through calibration = total amount dosed divided by 60)
- total dose per 24hr period
5. Optional - In Order of Priority
-Current programming is set for 12 doses over 24hr period. Would like select field to change that for options between 1 - 24 doses per 24hr period.
-CSS for cleaner visuals
-Support for stepper motors
-HTML formatting for mobile devices
6. Pumps - Give customer multiple vendors for different grades of pumps.
Options:
-High Quality / Low Quality
-AC & DC
-Stepper
-Variable speed
7. Enclosures
8. Power Supply
9. Thorough writeup for āHow Toā with vendor list and cost breakdown.