LoRa node acquiring analog input and sending to LoRa Server - Working ok
Dependents: DISCO-L072CZ-LRWAN1_LoRa_node EIoT_LoRa_node_1 EIoT_LoRa_node_2 EIoT_LoRa_node_3
Fork of SX1276GenericLib by
Diff: Arduino-mbed-APIs/arduino-mbed.h
- Revision:
- 105:6e6d141c3da8
- Parent:
- 101:50377edb21c6
--- a/Arduino-mbed-APIs/arduino-mbed.h Tue Nov 21 16:59:28 2017 +0100 +++ b/Arduino-mbed-APIs/arduino-mbed.h Wed Nov 22 12:14:00 2017 +0100 @@ -12,11 +12,18 @@ #include <arduino.h> #include "Callback-A.h" +#include <sys/time.h> +#include <time.h> #include <SPI.h> #undef min #undef max #undef map +#ifdef ARDUINO_ARCH_ESP32 +#include <rom/rtc.h> +#include <esp_deep_sleep.h> +#endif + typedef int PinName; #define NC -1 /* we need to redefine out dprintf because stdio.h uses the same name */ @@ -51,14 +58,21 @@ extern int CPUID(uint8_t *buf, int maxSize, uint32_t xorval); extern void sleep(void); extern void deepsleep(void); +extern time_t cvt_date(char const *date, char const *time); #define MAX_TIMEOUTS 10 +extern int maxTimeouts; class Timeout; struct TimeoutVector { Timeout *timer; }; extern TimeoutVector TimeOuts[]; +#ifdef ARDUINO_ARCH_ESP32 +extern const char *ESP32WakeUpReason(esp_deep_sleep_wakeup_cause_t wakeup_reason); +extern const char *ESP32ResetReason(RESET_REASON r); +#endif + /* * Arduino-mbed.cpp