Skip to content

Haba1234/sensors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

My Sensors serial parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%