Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement batch transmission #479

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
dd0ddab
change EnviroDIY URL to Memphis server and update copyright
tpwrules Jan 24, 2023
cd37b8f
add 8K data buffer for testing
tpwrules Feb 10, 2023
4320fd2
dataPublisherBase: remove redundant zero init of TX buffer
tpwrules Feb 4, 2023
e275718
publishers: refactor transmit buffer usage
tpwrules Feb 10, 2023
40b91c5
publishers/EnviroDIYPublisher: send data as one element arrays
tpwrules Feb 10, 2023
5df9aa6
publishers/EnviroDIYPublisher: buffer log data and send in batches
tpwrules Feb 10, 2023
58a17e9
publishers/EnviroDIYPublisher: move log buffer logic to its own class
tpwrules Feb 10, 2023
bf548d4
only turn modem on when internet connection is needed by a publisher
tpwrules Feb 10, 2023
447f582
dataPublisherBase: correctly retry flushing if modem buffer is full
tpwrules Feb 10, 2023
212ead3
publishers/EnviroDIYPublisher: send initial logged data immediately
tpwrules Feb 10, 2023
e79cbe4
publishers/EnviroDIYPublisher: use more intelligent sending algorithm
tpwrules Feb 10, 2023
8c4e590
LoggerBase: make testing button log immediately using normal procedure
tpwrules Feb 9, 2023
b092f32
flush log buffer immediately when test button is pushed
tpwrules Feb 10, 2023
b98d3e4
libraries/ModularSensors: run clang-format on *.cpp and *.h
tpwrules Mar 16, 2023
fa3aaab
Added begin. Can't figure out why needed.
SRGDamia1 Sep 15, 2023
81b6963
Non-static buffer
SRGDamia1 Sep 21, 2023
ba35c84
steps toward fifo
SRGDamia1 Sep 21, 2023
54bc18a
Made the EnviroDIY host/path/port settable
SRGDamia1 May 20, 2024
7a9f6e6
CR
SRGDamia1 May 20, 2024
2b97787
Re-add testing mode
SRGDamia1 May 20, 2024
055c11a
Decrease buffer size for Mega, fix warnings
SRGDamia1 May 28, 2024
c2f646c
Update Doxygen, add docs for private members
SRGDamia1 Jun 11, 2024
c3a1520
Remove extra emphasized return types.
SRGDamia1 Sep 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Non-static buffer
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Sep 21, 2023
commit 81b6963e7dd743f4b81b1ea67cb15b5eae0480cc
2 changes: 0 additions & 2 deletions examples/DRWI_Mayfly1_WiFi/DRWI_Mayfly1_WiFi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ void setup() {

// Begin the logger
dataLogger.begin();
EnviroDIYPOST.begin(dataLogger, &modem.gsmClient, registrationToken,
samplingFeature);

// Note: Please change these battery voltages to match your battery
// Set up the sensors, except at lowest battery level
Expand Down
2 changes: 0 additions & 2 deletions src/publishers/EnviroDIYPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "EnviroDIYPublisher.h"

LogBuffer EnviroDIYPublisher::_logBuffer;

// ============================================================================
// Functions for the EnviroDIY data portal receivers.
// ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/publishers/EnviroDIYPublisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class EnviroDIYPublisher : public dataPublisher {
static const char* timestampTag; ///< The JSON feature timestamp tag
/**@}*/

static LogBuffer _logBuffer;
LogBuffer _logBuffer;

// actually transmit rather than just buffer data
int16_t flushDataBuffer(Client* outClient);
Expand Down