Public Access
29 lines
958 B
C++
29 lines
958 B
C++
// The parts of ESPHome's core that the display code links against but the
|
|||
|
|
// renderer never uses: there is no component lifecycle, polling, MAC or RNG on
|
||
|
|
// the PC side.
|
||
|
|
#include <cstring>
|
||
|
|
|
||
|
|
#include "esphome/core/component.h"
|
||
|
|
#include "esphome/core/helpers.h"
|
||
|
|
|
||
|
|
namespace esphome {
|
||
|
|
|
||
|
|
void Component::setup() {}
|
||
|
|
void Component::loop() {}
|
||
|
|
void Component::dump_config() {}
|
||
|
|
float Component::get_setup_priority() const { return 0.0f; }
|
||
|
|
bool Component::can_proceed() { return true; }
|
||
|
|
void Component::call_setup() {}
|
||
|
|
|
||
|
|
PollingComponent::PollingComponent(uint32_t update_interval) : update_interval_(update_interval) {}
|
||
|
|
void PollingComponent::call_setup() {}
|
||
|
|
uint32_t PollingComponent::get_update_interval() const { return this->update_interval_; }
|
||
|
|
void PollingComponent::stop_poller() {}
|
||
|
|
|
||
|
|
bool random_bytes(uint8_t *data, size_t len) {
|
||
|
|
memset(data, 0x5A, len);
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
void get_mac_address_raw(uint8_t *mac) { memset(mac, 0, 6); }
|
||
|
|
|
||
|
|
} // namespace esphome
|