Skip to content

Commit

Permalink
edit readme, ad dphoto
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPScientist committed Mar 25, 2024
1 parent 63ff8cb commit 95b8029
Show file tree
Hide file tree
Showing 11 changed files with 22,693 additions and 22,852 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/******************************************************/

#include "Particle.h"
#line 1 "/Users/pjb/Dropbox/Smart_Coasts_Sensors/Water-Level/Open-Water-Level/Firmware/SLR_Boron_Maxbotix_MB7092_cm/src/SLR_Boron_Maxbotix_MB7092_cm.ino"
#line 1 "/Users/bresnahanp/Dropbox/Smart_Coasts_Sensors/Water-Level/Open-Water-Level/Firmware/SLR_Boron_Maxbotix_MB7092_cm/src/SLR_Boron_Maxbotix_MB7092_cm.ino"
#include "SdFat.h"
//------------------SD SPI Configuration Details--------------------------------
void setup(void);
void loop(void);
int secondsUntilNextEvent();
#line 3 "/Users/pjb/Dropbox/Smart_Coasts_Sensors/Water-Level/Open-Water-Level/Firmware/SLR_Boron_Maxbotix_MB7092_cm/src/SLR_Boron_Maxbotix_MB7092_cm.ino"
#line 3 "/Users/bresnahanp/Dropbox/Smart_Coasts_Sensors/Water-Level/Open-Water-Level/Firmware/SLR_Boron_Maxbotix_MB7092_cm/src/SLR_Boron_Maxbotix_MB7092_cm.ino"
const int SD_CHIP_SELECT = D5;
SdFat sd;

Expand Down Expand Up @@ -58,7 +58,14 @@ SystemSleepConfiguration config;
// Various timing constants
const unsigned long MAX_TIME_TO_PUBLISH_MS = 20000; // Only stay awake for this time trying to connect to the cloud and publish
// const unsigned long TIME_AFTER_PUBLISH_MS = 4000; // After publish, wait 4 seconds for data to go out

// ***** IMPORTANT!!!
// If SECONDS_BETWEEN_MEASUREMENTS < 600, must use
// .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY);
// in sleep configuration to avoid reconnection penalty
const unsigned long SECONDS_BETWEEN_MEASUREMENTS = 3600; // What should sampling period be?
// ***** IMPORTANT!!! See note above this const.


void setup(void) {
if (PUBLISHING==1) {
Expand Down Expand Up @@ -219,8 +226,8 @@ void loop(void) {

config.mode(SystemSleepMode::ULTRA_LOW_POWER)
.gpio(D2, FALLING)
.duration(wakeInSeconds* 1000L) // Set seconds until wake
.network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY); // keeps the cellular modem powered, but does not wake the MCU for received data
.duration(wakeInSeconds* 1000L); // Set seconds until wake
// .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY); // keeps the cellular modem powered, but does not wake the MCU for received data

// Ready to sleep
SystemSleepResult result = System.sleep(config); // Device sleeps here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ SystemSleepConfiguration config;
// Various timing constants
const unsigned long MAX_TIME_TO_PUBLISH_MS = 20000; // Only stay awake for this time trying to connect to the cloud and publish
// const unsigned long TIME_AFTER_PUBLISH_MS = 4000; // After publish, wait 4 seconds for data to go out

// ***** IMPORTANT!!!
// If SECONDS_BETWEEN_MEASUREMENTS < 600, must use
// .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY);
// in sleep configuration to avoid reconnection penalty
const unsigned long SECONDS_BETWEEN_MEASUREMENTS = 3600; // What should sampling period be?
// ***** IMPORTANT!!! See note above this const.


void setup(void) {
if (PUBLISHING==1) {
Expand Down Expand Up @@ -209,8 +216,8 @@ void loop(void) {

config.mode(SystemSleepMode::ULTRA_LOW_POWER)
.gpio(D2, FALLING)
.duration(wakeInSeconds* 1000L) // Set seconds until wake
.network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY); // keeps the cellular modem powered, but does not wake the MCU for received data
.duration(wakeInSeconds* 1000L); // Set seconds until wake
// .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY); // keeps the cellular modem powered, but does not wake the MCU for received data

// Ready to sleep
SystemSleepResult result = System.sleep(config); // Device sleeps here
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 95b8029

Please sign in to comment.