From 9533e1e03574065e5ada8080306a68cd60fdd70c Mon Sep 17 00:00:00 2001 From: Valerio De Benedetto Date: Thu, 29 Jun 2023 11:14:11 +0200 Subject: [PATCH] RTU unit_id documentation --- nanomodbus.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nanomodbus.h b/nanomodbus.h index c689f53..1b6a817 100644 --- a/nanomodbus.h +++ b/nanomodbus.h @@ -140,8 +140,10 @@ typedef struct nmbs_platform_conf { /** * Modbus server request callbacks. Passed to nmbs_server_create(). * - * These methods accept a pointer to arbitrary user-data, which is the arg member of the nmbs_platform_conf that was passed + * These methods accept a pointer to arbitrary user data, which is the arg member of the nmbs_platform_conf that was passed * to nmbs_server_create together with this struct. + * + * `unit_id` is the RTU unit ID of the request sender. It is always 0 on TCP. */ typedef struct nmbs_callbacks { #ifndef NMBS_SERVER_DISABLED