Beginner ESP32 questions
Posted: Sun Sep 13, 2020 8:55 pm
Hi,
I was using ESP 8266 and coding on it was very straight forward and there were examples all over the place. Now I wanted to switch to ESP32 but I noticed there is IDF way of coding and "Arduino" way of coding. For example I wanted to start with simple bluetooth connection with Android to send text messages back and forth.
When searching for examples on the net I realized there is "Arduino" way of doing it which is 10 lines of code and there are examples all over place for it. Another is IDF way of doing it which lack documentation and only example I could find is on IDF forums and simple example is posted by one guy and the example is not 10 lines, it is 10 pages.
Why is this happening with ESP32. I realized that if we want to use all the features of the ESP32 we need to use IDF as it has FreeRTOS to use both cores as we want, control all hardware features, etc. But issue I have with this is that there is no enough documentation as for example IDF docs don't even have a simple Bluetooth example (the ones in example folder are all some specific use cases and there is no simple example to get basic communication with phone).
If it that now all the code written in Arduino port for Esp32 we basically need to write from scratch and without proper community and docs?
I would like to really use all the features of ESP32 but I don't want to spend ages just to send/receive text message on bluetooth. I can imagine it is almost impossible to implement some projects I did on 8266 on ESP32 with IDF using dozen of sensors, touch screen display, etc.
I am writing all this as I am so confused that I am planning on moving to completely different microprocessor as I really don't see how ESP32 can be used easily. I hope I misunderstood something as I really liked 8266. I don't mind writing complex code (my 8266 projects had thousands of lines of code) but I don't want to spend 80% of time googling for simple stuff.
Can you please give me some advice?
Thanks
I was using ESP 8266 and coding on it was very straight forward and there were examples all over the place. Now I wanted to switch to ESP32 but I noticed there is IDF way of coding and "Arduino" way of coding. For example I wanted to start with simple bluetooth connection with Android to send text messages back and forth.
When searching for examples on the net I realized there is "Arduino" way of doing it which is 10 lines of code and there are examples all over place for it. Another is IDF way of doing it which lack documentation and only example I could find is on IDF forums and simple example is posted by one guy and the example is not 10 lines, it is 10 pages.
Why is this happening with ESP32. I realized that if we want to use all the features of the ESP32 we need to use IDF as it has FreeRTOS to use both cores as we want, control all hardware features, etc. But issue I have with this is that there is no enough documentation as for example IDF docs don't even have a simple Bluetooth example (the ones in example folder are all some specific use cases and there is no simple example to get basic communication with phone).
If it that now all the code written in Arduino port for Esp32 we basically need to write from scratch and without proper community and docs?
I would like to really use all the features of ESP32 but I don't want to spend ages just to send/receive text message on bluetooth. I can imagine it is almost impossible to implement some projects I did on 8266 on ESP32 with IDF using dozen of sensors, touch screen display, etc.
I am writing all this as I am so confused that I am planning on moving to completely different microprocessor as I really don't see how ESP32 can be used easily. I hope I misunderstood something as I really liked 8266. I don't mind writing complex code (my 8266 projects had thousands of lines of code) but I don't want to spend 80% of time googling for simple stuff.
Can you please give me some advice?
Thanks