brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
97 stars 6 forks source link

Support sending and receiving strings in script #143

Closed brutella closed 2 years ago

brutella commented 2 years ago

KNX supports strings with the datapoint types 16.000, 16.001, and 24.001. We should supports sending and receiving strings in scripts like this.

import hkknx

// Send "KNX is OK"
hkknx.GroupWrite("KNX is OK", "0/0/1")

// Receive a string
buf = <- hkknx.GroupWriteNotify("0/0/1")
str = hkknx.ParseString(buf)
brutella commented 2 years ago

Fixed in pre-release version 2.0.1