Files
2025-06-12 09:58:05 +01:00

42 lines
1.1 KiB
C++

#pragma once
// -----------------------------------------------------------------
#include "BLEDevice.h"
//#include "wifi.h"
extern BLEScan *pBLEScan; // = BLEDevice::getScan();
extern int scan_secs;
// Scan for BLE servers for the advertising service we seek. Called for each advertising server
class AdDataCallback : public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice);
};
// -----------------------------------------------------------------
#include "wolfssl.h"
#include "wolfssl/wolfcrypt/aes.h" // was #include <wolfssl/wolfcrypt/aes.h>
extern void encryptAesCtr();
extern void decryptAesCtr(bool quiet);
const word32 blkSize = AES_BLOCK_SIZE * 1;
extern byte inputs[blkSize];
extern byte cipher[blkSize];
extern byte output[blkSize];
extern void reportSCvalues();
extern float parseBattVolts();
extern void printBIGarray();
extern void printByteArray(byte byteArray[16]);
extern void printBins(byte byteArray[16]);
extern float parseBattAmps();
extern float parseKWHtoday();
extern float parsePVpower();
extern float parseLoadAmps();