Modbus Slave Library
github.com·13w·
Discuss: r/embedded

C Modbus Slave

Lightweight Modbus slave implementation for embedded C applications

Features

  • Zero dynamic allocations - Can be used without any dynamic allocations
  • Transport agnostic - Works with RS485/RS232 serial and Ethernet
  • Flexible data access - Direct pointers, callbacks, or constant values
  • Compact footprint - Minimal RAM and flash usage for embedded systems
  • Fast CRC calculation - Uses lookup table for efficient CRC-16 computation (512 bytes ROM)
  • Standards compliant - Implements Modbus specification accurately
  • Thread-safe - No global state, multiple instances supported

Getting Started

Prerequisites

  • C11 compatible compiler
  • Basic knowledge of Modbus protocol ([Wikipedia](https://e…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help