Tutorials¶
Each tutorial takes you from nothing to a program that prints rows from SQL Server. Pick the one that matches what you have on your desk:
-
An Arduino Uno (or Mega, Nano...) with an Ethernet shield, programmed from the Arduino IDE.
-
An ESP32 board on Wi-Fi, built with PlatformIO in VS Code or on the command line.
-
An ESP32, ESP32-C3 or ESP32-S3 programmed with Espressif's own framework.
-
A Linux or macOS computer and a C++ compiler. The quickest way to try tdslite without any hardware.
All four build the same small program: create a table, put three fruits in it, and read them back.
Before you start: a SQL Server to talk to¶
Every tutorial needs a SQL Server that your device can reach. If you don't have one, run one in Docker on your computer:
docker run -d --name tdslite-tutorial -p 1433:1433 \
-e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=Tutorial-Passw0rd \
mcr.microsoft.com/mssql/server:2022-latest
This starts SQL Server 2022 with the user sa and the password
Tutorial-Passw0rd, which the tutorials use. It listens on port 1433 of your
computer.
Find your computer's IP address
A board on your network connects to your computer's IP address, not to
localhost. Look it up with ipconfig (Windows), ip addr (Linux) or
in the network settings (macOS). The tutorials use 192.168.1.10;
replace it with yours.
When you're done with the tutorials, remove the server: