2.0.0 • Published 5 years ago

sensors v2.0.0

Weekly downloads
28
License
ISC
Repository
github
Last release
5 years ago

sensors

My Sensors serial parser

Build Status

Methods

parse

Parse a string representation of mysensors serial protocol: http://www.mysensors.org/build/serial_api. The resulting is an array that looks like the following:

[
    {
        "id": "12",
        "childId": "6",
        "type": "presentation",
        "ack": false,
        "payload": "1.4",
        "subType": "S_LIGHT"
    }
]

stringify

Returns a string representation of an array or single object. The result looks like the following:

'12;6;0;0;3;1.4\n'
2.0.0

5 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago