connect mysql to esp32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
AntonioBrito
Posts: 7
Joined: Wed Jul 27, 2022 10:39 am

connect mysql to esp32

Post by AntonioBrito » Tue Aug 02, 2022 8:25 pm

Hello everyone, currently I have an MySQL Database with some data from a sensor ,
I have a code who send data to mysql db
but I want my other esp to get acess to that values to execute some actions,
Basically I want to get the values from the DB into my micropython variables
how can I do that?

User avatar
OlivierLenoir
Posts: 126
Joined: Fri Dec 13, 2019 7:10 pm
Location: Picardie, FR

Re: connect mysql to esp32

Post by OlivierLenoir » Wed Aug 03, 2022 5:00 am

Didi you try using MQTT?
Your first ESP32 publish data. MySQL and your second ESP32 subscribe to data.

AntonioBrito
Posts: 7
Joined: Wed Jul 27, 2022 10:39 am

Re: connect mysql to esp32

Post by AntonioBrito » Wed Aug 03, 2022 7:34 pm

i have it on my sql database, can't I just send the value to my php code and then transfer it to micropython with urequests?

Post Reply