Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-AIO]-06 RS485
#1
[Arduino source code for KC868-AIO]-06 RS485
Code:
/*/*WWW.KINCONY.COM*/
/*KC868-AIO code of RS485 */

void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,32,33);//AIO
   Serial2.println("KC868-AIO RS485 SEND is OK!!");
   Serial2.println("******************");
 
}

void loop() {
  /*print the received data of RS485 port*/
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it
   }
  delay(200);
}


Attached Files
.zip   KC868-AIO_RS485.zip (Size: 614 bytes / Downloads: 269)
Reply


Messages In This Thread
[Arduino source code for KC868-AIO]-06 RS485 - by KinCony Support - 03-23-2023, 01:24 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)