mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
set write flag after value write
This commit is contained in:
parent
c99ed6b081
commit
1563b16086
@ -56,6 +56,11 @@ static bool ProgramMode()
|
||||
return bau.deviceObject().progMode();
|
||||
}
|
||||
|
||||
static bool Configured()
|
||||
{
|
||||
return bau.configured();
|
||||
}
|
||||
|
||||
static void RegisterGroupObjects(std::vector<GroupObject>& gos)
|
||||
{
|
||||
GroupObjectTableObject& got(bau.groupObjectTable());
|
||||
@ -73,6 +78,7 @@ PYBIND11_MODULE(knx, m)
|
||||
m.def("Start", &Start, "Start knx handling thread.");
|
||||
m.def("ProgramMode", (bool(*)())&ProgramMode, "get programing mode active.");
|
||||
m.def("ProgramMode", (bool(*)(bool))&ProgramMode, "Activate / deactivate programing mode.");
|
||||
m.def("Configured", (bool(*)())&Configured(), "get configured status.");
|
||||
m.def("RegisterGroupObjects", &RegisterGroupObjects);
|
||||
|
||||
py::class_<GroupObject>(m, "GroupObject", py::dynamic_attr())
|
||||
@ -90,6 +96,7 @@ PYBIND11_MODULE(knx, m)
|
||||
|
||||
auto valueRef = go.valueRef();
|
||||
memcpy(valueRef, value.c_str(), go.valueSize());
|
||||
go.objectWritten();
|
||||
})
|
||||
.def("callBack", (void(GroupObject::*)(GroupObjectUpdatedHandler))&GroupObject::callback);
|
||||
}
|
Loading…
Reference in New Issue
Block a user