Code: Select all
ReefAngel.DCPump.UseMemory = false; // Return pump mode and settings handled by internal memory location
ReefAngel.DCPump.Threshold = 50;
Code: Select all
ReefAngel.DCPump.UseMemory = false; // Return pump mode and settings handled by internal memory location
ReefAngel.DCPump.Threshold = 50;
Just saw no one had ever answered this. You either use internal memory or you don't. The threshold is stored in internal memory, so if you say that you're using memory it will ignore the threshold you set in your loop. If you're using internal memory, you'd have to set the threshold to something in internal memory. It remembers the value you set permanently even between reboots, and I believe the default is 30 percent. You can set it permanently to 50 percent with your web browser by going tojoshlawless wrote:I tried and tried to implement a high threshold for my DCPump code (Sine, 240 seconds, to 100%). The only way I could get it to work was to turn off internal memory:
Because I couldn't find anywhere in either the U-app or the Portal to change the value of the threshold in internal memory. Am I missing something? I'm using the 1.1.1 libraries.Code: Select all
ReefAngel.DCPump.UseMemory = false; // Return pump mode and settings handled by internal memory location ReefAngel.DCPump.Threshold = 50;
This is incredibly helpful -- I did not know there was a way to write to internal memory just with an http request.AlanM wrote:Just saw no one had ever answered this. You either use internal memory or you don't. The threshold is stored in internal memory, so if you say that you're using memory it will ignore the threshold you set in your loop. If you're using internal memory, you'd have to set the threshold to something in internal memory. It remembers the value you set permanently even between reboots, and I believe the default is 30 percent. You can set it permanently to 50 percent with your web browser by going to
http://ip address:2000/mb164,50
I've browsed these two files, but I note that there is no reference to the memory location of CustomVar[n] -- do you happen to know where in internal memory these are stored?AlanM wrote:All of the locations are in Globals.h, by the way, and the functions to read and write them are in InternalEEPROM.cpp.
they are not stored in internal memory. they are initialized at runtime and only last as long as the controller is running (unless you code something to be saved).joshlawless wrote: I've browsed these two files, but I note that there is no reference to the memory location of CustomVar[n] -- do you happen to know where in internal memory these are stored?
Code: Select all
/cvar#,VV
- /cvar is the prefix
- # - the variable number from 0-7
- VV - the value to be pushed/set
so that's: http://ip address:2000/cvar#,VV
Code: Select all
http://ip address:2000/cvar2,10
Super, super, super helpful! Thanks so much. This will make testing and configuration so much quicker and easier than I thought it would be!binder wrote:here's also a reference to all the wifi commands available. this topic is discussed there too:
http://forum.reefangel.com/viewtopic.ph ... 41&p=12034