Skip to content

Commit

Permalink
Bumped up version
Browse files Browse the repository at this point in the history
- Bumped up the library version in Arduino library manifest files.
- Updated comments in the header file.
  • Loading branch information
vishnumaiea committed Oct 27, 2024
1 parent 71c4bdb commit 68b1219
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
6 changes: 6 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
Change log for `CSE_ModbusRTU` library. Latest entries are at the top.


#
### **+05:30 10:35:29 AM 27-10-2024, Sunday**

- Bumped up the library version in Arduino library manifest files.
- Updated comments in the header file.

#
### **+05:30 09:53:27 AM 27-10-2024, Sunday**

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/vishnumaiea",
"maintainer": true
},
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=CSE_ModbusRTU
version=0.0.7
version=0.0.8
author=Vishnu Mohanan
maintainer=Vishnu Mohanan
sentence=Arduino library for implementing Modbus RTU communication protocol on Arduino-supported boards.
Expand Down
8 changes: 5 additions & 3 deletions src/CSE_ModbusRTU.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@
#define MODBUS_EX_GATEWAY_TARGET_NO_RESPONSE 0x0B

//======================================================================================//

// You can change the serial port for debug messages here
#define MODBUS_DEBUG_SERIAL Serial
// This section allows you to configure the debug message printing capability of the library.

// Enable or disable the debug functionality here.
// 1 = Enabled, 0 = Disabled.
#define ENABLE_DEBUG 1

// Change the serial port used for debug messages here.
#define MODBUS_DEBUG_SERIAL Serial

#ifdef ENABLE_DEBUG
#define DEBUG_PRINT_HELPER(condition, ...) \
do { \
Expand Down
12 changes: 6 additions & 6 deletions test/ModbusRTU_Client_Test/ModbusRTU_Client_Test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@ void setup() {
//===================================================================================//

void loop() {
if (modbusRTUClient.writeCoil (0x00, 0xFF00) == -1) { // Turn the LED on
Serial.println ("Turning LED on failed.");
if (modbusRTUClient.writeCoil (0x00, 0xFF00) == -1) { // Turn on the LED
Serial.println ("Turning on the LED failed.");
}
else {
Serial.println ("Turning LED on success.");
Serial.println ("Turning on the LED successful.");
}

delay (1000);

if (modbusRTUClient.writeCoil (0x00, 0x0000) == -1) { // Turn the LED off
Serial.println ("Turning LED off failed.");
if (modbusRTUClient.writeCoil (0x00, 0x0000) == -1) { // Turn off the LED
Serial.println ("Turning off the LED failed.");
}
else {
Serial.println ("Turning LED off success.");
Serial.println ("Turning off the LED successful.");
}
delay (1000);
}
Expand Down

0 comments on commit 68b1219

Please sign in to comment.