File tree Expand file tree Collapse file tree 5 files changed +19
-11
lines changed
test/ModbusRTU_Client_Test Expand file tree Collapse file tree 5 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 44Change log for ` CSE_ModbusRTU ` library. Latest entries are at the top.
55
66
7+ #
8+ ### ** +05:30 10:35:29 AM 27-10-2024, Sunday**
9+
10+ - Bumped up the library version in Arduino library manifest files.
11+ - Updated comments in the header file.
12+
713#
814### ** +05:30 09:53:27 AM 27-10-2024, Sunday**
915
Original file line number Diff line number Diff line change 1313 "url" : " https://github.com/vishnumaiea" ,
1414 "maintainer" : true
1515 },
16- "version" : " 0.0.7 " ,
16+ "version" : " 0.0.8 " ,
1717 "license" : " MIT" ,
1818 "frameworks" : " arduino" ,
1919 "platforms" : " *"
Original file line number Diff line number Diff line change 11name =CSE_ModbusRTU
2- version =0.0.7
2+ version =0.0.8
33author =Vishnu Mohanan
44maintainer =Vishnu Mohanan
55sentence =Arduino library for implementing Modbus RTU communication protocol on Arduino-supported boards.
Original file line number Diff line number Diff line change 7373#define MODBUS_EX_GATEWAY_TARGET_NO_RESPONSE 0x0B
7474
7575// ======================================================================================//
76-
77- // You can change the serial port for debug messages here
78- #define MODBUS_DEBUG_SERIAL Serial
76+ // This section allows you to configure the debug message printing capability of the library.
7977
8078// Enable or disable the debug functionality here.
79+ // 1 = Enabled, 0 = Disabled.
8180#define ENABLE_DEBUG 1
8281
82+ // Change the serial port used for debug messages here.
83+ #define MODBUS_DEBUG_SERIAL Serial
84+
8385#ifdef ENABLE_DEBUG
8486 #define DEBUG_PRINT_HELPER (condition, ...) \
8587 do { \
Original file line number Diff line number Diff line change @@ -62,20 +62,20 @@ void setup() {
6262// ===================================================================================//
6363
6464void loop () {
65- if (modbusRTUClient.writeCoil (0x00 , 0xFF00 ) == -1 ) { // Turn the LED on
66- Serial.println (" Turning LED on failed." );
65+ if (modbusRTUClient.writeCoil (0x00 , 0xFF00 ) == -1 ) { // Turn on the LED
66+ Serial.println (" Turning on the LED failed." );
6767 }
6868 else {
69- Serial.println (" Turning LED on success ." );
69+ Serial.println (" Turning on the LED successful ." );
7070 }
7171
7272 delay (1000 );
7373
74- if (modbusRTUClient.writeCoil (0x00 , 0x0000 ) == -1 ) { // Turn the LED off
75- Serial.println (" Turning LED off failed." );
74+ if (modbusRTUClient.writeCoil (0x00 , 0x0000 ) == -1 ) { // Turn off the LED
75+ Serial.println (" Turning off the LED failed." );
7676 }
7777 else {
78- Serial.println (" Turning LED off success ." );
78+ Serial.println (" Turning off the LED successful ." );
7979 }
8080 delay (1000 );
8181}
You can’t perform that action at this time.
0 commit comments