How to suppress error messages

Asked by Baroo

Hi
How can I suppress error messages that appear on standard output of my application?

How I can modify timeout in modbus RTU mode?

Thanks for any advices

Question information

Language:
English Edit question
Status:
Solved
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Stéphane Raimbault (sra) said :
#2

Error messages are now sent to stderr output so you can filter them (http://github.com/stephane/libmodbus/commit/5ec104ae31f7743abcfcefa09662e435e4a11bc7)

The timeout is hard coded in the library code source.

Revision history for this message
Stéphane Raimbault (sra) said :
#3

I intend to integrate the following patch to resolve the timeout issue:
https://bugs.launchpad.net/libmodbus/+bug/463299

Revision history for this message
Stéphane Raimbault (sra) said :
#4

New functions to get/set timeouts have been implemented:
http://github.com/stephane/libmodbus/commit/d8f254779570daf8bba60819fe677af4cba8c87a