Search found 3 matches
- Wed Feb 21, 2018 11:04 am
- Forum: ESP-IDF
- Topic: UART rx/tx incorrect data
- Replies: 1
- Views: 4548
Re: UART rx/tx incorrect data
With Arduino IDE code below works correctly: #include <HardwareSerial.h> HardwareSerial Serial2(2); void setup() { Serial.begin(115200, SERIAL_8N1); Serial2.begin(115200, SERIAL_8N1); } void loop() { if (Serial2.available() > 0) { Serial.write(Serial2.read()); } } But I need it works in ESP-IDF. I h...
- Tue Feb 20, 2018 10:20 pm
- Forum: ESP-IDF
- Topic: UART rx/tx incorrect data
- Replies: 1
- Views: 4548
UART rx/tx incorrect data
Hello, I have Arduino Uno R3 sending every 1s 'test' string at 115200 8N1 from TX pin to RX2 pin of DOIT ESP32 Devkit. I'm using this code to initialize UART2 and receive bytes: uart_config_t uart_config; uart_config.baud_rate = 115200; uart_config.data_bits = UART_DATA_8_BITS; uart_config.parity = ...
- Wed Oct 11, 2017 11:27 am
- Forum: ESP-IDF
- Topic: ESP-IDF libmodbus compatibility
- Replies: 5
- Views: 7070
ESP-IDF libmodbus compatibility
Hello, I tried to add libmodbus as component to ESP-IDF environment, but compilation throws me this errors: $ make all CC build/modbus/modbus-tcp.o C:/msys32/opt/esp/esp-idf/components/modbus/modbus-tcp.c:31:24: fatal error: sys/ioctl.h: No such file or directory compilation terminated. make[1]: ***...