ios app is sucking

Community contributed apps

Posts: 240
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Sat Aug 05, 2017 10:08 pm
My ios app has not worked for months. Months. I have deleted it, reloaded it, reinstalled my code, made sure ip address is correct, and my port is definitely open. Why wont this freaking thing work? I load my name from the forums, add the ip address and the port and do not enter my username or password into the app. All this info allows me to access my controller from the portal, but not from the ios app. Why not?

My code:
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>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
    // This must be the first line
    ReefAngel.Init();  //Initialize controller
    ReefAngel.Use2014Screen();  // Let's use 2014 Screen
    ReefAngel.AddHumidityExpansion();  // Humidity Expanion Module
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port1Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port2Bit | Port3Bit | Port4Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | Port7Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;

    // Feeeding and Water Change mode speed
    ReefAngel.DCPump.FeedingSpeed=0;
    ReefAngel.DCPump.WaterChangeSpeed=0;


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port6 );

    ////// Place additional initialization code below here
   

    ////// Place additional initialization code above here
}

void loop()
{
    ReefAngel.ActinicLights( Port2 );
    ReefAngel.DayLights( Port3 );
    ReefAngel.DayLights( Port4 );
    ReefAngel.SingleATOLow( Port5 );
    ReefAngel.StandardHeater( Port7 );
    ReefAngel.StandardFan( Port8 );
    ReefAngel.PWM.SetDaylight( MoonPhase() );
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.DaylightChannel = None;
    ReefAngel.DCPump.ActinicChannel = Sync;
    ////// Place your custom code below here
   

    ////// Place your custom code above here

    // This should always be the last line
    ReefAngel.Portal( "psyrob" );
    ReefAngel.DDNS( "psyrob-controller1.myreefangel.com" ); // Your DDNS is psyrob-99.90.0.55.myreefangel.com
    ReefAngel.ShowInterface();
}

Image

Posts: 11929
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Aug 06, 2017 11:07 am
Are you sure you are using the correct ip address?
Is it the internal or external ip address that you are using?
Are you sure that your port forwarding is setup correctly?
Assuming there is nothing wrong with your port forwarding or connection to the controller, it should work.
Have you tried the web based uapp?
uapp
Create a shortcut to your home screen.
I will work just like native ios app.
Roberto.

Posts: 240
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Wed Aug 16, 2017 9:19 pm
the uapp doesn't work either. I can connect thru the portal, and I am using the same ip address in the portal that I am in my iphone app and the uapp. The portal connects, but both my iphone app and the uapp keep saying, "Unable to process controller data". I am using the external ip address. and my port is forwarded and it is open
Image

Posts: 11929
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Aug 16, 2017 9:39 pm
did you enter anything on cloud username and cloud password?
You must leave those empty.
If you did, try deleting the profile and creating another one.
Roberto.

Posts: 240
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Thu Aug 17, 2017 9:54 pm
I did not enter anything in the cloud settings. Are you sure I have it coded correctly at the end of my code, the DDNS line?
Image

Posts: 11929
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 17, 2017 10:19 pm
No. remove that line.
Roberto.

Posts: 240
Joined: Thu Sep 01, 2011 8:44 pm
PostPosted: Fri Aug 18, 2017 8:47 pm
I removed the line, uploaded the code again. The iphone app connected once and I had all data and labels, then in five minutes I tried to refresh and it keeps saying "unable to process controller data" and all fields are zeros. Same with web uapp. The portal still works, although it shows that I have 8 expansion boxes and lots of LED lights but I don't have any of that
Image

Return to Apps

Who is online

Users browsing this forum: No registered users and 2 guests

cron