The device goes in deep sleep after 3 restarts when connection is not successful
18 lines
No EOL
400 B
C++
18 lines
No EOL
400 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
enum class TransmitError : int16_t {
|
|
OK = 0,
|
|
INIT_FAILED = -1,
|
|
JOIN_FAILED = -2,
|
|
SEND_FAILED = -3,
|
|
};
|
|
|
|
class ITransmitter {
|
|
public:
|
|
virtual ~ITransmitter() = default;
|
|
virtual TransmitError init() = 0;
|
|
virtual TransmitError join() = 0;
|
|
virtual TransmitError send(uint8_t* payload, size_t size) = 0;
|
|
}; |