This repository has been archived on 2024-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
zamek-hswro/OneWireAuthenticator.h

25 lines
426 B
C++

#ifndef ONEWIREAUTHENTICATOR_H
#define ONEWIREAUTHENTICATOR_H
#include "IAuthenticator.h"
#include <OneWire.h>
class ILogger;
class OneWireAuthenticator: public IAuthenticator
{
public:
OneWireAuthenticator(int interfacePin, const ILogger& logger);
virtual Key getKey();
private:
enum {
ONEWIRE_KEY_SIZE = 8,
};
OneWire oneWire;
const ILogger& logger;
};
#endif // ONEWIREAUTHENTICATOR_H