Skip to content

Conversation

@dmeehan1968
Copy link

Add Wavetrend, including SD01-L-V2 Water Temperature Monitor

Driver tests did not work locally on MacOs due to problems with isolated-vm package.

Add a description in package.json
Build driver in current folder instead of dist folder
Copy link
Contributor

@LenActility LenActility left a 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,
Copy link
Contributor

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
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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 [],

Comment on lines +394 to +397
"bytes": "0000000000000000004A",
"fPort": 2,
"errors": [],
"warnings": []
Copy link
Contributor

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",
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants