Projects¶
Complete projects that store their data in SQL Server with tdslite. Many projects like these send their data through an MQTT broker, a PHP script or a cloud service to reach a database. These versions talk to SQL Server directly; the bridge keeps MQTT and adds SQL Server to it.
- MQTT to SQL Server bridge: store every message of your MQTT devices (Tasmota, ESPHome, your own sketches), with an ESP32 instead of a PC running Node-RED or a script.
- Battery weather station: a BME280 that reports every 10 minutes and sleeps in between.
- RFID attendance: an RC522 reader that checks cards against SQL Server and logs every scan.
- Energy monitor: a PZEM-004T power meter, with daily and monthly consumption from SQL queries.
Each project runs on the ESP32 and the ESP8266, and comes with:
- the sketch, in examples/projects
setup.sql: the tables, a stored procedure, and a login that may only call that procedurequeries.sql: reports to run in SQL Server Management Studio, a dashboard tool, or anything else that talks to SQL Server
What's tested: CI builds every sketch for the ESP32 and the ESP8266. It
also runs each setup.sql against SQL Server, makes the calls each sketch
makes with the same parameter types and the device's own login, and checks
the results of the reports. The sensors and readers themselves aren't part
of the tests.
Before you start, a tutorial shows the basics, and Direct connections and gateways helps decide whether your devices should talk to SQL Server directly.