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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login