Hi all. I’m working on a project that will use both a Teensy 3.2 and Adafruit ESP8266 Huzzah. The ESP will provide the WiFi connection and user interface via BLYNK. The Teensy will run the main application using the Audio and FastLED libraries. The required inter-processor communication is pretty modest. I intend to use EasyTransfer to send small data structures back and forth when required.
To keep the Teensy’s Serial/USB interface free for debugging, I’ll use Serial3 for connection to the ESP. As far as I can tell, the ESP only has one hardware serial port and it connects to the CP2104 for USB use. Since I also want to keep that free for debugging, I’ll use SoftwareSerial on the ESP for communication with the Teensy.
So, finally, the question. Does EasyTranfer care about software verses hardware serial? Can I pass a pointer to a SoftwareSerial object to the begin() method of my EasyTransfer object just like I can pass a pointer to the Serial object? Seems I can as the source code shows it’s actually expecting a pointer to a Stream object. But, my grasp of C++ is tenuous at best, so thought I’d ask.
Thanks.
To keep the Teensy’s Serial/USB interface free for debugging, I’ll use Serial3 for connection to the ESP. As far as I can tell, the ESP only has one hardware serial port and it connects to the CP2104 for USB use. Since I also want to keep that free for debugging, I’ll use SoftwareSerial on the ESP for communication with the Teensy.
So, finally, the question. Does EasyTranfer care about software verses hardware serial? Can I pass a pointer to a SoftwareSerial object to the begin() method of my EasyTransfer object just like I can pass a pointer to the Serial object? Seems I can as the source code shows it’s actually expecting a pointer to a Stream object. But, my grasp of C++ is tenuous at best, so thought I’d ask.
Thanks.