'\" t
.\"     Title: modbus_set_debug
.\"    Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 05/26/2012
.\"    Manual: Libmodbus Manual
.\"    Source: libmodbus 3.0.3
.\"  Language: English
.\"
.TH "MODBUS_SET_DEBUG" "3" "05/26/2012" "libmodbus 3\&.0\&.3" "Libmodbus Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
modbus_set_debug \- set debug flag of the context
.SH "SYNOPSIS"
.sp
\fBvoid modbus_set_debug(modbus_t *\fR\fB\fIctx\fR\fR\fB, int \fR\fB\fIboolean\fR\fR\fB);\fR
.SH "DESCRIPTION"
.sp
The \fImodbus_set_debug()\fR function shall set the debug flag of the \fBmodbus_t\fR context by using the argument \fIboolean\fR\&. When the \fIboolean\fR value is set to \fITRUE\fR, many verbose messages are displayed on stdout and stderr\&. For example, this flag is useful to display the bytes of the Modbus messages\&.
.sp
.if n \{\
.RS 4
.\}
.nf
[00][14][00][00][00][06][12][03][00][6B][00][03]
Waiting for a confirmation\&...
<00><14><00><00><00><09><12><03><06><02><2B><00><00><00><00>
.fi
.if n \{\
.RE
.\}
.SH "RETURN VALUE"
.sp
There is no return values\&.
.SH "AUTHORS"
.sp
The libmodbus documentation was written by St\('ephane Raimbault <\m[blue]\fBstephane\&.raimbault@gmail\&.com\fR\m[]\&\s-2\u[1]\d\s+2>
.SH "NOTES"
.IP " 1." 4
stephane.raimbault@gmail.com
.RS 4
\%mailto:stephane.raimbault@gmail.com
.RE
