Upload files to "software/VSC.cpp"
This commit is contained in:
41
software/VSC.cpp/VSC.h
Normal file
41
software/VSC.cpp/VSC.h
Normal file
@ -0,0 +1,41 @@
|
||||
#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();
|
Reference in New Issue
Block a user