Sync to latest esp-knx-ip library

This commit is contained in:
Adrian Scillato 2019-07-10 09:25:05 -03:00 committed by GitHub
parent ddb606c2b5
commit 1cf2dfe006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -31,14 +31,14 @@ void setup() {
pinMode(LED_PIN, OUTPUT);
Serial.begin(115200);
callback_id_t temp_cb = knx.callback_register("Read Temperature", temp_cb);
callback_id_t hum_cb =knx.callback_register("Read Humidity", hum_cb);
callback_id_t pres_cb =knx.callback_register("Read Pressure", pres_cb);
callback_id_t temp_cb_id = knx.callback_register("Read Temperature", temp_cb);
callback_id_t hum_cb_id =knx.callback_register("Read Humidity", hum_cb);
callback_id_t pres_cb_id =knx.callback_register("Read Pressure", pres_cb);
// Assign callbacks to group addresses (2/1/1, 2/1/2, 2/1/3)
knx.callback_assign(temp_cb, knx.GA_to_address(2, 1, 1));
knx.callback_assign(hum_cb, knx.GA_to_address(2, 1, 2));
knx.callback_assign(pres_cb, knx.GA_to_address(2, 1, 3));
knx.callback_assign(temp_cb_id, knx.GA_to_address(2, 1, 1));
knx.callback_assign(hum_cb_id, knx.GA_to_address(2, 1, 2));
knx.callback_assign(pres_cb_id, knx.GA_to_address(2, 1, 3));
// Set physical address (1.1.1)
knx.physical_address_set(knx.PA_to_address(1, 1, 1));