Code for the Arduino MKR GSM 1400 for reading water temperature and dispatching it to a server
After cloning repo, perform the following steps;
Create file src/secrets.h with contents
#define SECRET_PINNUMBER "XXXX"
#define SECRET_GPRS_APN "telenor.smart"
#define SECRET_GPRS_LOGIN ""
#define SECRET_GPRS_PASSWORD ""
#define SECRET_HOSTNAME "datalogger.hostname.com"
#define SECRET_PORT 80
Run
platformio -c clion init --ide clion
Then, from within CLion, click "New Project" -> PlatformIO -> Arduino -> Arduino MKR GSM 1400. Make sure the location of the project is the same as the location where you cloned the repo to. Click no when asked to create from existing sources instead.
Needs to be run quite a few meters. See https://www.maximintegrated.com/en/design/technical-documents/tutorials/1/148.html .
Trying this unit first: https://www.digitalimpuls.no/diverse/145322/waterproof-digital-temperature-sensor-ds18b20-3m-kabel . A waterproofed ds18b20 unit.