J. Nick Koston 4af7a079d8
wip
2023-06-05 12:13:01 -05:00

22 lines
590 B
C

#ifndef _RATGDO_ROLLING_CODE_H
#define _RATGDO_ROLLING_CODE_H
#include "BootstrapManager.h"
#include <Arduino.h>
#include <ArduinoJson.h>
#include <LittleFS.h>
extern "C" {
#include "secplus.h"
}
void readCounterFromFlash(); // get the rolling code counter from setup.json &
// return it
void writeCounterToFlash(); // write the counter back to setup.json
void getRollingCode(
const char
*command); // get the next rolling code for type
// [reboot1,reboot2,reboot3,reboot4,reboot5,door1,light]
void printRollingCode();
#endif