knxultimate
Version:
KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.
44 lines (36 loc) • 779 B
text/typescript
/**
* Provides KNX Data Point Type 17 encoding and decoding helpers.
*
* Written in Italy with love, sun and passion, by Massimo Saccani.
*
* Released under the MIT License.
* Use at your own risk; the author assumes no liability for damages.
*/
/**
* KNXEngine - a KNX protocol stack in Javascript
* (C) 2020-2022 Supergiovane
*/
import type { DatapointConfig } from '.'
//
// DPT17: Scene number
//
// TODO: implement fromBuffxer, formatAPDU
const config: DatapointConfig = {
id: 'DPT17',
// DPT17 basetype info
basetype: {
bitlength: 8,
valuetype: 'basic',
desc: 'scene number',
},
// DPT17 subtypes
subtypes: {
// 17.001 Scene number
'001': {
use: 'G',
desc: 'DPT_SceneNumber',
name: 'Scene Number',
},
},
}
export default config