Search code examples
mysql-pythonesp32micropython

How to install Micropython MySQLdb on ESP32


I want to save data from an ESP32 in a network database. Therefore I need the module MySQLdb in Micropython on the ESP32. How can I install it there?


Solution

  • running just about any database client from an ESP32 to a hosted database somewhere would be a challenge (in processing power, security and maintaining state)

    I would suggest using the ESP32 to send data to a mqtt broker, and then have something else, (the server running the database, a serverless function , etc etc ) subscribe to that topic , and write any changes to the database.