20 lines
355 B
C++
20 lines
355 B
C++
#include "rs_message.h"
|
|
|
|
void setup() {
|
|
// put your setup code here, to run once:
|
|
MODBUS_FirstInit();
|
|
|
|
|
|
Serial.begin(115200); // для отладки
|
|
Serial.println("start");
|
|
|
|
}
|
|
|
|
void loop() {
|
|
// put your main code here, to run repeatedly:
|
|
RS_Process(&hmodbus1);
|
|
//delay(500);
|
|
//Serial.println("start");
|
|
//rs_huart.println("start1");
|
|
}
|