First of all I am sorry for my English. but I hope you guys are understand.
My project is reading Byte by serial communication from PC to Arduino. for example I send some serial packet data and Arduino must receive then send back that data to the PC.
Diagram: PC (use VB.net) -> USB to RS485 -> MAX485 Module (RS485 to TTL) -> Arduino Nano
#include <SoftwareSerial.h> // Using software serial library
#define SSerialRX 10 // Serial Receive pin (RO)
#define SSerialTX 11 // Serial Transmit pin (DI)
#define SSerialTxControl 3 // RS485 Direction control
//(DE & RE) pin to digital pin 3
#define RS485Transmit HIGH // to open direction of MAX485 module
#define RS485Receive LOW // to close direction of MAX485 module
#define Pin13LED 13 // Built in LED to indicate command has recieved
SoftwareSerial RS485Serial(SSerialRX, SSerialTX); // initialize RX and TX
void setup() {
pinMode(Pin13LED, OUTPUT); // Pin13LED as OUTPUT
pinMode(SSerialTxControl, OUTPUT); // SSerialTxControl as OUTPUT
digitalWrite(SSerialTxControl, RS485Receive); // initial set SSerialTxControl are closed
RS485Serial.begin(115200);
}
void loop() {
if (RS485Serial.available() > 0 )
{
inputString = RS485Serial.readByte();
digitalWrite(SSerialTxControl, RS485Transmit);
RS485Serial.println(inputString);
digitalWrite(SSerialTxControl, RS485Receive);
}
}
But i getting this error:
exit status 1
'class SoftwareSerial' has no member named 'readByte'
I have to try to readString and it is working well, but this problem come when i am readByte.
anyone can help? Thank you for your attention.

