envy / esp-knx-ip

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

Question on Physical Address. Manual Entry #34

Closed ascillato closed 6 years ago

ascillato commented 6 years ago

Hi,

Setting the Physical Address by code was intended to be like the following? Or there is another way?

  // Set Physical KNX Address of ESP KNX (Optional)
  address_t physaddr;
  physaddr.pa.area=1;
  physaddr.pa.line=1;
  physaddr.pa.member=1;
  knx.physical_address_set(physaddr);
envy commented 6 years ago

Yes, either that way or like this:

knx.physical_address_set(GA_to_address(1, 2, 3));
ascillato commented 6 years ago

That code does not work. If I put 1.1.1 it put as physical 0.9.1 Thats why the question

El 8 mar. 2018 16:22, "Nico Weichbrodt" notifications@github.com escribió:

Yes, either that way or like this:

knx.physical_address_set(GA_to_address(1, 2, 3));

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/envy/esp-knx-ip/issues/34#issuecomment-371594889, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahw-h8EP8Fjew8CaQTBUdH_eNaQWKKxVks5tcYT7gaJpZM4Sh_YK .

envy commented 6 years ago

Oops, yeah sorry. I confused group and physical addresses for a moment there...

I will add a PA_to_address method for this.