2 * Copyright © Stéphane Raimbault <stephane.raimbault@gmail.com>
4 * SPDX-License-Identifier: BSD-3-Clause
12 printf("Compiled with libmodbus version %s (%06X)\n",
13 LIBMODBUS_VERSION_STRING
,
14 LIBMODBUS_VERSION_HEX
);
15 printf("Linked with libmodbus version %d.%d.%d\n",
16 libmodbus_version_major
,
17 libmodbus_version_minor
,
18 libmodbus_version_micro
);
20 if (LIBMODBUS_VERSION_CHECK(2, 1, 0)) {
21 printf("The functions to read/write float values are available (2.1.0).\n");
24 if (LIBMODBUS_VERSION_CHECK(2, 1, 1)) {
25 printf("Oh gosh, brand new API (2.1.1)!\n");