ArduinoRS485 - beginTransmission()

Enables RS-485 transmission.

Syntax

RS485.beginTransmission()

Parameters

None.

Returns

None.

Example

#include <ArduinoRS485.h>

int counter = 0;

void setup() {
  RS485.begin(9600);
}

void loop() {
  RS485.beginTransmission();
  RS485.print("Counter: ");
  RS485.println(counter);
  RS485.endTransmission();

  counter++;

  delay(1000);
}

See also