-
Notifications
You must be signed in to change notification settings - Fork 51
Add vendor wavetrend #271
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
base: main
Are you sure you want to change the base?
Add vendor wavetrend #271
Conversation
Add a description in package.json Build driver in current folder instead of dist folder
LenActility
left a comment
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.
There is some issues regarding examples, I've highlighted them, those need to be fixed for the driver to be handled properly
If you have any questions, please feel free to contact us
| "output": { | ||
| "data": { | ||
| "timestamp": 1596398400, | ||
| "sensor_id": 0, |
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.
'-' is what is written in your "examples.json" file.
'+' is what the test received as output
- "events": 1,
- "maxC": 21,
- "minC": 19,
- "reports": 1,
- "sensor_id": 0,
+ "events": 16,
+ "maxC": 80,
+ "minC": 49,
+ "reports": undefined,
+ "sensor_id": 1,
| "S2minC": 19, | ||
| "S2maxC": 21, | ||
| "S3minC": 19, | ||
| "S4maxC": 21 |
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.
- "S1maxC": 21,
- "S1minC": 19,
- "S2maxC": 21,
- "S2minC": 19,
- "S3minC": 19,
- "S4maxC": 21,
+ "s1MaxC": 21,
+ "s1MinC": 19,
+ "s2MaxC": 21,
+ "s2MinC": 19,
+ "s3MaxC": 21,
+ "s3MinC": 19,
| "output": { | ||
| "data": { | ||
| "timestamp": 1596398400, | ||
| "pvd_level": 0, |
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.
- "pvd_level": 0,
+ "pvd_level": 5,
| "pvd_level": 0, | ||
| "readings": [ | ||
| { | ||
| "timestamp": -1, |
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.
- "timestamp": -1,
+ "timestamp": 1596398390,
| ] | ||
| }, | ||
| { | ||
| "timestamp": 0, |
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.
- "timestamp": 0,
+ "timestamp": 1596398400,
| }, | ||
| "output": { | ||
| "errors": [ | ||
| "LoRaWAN reserved payload type" |
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.
- "LoRaWAN reserved payload type",
+ "Unrecognised type for uplink decoding",
| }, | ||
| "output": { | ||
| "errors": [ | ||
| "V1 Deprecated Payload, unsupported" |
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.
- "V1 Deprecated Payload, unsupported",
+ "Unrecognised type for uplink decoding",
| }, | ||
| "output": { | ||
| "errors": [ | ||
| "Unrecognised type for downlink decoding" |
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.
- "errors": Array [
- "Unrecognised type for downlink decoding",
- ],
+ "data": Object {
+ "events": undefined,
+ "maxC": 0,
+ "minC": 0,
+ "reports": undefined,
+ "sensor_id": 0,
+ "timestamp": 0,
+ },
+ "errors": Array [],
| "bytes": "0000000000000000004A", | ||
| "fPort": 2, | ||
| "errors": [], | ||
| "warnings": [] |
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.
- "bytes": Array [
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 74,
+ "errors": Array [
+ [TypeError: Cannot read properties of undefined (reading 'type')],
],
- "errors": Array [],
- "fPort": 2,
| }, | ||
| { | ||
| "type": "uplink", | ||
| "description": "fail decode uplink due to invalid port", |
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.
All examples need to have a unique description.
Add Wavetrend, including SD01-L-V2 Water Temperature Monitor
Driver tests did not work locally on MacOs due to problems with
isolated-vmpackage.