Comments (2)
Yes, I think It would be useful to add a NMBS_ERROR_CRC
, and also something like NMBS_ERROR_INVALID_TCP_MBAP
for this part at nanomodbus.c:317
if (protocol_id != 0)
return NMBS_ERROR_TRANSPORT;
if (length > 255)
return NMBS_ERROR_TRANSPORT;
This should cover all the transport-related error cases
from nanomodbus.
Added in 271f689
from nanomodbus.
Related Issues (20)
- Using NMBS_SERVER_DISABLED HOT 3
- Add support to FC 21 (0x15) Write File Record HOT 1
- Communication problem with 2 servers and 1 client HOT 14
- return type for nmbs_create HOT 1
- cast missing in recv_res_header HOT 1
- Timing HOT 6
- Access to "Unit Identifier" byte in NMBS_TRANSPORT_TCP mode is impossible HOT 4
- Not compiling with SDCC HOT 14
- Stack smashing protect failure HOT 3
- nanoMODBUS Server Support for Multiple Clients HOT 1
- Out of bounds access in Arduino server example HOT 1
- Add nmbs_read_single_register HOT 2
- NMBS_ERROR_TRANSPORT after disconnect HOT 4
- Possible buffer overflow using nmbs_read_holding_registers() HOT 1
- Hardfault in library (Guessing Memory address fault) HOT 2
- Doubts regarding the TCP connection in library HOT 1
- Using the library in STM32 project HOT 5
- Timeout Issue HOT 2
- Configuration define error HOT 1
- RTU Connection Setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanomodbus.