Anyone tried MySQL_Connector?



  • Hi there!

    I'm prototyping an industrial control system on M5Stack, one of the steps is to upload some values to MySQL tables. I would like to do it straight using SQL sentences instead php POST or GETs but I'm unable to compile the libraries <MySQL_Connection.h> and <MySQL_Cursor.h> (several compilation errors not related with my code).

    If I remove M5 libraries or if I tried on another non ESP32 board it compiles ok but not with the M5.

    Have any of you experienced this issues? any way to solve it?

    Thanks in advance!

    Toni



  • As I know, that library was created for Arduino.
    Not all the librarys created for Arduino will work "as they are" in ESP32.

    It could be a good idea to look for "MySQL_Connection library" and "esp8266".
    Sure you can use that library with some little changes...

    And if it work with esp8266, it will work with esp32
    (Esp8266 is older than esp32, so ther is much more information about it...)

    ;-)



  • Thanks for the tip. Will do!