Page 1 of 1

Re: Errors when compiling with dev branch

Posted: Sun Nov 25, 2018 3:56 pm
by rimai
Can you send me a screen shot of File->Preferences window of your Arduino IDE?

Re: Errors when compiling with dev branch

Posted: Sun Nov 25, 2018 9:41 pm
by sbidny
Image

Re: Errors when compiling with dev branch

Posted: Sun Nov 25, 2018 10:36 pm
by rimai
is the sketchbook location where you placed the dev branch?
Can you send me a screenshot of your folder structure?

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 10:07 am
by sbidny
Yes, it’s the location where I put the dev libraries. Here’s the structure:

/Users/sbidny/Documents/Arduino 1.8.6/libraries/

I will grab a screenshot when I get a chance as well.

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 10:21 am
by sbidny
It's definitely picking up the dev libraries, FWIW, since the call to ReefAngel.StandardHeater1() is working. The older libraries did not support this call. I believe they required ReefAngel.StandardHeater().

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 10:27 am
by sbidny
Screenshot of folder structure:

Image

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 10:54 am
by rimai
Light bulb turned on.
I think you are also missing the updated features file.
https://github.com/reefangel/FeaturesAndUpdateFiles
Update the files on your folder /Users/sbidny/Documents/Arduino 1.8.6/libraries/update

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 11:26 am
by sbidny
That seemed to do it. I am now able to compile. Will try to upload using the Bluetooth adapter when I get home tonight. Thanks!

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 7:19 pm
by sbidny
I was able to upload using the Bluetooth adapter. However, I am now seeing tons of trailing random characters on the display. Seems as if it’s using uninitialized character buffers for strings.

Could it be that the prior version automatically initialized allocated buffers and that the new version requires an explicit initialization?

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 7:27 pm
by rimai
Is it the plus or star board?

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 7:31 pm
by sbidny
Plus

Re: Errors when compiling with dev branch

Posted: Mon Nov 26, 2018 10:05 pm
by rimai
Can you post your code?

Re: Errors when compiling with dev branch

Posted: Sat Dec 01, 2018 10:12 pm
by sbidny
Just playing around right now, so there's not much to it. Basically, all it's doing is setting the 0-10v ports to 100%.

Code: Select all

#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

void setup()
{
    // This must be the first line
    ReefAngel.Init();  //Initialize controller
    ReefAngel.AddStandardMenu();  // Add Standard Menu
    ReefAngel.Use2014Screen();  // Let's use 2014 Screen
}

void loop()
{
    ReefAngel.PWM.SetDaylight(100);
    ReefAngel.PWM.SetActinic(100);

    ReefAngel.Portal("sbidny");
    ReefAngel.CloudPortal();
    ReefAngel.DDNS("reef"); // Your DDNS is sbidny-reef.myreefangel.com
    // This should always be the last line
    ReefAngel.ShowInterface();
}


Re: Errors when compiling with dev branch

Posted: Mon Dec 03, 2018 9:38 am
by sbidny
FYI, when I upload the same (minus the ReefAngel.CloudPortal() call) via Arduino 1.0.1, I don't see the same issue with trailing characters.

I'll try uploading using 1.8.6 without the CloudPortal() call.

Re: Errors when compiling with dev branch

Posted: Mon Dec 03, 2018 6:46 pm
by sbidny
Same issue.

Re: Errors when compiling with dev branch

Posted: Mon Dec 03, 2018 7:00 pm
by rimai
I wonder if this is a MacOSX issue only.
I'm not able to replicate.
lnevo, can you report if you have this issue?

Re: Errors when compiling with dev branch

Posted: Mon Dec 03, 2018 7:20 pm
by sbidny
I’ll try to get it going from Windows and see if the problem persists.