🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Anyone tried MySQL_Connector?

    PROJECTS
    2
    3
    7.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ToniT
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J
        janseta
        last edited by

        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...)

        ;-)

        1 Reply Last reply Reply Quote 0
        • T
          ToniT
          last edited by

          Thanks for the tip. Will do!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post