forked from LowPowerLab/RFM69
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRFM69_Secure.h
23 lines (20 loc) · 1.15 KB
/
RFM69_Secure.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// **********************************************************************************
// Library for Secure wireless communications of Moteinos using an RFM69 transceiver
// **********************************************************************************
// Hardware requirements:
// - Moteino or Moteino compatible board
// Library requirements:
// - RFM69 - get library at: https://github.com/LowPowerLab/RFM69
// - SHA3 - get library at: https://github.com/rweather/arduinolibs/tree/master/libraries/Crypto
// **********************************************************************************
// License
// **********************************************************************************
// TODO
// **********************************************************************************
#ifndef RFM69_SECURE_H
#define RFM69_SECURE_H
#include "RFM69.h"
virtual void secureSend(uint16_t toAddress, const void* buffer, uint8_t bufferSize, bool requestACK=false);
virtual bool secureSendWithRetry(uint16_t toAddress, const void* buffer, uint8_t bufferSize, uint8_t retries=2, uint8_t retryWaitTime=RFM69_ACK_TIMEOUT);
virtual bool secureReceiveDone();
#endif