Is there any type of debug output or message

Related to the development libraries, released by Curt Binder

Posts: 108
Joined: Thu Jun 28, 2012 1:46 pm
PostPosted: Mon Feb 29, 2016 11:12 pm
Hi - odd question, but is there any way to get debug information or test the code before it is uploaded to the controller?

I've been trying to modify the cloud feature to ramp up my RW4 power heads to full blast when the lightning strikes. However, I'm not seeing anything happen and I've had 2 storms today :) I'm also trying to see if I have my code correct with regards to random power head changes (using some of the examples here on the boards).

Disconnecting my wifi to connect the cable and upload, test, then disconnect and reconnect wifi to see portal patterns is getting old. I'm just wondering if there is an easier way or way to debug/test so I can see the values and logic flow say as if I was coding on my Linux server :) Or, is this just an experience thing or limitation to the arduino system.
User avatar
Posts: 2653
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Thu Mar 03, 2016 12:39 pm
unfortunately there's not anything better than what you are doing. if someone were to create an emulator for the reef angel (based on the arduino), you could test things better but that has not been done

some people have a development environment that let's them step through code being executed, but i do not know what that is.


Sent from my iPad using Tapatalk

Posts: 108
Joined: Thu Jun 28, 2012 1:46 pm
PostPosted: Fri Mar 04, 2016 8:41 am
Thanks Binder.

I sort of assumed that but wanted to ask just in case. In my particular case I was just getting tired of swapping the WIFI and TTL cable back and forth to upload any code or monitor via the UI. I believe there is a add-on to make that bit easier but I was just being cheap I guess.
User avatar
Posts: 5337
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Fri Mar 04, 2016 9:11 am
You could also use the custom variables as a way to send yourself debug info. You could also use Serial.println and Serial.print to send data to the serial monitor so you can upload and the monitor the output in serial monitor.

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 2 guests

cron