diff --git a/manifest.json b/manifest.json index 91d7949..da2a05f 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "vendor": "Axis Communications AB", "embeddedSdkVersion": "3.0", "runMode": "respawn", - "version": "1.2.3" + "version": "1.2.4" }, "configuration": { "settingPage": "config.html", diff --git a/modbus_server.c b/modbus_server.c index d2b5312..5e14bc4 100644 --- a/modbus_server.c +++ b/modbus_server.c @@ -119,6 +119,8 @@ static void *run_modbus_server(void *run) rlen); break; } + guint16 address = (req[8] << 8) | req[9]; + LOG_I("%s/%s: Received request on address %d", __FILE__, __FUNCTION__, address); if (MODBUS_FC_WRITE_SINGLE_COIL == req[7]) { LOG_I(