How-to guides¶
Recipes for specific jobs. They assume you've got tdslite running; if not, start with a tutorial.
Getting set up
- Install the library in the Arduino IDE, PlatformIO, ESP-IDF or a CMake project
- Connect an ESP8266 (NodeMCU, Wemos D1 mini), with or without TLS
- Connect to Azure SQL Database (not tested in CI)
Working with data
- Run parameterized queries
- Read column values: numbers, strings, NULLs, column names
- Call a stored procedure: parameters, result sets, OUTPUT parameters and errors
- Log sensor readings: insert readings on a schedule, and reconnect when the connection drops
Projects
- Complete projects for the ESP32 and the ESP8266: an MQTT to SQL Server bridge, a battery weather station, RFID attendance, and an energy monitor
When things go wrong
- Handle errors and server messages
- Troubleshoot common problems
Security
- Connect with TLS on ESP32/ESP8266, ESP-IDF and desktop
Constrained devices
Extending tdslite
- Write a network backend for a network stack tdslite doesn't support yet