Skip to content

Commit 9a58b8d

Browse files
TaddyHCFr4ng
andauthored
Update content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-with-rs485/content.md
Co-authored-by: Fr4ng <100422525+Fr4ng@users.noreply.github.com>
1 parent cb22c66 commit 9a58b8d

File tree

1 file changed

+2
-1
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-with-rs485

1 file changed

+2
-1
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-with-rs485/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ void setup() {
105105
The sender's job is to pack and transmit data to the receiver. Inside the main loop of the sketch, the sender will capture input data from the serial port and write the data after a series of checks to avoid sending incorrect data. Before converting the data to an integer, it is necessary to discard the end-of-line (EOL) as shown in the sketch.
106106

107107

108-
The `RS485.beginTransmission()` method enables the RS-485 transmission. Subsequently, the `RS485.write(incomingByte)` method sends data as a byte or a series of bytes by writing its binary data to the serial port. In this case, we are sending to the receiver the `incomingByte` variable that contains the input data converted to an integer. The `RS485.endTransmission()` method then ends the RS-485 transmission, finishing the operation cycle.
108+
The `RS485.beginTransmission()` method enables the RS-485 transmission. Subsequently, the `RS485.write(incomingByte)` method sends data as a byte or a series of bytes by writing their binary data to the serial port. In this case, we are sending to the receiver the `incomingByte` variable that contains the input data converted to an integer. The `RS485.endTransmission()` method then ends the RS-485 transmission, finishing the operation cycle.
109+
109110

110111
```arduino
111112
void loop() {

0 commit comments

Comments
 (0)