-
Notifications
You must be signed in to change notification settings - Fork 50
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
Review PR: Add "Offline" SDLogger Mode #676
base: main
Are you sure you want to change the base?
Conversation
…working fully yet
…rsnapper_V2 class
Use latest build artifacts
New checkin model class added along with functions within .cpp to exec. it
@tyeth Please give this a re-review. I have changed what we discussed. I'm going to merge this branch into the api-v2 branch after you give the OK. |
case wippersnapper_sensor_SensorType_SENSOR_TYPE_UNITLESS_PERCENT: | ||
return "%"; | ||
case wippersnapper_sensor_SensorType_SENSOR_TYPE_AMBIENT_TEMPERATURE_FAHRENHEIT: | ||
return ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it's missing
case wippersnapper_sensor_SensorType_SENSOR_TYPE_UNSPECIFIED: | ||
return "raw value"; | ||
case wippersnapper_sensor_SensorType_SENSOR_TYPE_ACCELEROMETER: | ||
return "m/s/s"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels like this should match gravity/linear-acceleration, but happy to not have it match if preferred
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changed in units method, the ambient fahrenheit specifically, maybe accelerometer too.
case wippersnapper_sensor_SensorType_SENSOR_TYPE_BOOLEAN: | ||
return "BOOLEAN"; | ||
return "raw value"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder about leaving this blank, but having an empty field might be more frustrating for people
This pull request is not meant to be merged in. It is a review-only pull request for specific regions of code.
Codebase regions for review
ws_sdcard
- for interfacing with a micro SD Card breakout.parseConfigFile
functions and looksBuildJSONDoc
andLogJSONDoc
API interfaces are present for each type of componentws_sdcard
and mode-switching (determining whether the device is online or offline) withinWipperSnapper_V2
class in two functions -provision()
andconnect()
FS_V2
andLittleFS_V2
network_interfaces/
toadapters/
to allow for a WipperSnapper device without a network interface (offline/
).adapters/offline/ws_offline_pico
to support a Raspberry Pi in offline mode.Workflow enhancements for review:
run-tests.yml
, to automate testing using Wokwi.