I have a project that uses FreeRTOS on an Uno R3 and passes data through to the ESP8266.
The problem is that without using FreeRTOS, everything is perfect.
But if using FreeRTOS, the Arduino Uno R3 does not run SoftwareSerial.
I tried testing with the following code:
#include <Arduino_FreeRTOS.h>
#include <SoftwareSerial.h>
#include <queue.h>
#include <task.h>
#include <semphr.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
SoftwareSerial Unorial(11, 12); //RX, TX
-----------------
if (Unorial.isListening()) {
Serial.println("Unorial is listening!");
} else {
Serial.println("Unorial is not listening!");
delay(1000);
}
and as a result the SoftwareSerial on the Uno doesn’t listen at all.
I wonder, does the SoftwareSerial.h library not support FreeRTOS???
And, How can I transmit data from Uno R3 to ESP using FreeRTOS ?