send many variables in one messages
-
Hi.
I have a problem with Blinds. I work with domoticz.
I try to use one STM32 to control 6 blinds. My sketch calculating position (depend of time) and provide V_UP, V_DOWN and V_STOP buttons for each blind.But I want to send actual position to the controller when blind is moving.
At start i create Message:
MyMessage msg(0,V_COVER);
Presentation section:
for (int i=0; i <= blind_cont-1; i++){present(i, S_COVER);}
And when I want sent actual position :
for (int i=0; i <= blind_cont-1; i++) { if (dstatus[i] != V_STOP) { send(msg.setSensor(i).setType(V_PERCENTAGE).set(dposition[i],5),false); wait(250); } }
It;s correct ? Becouse DOMOTICZ doesn't receive anythink.
1 out of 1
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 28 Mar 2025, 12:28 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22