mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-07-17 16:12:52 +02:00
Save and restore from power off
This commit is contained in:
30
src/ttn_nvs.h
Normal file
30
src/ttn_nvs.h
Normal file
@ -0,0 +1,30 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* ttn-esp32 - The Things Network device library for ESP-IDF / SX127x
|
||||
*
|
||||
* Copyright (c) 2018-2021 Manuel Bleichenbacher
|
||||
*
|
||||
* Licensed under MIT License
|
||||
* https://opensource.org/licenses/MIT
|
||||
*
|
||||
* Functions for storing and retrieving TTN communication state from NVS.
|
||||
*******************************************************************************/
|
||||
|
||||
#ifndef TTN_NVS_H
|
||||
#define TTN_NVS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
void ttn_nvs_save();
|
||||
bool ttn_nvs_restore(int off_duration);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user