Comments (5)
It it possible to share the whole code (remove credentials)?
from vitowifi.
temporary dropbox exchange deleted again
from vitowifi.
I found a way for my problem.
I used the group identifier for "synchronize" and "on_request" datapoints.
e.g.:
DPTemp getTempA("gettempa", "synchronize", 0x0800); //Aussentemperatur
DPStat getAlarmStatus("getalarmstatus", "synchronize", 0x0847); //Sammelstoerung Ja/Nein 0x0A82 0x7579
DP8Timer getAnlagenzeit("getanlagenzeit", "synchronize", 0x088E); //Anlagenzeit DPHours 0x088E DPCount
DP8Timer getTimerZirkuSa("gettimerzirkusa", "on_request", 0x2228); //Zirkulationspumpe Zeiten Samstag
DP8Timer setTimerZirkuSa("settimerzirkusa", "on_request", 0x2228); //Zirkulationspumpe Zeiten Samstag
...
in the loop part I changed VitoWiFi.readAll() --> VitoWiFi.readGroup("synchronize") for all on minute received values:
void loop() {
if (!bStopVito) {
VitoWiFi.loop();
if (updateVitoWiFi && mqttClient.connected()) {
updateVitoWiFi = false;
VitoWiFi.readGroup("synchronize"); //VitoWiFi.readAll();
}
}
...
for all "on_request" datapoints I added MQTT subscriptions and its handling:
if (strcmp(topic, "VITOWIFI/settimerzirkusa") == 0) {
uint64_t setTimer = strtoull(payload, NULL, 16);
DPValue value(setTimer);
VitoWiFi.writeDatapoint(setTimerZirkuSa, value); // 06000730160018300000000000000000 = FFFFFFFF93803B30
VitoWiFi.readDatapoint(getTimerZirkuSa);
}
if (strcmp(topic, "VITOWIFI/retrievetimerzirkusa") == 0) {
uint64_t setTimer = strtoull(payload, NULL, 16);
DPValue value(setTimer);
VitoWiFi.readDatapoint(getTimerZirkuSa);
}
I hope this is clearly described.
Is the idea o.k. or any other ideas? If yes I can close the issue.
from vitowifi.
I don't think there is anything wrong with this way of work.
from vitowifi.
With workaround solved
from vitowifi.
Related Issues (20)
- Return type of _readDatapoint and _writeDatapoint HOT 1
- Compilation error at Datapoint.hpp HOT 1
- EOL for message "queue full" HOT 1
- "Betriebsart" as example delivers always "0" HOT 4
- DPCoP and group HOT 1
- 8 Byte read extension with uint64_t brings inconsistent results HOT 30
- Serialmonitor "chksum 0x2d" HOT 4
- Blocking after 6 hours HOT 3
- Errors on high MQTT request rate HOT 9
- Keine Verbindung mit ESP32 über USB-Host möglich HOT 3
- Wemos D1 mini / Serial-Pins HOT 7
- Example for DPRaw HOT 2
- Can you explain a bit more how to install the library in Arduino IDE 2.0? HOT 4
- Queue full without any connection
- VitoWiFi 2.0 Debug funcionality HOT 7
- Solved: Vitocal300 WO1B does not start with VitoWifi attached HOT 4
- Vitoconnect passthrough HOT 12
- Up-to-date library version on PlatformIO HOT 3
- Cannot compile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitowifi.