Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding TCP server handling to libmodbus #610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 15, 2021

  1. Adding TCP server handling to libmodbus

    When creating a modbus server you must create your own
    TCP / socket server for libmodbus.
    This commit aims to integrate this handling into libmodbus.
    
    Features:
    * Function to create a TCP server context where you specify port,
    ip and max_connection.
    * Handle function which must be called from a task or loop.
    * Destroy function with cleans up and correctly closes all current
    connections.
    * Function to change select timeout
    
    Uses the modbus specifications method of 'disconnecting the
    last used connection if max_connection is reached' when
    accepting new incoming connections.
    Johnny Rasmussen authored and kjeldflarup committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    66eb68e View commit details
    Browse the repository at this point in the history