пропажа слешей
Dependencies: mbed mbed-STM32F103C8T6 MLX90614 Watchdog DS1820
Diff: config.h
- Revision:
- 6:70d0218c2a28
- Child:
- 9:e8a07983289f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h Tue Sep 29 17:39:26 2020 +0000 @@ -0,0 +1,28 @@ +#pragma once + +#define STATE_INIT 0 +#define STATE_STARTING_GPS 1 +#define STATE_WAITING_FIX 2 +#define STATE_COLLECTING_TELEMETRY 3 +#define STATE_SENDING_TELEMETRY 4 +#define STATE_SLEEPING 5 + +#define SLEEP_CHECK_TIME 60 +#define SLEEP_TIME_S 60*5 +#define WATCHDOG_INTERVAL_S SLEEP_TIME_S+5 +#define FIX_CHECK_TIME_S 60 +#define FIX_MAX_TRIES 3 + +#define PIN_SDA PB_9 +#define PIN_SCL PB_8 +#define PIN_ONEWIRE PC_14 +#define PIN_SIM_TX PA_9 +#define PIN_SIM_RX PA_10 +#define PIN_TX PA_2 +#define PIN_RX PA_3 + + +#define DEBUG_SIM 1 +#define DEBUG_PC 1 + +#define NBIOT_TELEMETRY_URL "http://iotsandbox.mts.ru:8080/api/v1/msyDlNiOZVAzKkkmVNVU/telemetry" \ No newline at end of file