MySensors Library & Examples  2.3.2
Macros
+ Collaboration diagram for RS485:

Detailed Description

These options are specific to the RS485 wired transport.

Macros

#define MY_RS485
 Define this to use the RS485 wired transport for sensor network communication.
 
#define MY_RS485_BAUD_RATE   (9600)
 The RS485 BAUD rate.
 
#define MY_RS485_MAX_MESSAGE_LENGTH   (40)
 The maximum message length used for RS485.
 
#define MY_RS485_SOH_COUNT   (1)
 Use this in case of collisions on the bus. 3 might be a good setting.
 
#define MY_RS485_DE_PIN
 RS485 driver enable pin.
 
#define MY_RS485_DE_INVERSE
 Define this if RS485 driver enable pin polarity is inverted (low-active).
 
#define MY_RS485_HWSERIAL
 Define this if RS485 is connected to a hardware serial port. More...
 

Macro Definition Documentation

◆ MY_RS485_HWSERIAL

#define MY_RS485_HWSERIAL

Define this if RS485 is connected to a hardware serial port.

Example:

#define MY_RS485_HWSERIAL Serial1

Definition at line 2328 of file MyConfig.h.