some fixes with meteo

This commit is contained in:
2022-07-04 18:05:08 +03:00
parent a00200af3c
commit 478ad21c7a
4 changed files with 197 additions and 212 deletions

View File

@@ -20,12 +20,13 @@
#define BTA_METEO_MODBUS_H__
// data reading timeout (in seconds)
#define METEO_TIMEOUT 5
#define METEO_TIMEOUT 15
typedef enum{
ANS_OK, // all OK
ANS_LOSTCONN, // lost connection
ANS_NOTFULL // got not full dataset (or nothing at all)
ANS_NODATA, // no data yet
// ANS_NOTFULL // got not full dataset (or nothing at all)
} params_ans;
int connect2tty();