Polymorphism Code Review
Posted: Tue May 15, 2018 9:35 am
Hello all!
I am pretty new with esp32 an c++ in general and your input would be greately appreciated.
I have a chunk of code where the goal is to send strings of data using a connection that were first invoked.
For this nodemcu-32s was used.
https://gitlab.com/toniVarga/polymorphism
Can you please advise me is this the right way to do it or is there a better way, or correct way.
So basically there is base class MyComm with pure virtual function and BT and UART classes that inhert from MyComm.
In setup we chose where to send the strings based on connection in which the first byte was received.
Also could you please advise me on some tools for debugging and tracing stack or heap level and stuff like that.
I am pretty new with esp32 an c++ in general and your input would be greately appreciated.
I have a chunk of code where the goal is to send strings of data using a connection that were first invoked.
For this nodemcu-32s was used.
https://gitlab.com/toniVarga/polymorphism
Can you please advise me is this the right way to do it or is there a better way, or correct way.
So basically there is base class MyComm with pure virtual function and BT and UART classes that inhert from MyComm.
In setup we chose where to send the strings based on connection in which the first byte was received.
Also could you please advise me on some tools for debugging and tracing stack or heap level and stuff like that.