-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
General cleanup and refactoring in preparation for batch transmission #434
Commits on Apr 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fd02919 - Browse repository at this point
Copy the full SHA fd02919View commit details -
publishers: fix undefined behavior in response code processing
Correctly initialize response code variable terminator.
Configuration menu - View commit details
-
Copy full SHA for 55973fa - Browse repository at this point
Copy the full SHA 55973faView commit details -
dataPublisherBase: remove redundant zero init of TX buffer
Saves 750 bytes of flash as the buffer can be placed in .bss to be zero-initialized instead of .data.
Configuration menu - View commit details
-
Copy full SHA for 507b317 - Browse repository at this point
Copy the full SHA 507b317View commit details -
LoggerBase: optimize setFileTimestamp
Saves ~110 bytes of flash and substantial stack
Configuration menu - View commit details
-
Copy full SHA for 83b27ea - Browse repository at this point
Copy the full SHA 83b27eaView commit details -
LoggerModem: optimize CSQ conversion functions
Saves ~200 bytes of RAM and ~360 bytes of flash. The equations reproduce the tables previously found in the source code exactly. The reason for the values in the original tables is unknown.
Configuration menu - View commit details
-
Copy full SHA for f0d2637 - Browse repository at this point
Copy the full SHA f0d2637View commit details -
LoggerBase: always power down modem after RTC sync
The test for "15 seconds before the next logging interval" has been wrong for years, possibly since this code was written, with no apparent consequence. The behavior is additionally confusing to users deploying the devices and causes problems with logging as the modem won't get turned off for a long time. Remove it completely to solve the problems.
Configuration menu - View commit details
-
Copy full SHA for 2692821 - Browse repository at this point
Copy the full SHA 2692821View commit details -
Configuration menu - View commit details
-
Copy full SHA for 389c162 - Browse repository at this point
Copy the full SHA 389c162View commit details -
publishers: refactor transmit buffer usage
Use cleaner interface and common functions that avoid repeated snprintf and strlen usage to save ~2.5KB of flash and dozens of lines of code. Removes extra \r\n from HTTP requests as a side effect, which were against spec and caused spurious 400 Bad Request status messages from servers.
Configuration menu - View commit details
-
Copy full SHA for 493215d - Browse repository at this point
Copy the full SHA 493215dView commit details -
dataPublisherBase: widen sendEveryX and ditch sendOffset
sendEveryX will be used in the future for data buffering functionality. Increase its width to an int to allow larger buffers when desired. Delete sendOffset completely as there is little reason for that particular functionality. The offset will be in effect set randomly using the time the datalogger initially powers on.
Configuration menu - View commit details
-
Copy full SHA for 2c87ff0 - Browse repository at this point
Copy the full SHA 2c87ff0View commit details -
publishers: remove hearsay about logger construction order
The C++ standard specifies that all objects in the same translation unit (i.e. source file) are constructed in order of declaration. Since this is the most common case when using Modular Sensors, the described case cannot occur.
Configuration menu - View commit details
-
Copy full SHA for f83a96f - Browse repository at this point
Copy the full SHA f83a96fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d82635e - Browse repository at this point
Copy the full SHA d82635eView commit details