envy / esp-knx-ip

A KNX/IP library for the ESP8266 with Arduino
MIT License
135 stars 49 forks source link

Receive messages on group 2/1/0 #73

Closed brunohorta82 closed 4 years ago

brunohorta82 commented 4 years ago

Hello, thanks for the great library :) I register my switches like this way: for (auto &item : items) { callback_id_t switchesCallbackId = knx.callback_register(String(item.name), switchesCallback, &item); knx.callback_assign(switchesCallbackId, knx.GA_to_address(2, 1, i)); i++;

the final result for 2 switches is like 2/1/1 and 2/1/2, I have any method to handle with the telegrams sent to 2/1/0 ? if I receive on message on this group address I want to turn on/turn off all switches.

brunohorta82 commented 4 years ago

I made this way, is correct? callback_id_t switchesCallbackId = knx.callback_register("ALL", allwitchesCallback); knx.callback_assign(switchesCallbackId, knx.GA_to_address(2, 1, 0));

envy commented 4 years ago

Hi,

Sure, you can do it this way.