Groovy web console

subscribe to the feed Subscribe
to this
site

Convert KNX Address int to 3 level

Published 5 months ago by Pierre FABIER with tags KNX address level
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
int knxAddress = 41220
println String.format("%d/%d/%d", knxAddress >> 11,  knxAddress >> 15 & 0x07, knxAddress & 0xFF)