MySQL
Mysql 접속 : mysql -uroot -p
db만들기 : create database something;
| /* | |
| The device I'm using is https://myduino.com/product/tgo-007/ | |
| Before compiling make a WPA_secrets.h file with the following two lines | |
| const char* SECRET_SSID = "your ssid"; | |
| const char* SECRET_WIFI_PASS = "your WPA pass"; | |
| Libraries: | |
| modbus: https://github.com/eModbus/eModbus (and it's dependencies) | |
| display: https://github.com/Xinyuan-LilyGO/TTGO-T-Display |
| const int numReadings = 10; | |
| int readings[numReadings]; // the readings from the analog input | |
| int readIndex = 0; // the index of the current reading | |
| int total = 0; // the running total | |
| int average = 0; // the average | |
| int inputPin = A0; | |
| int distance; |