get rid of strings
This commit is contained in:
parent
a375f2b766
commit
88d000fb2a
|
@ -639,5 +639,11 @@ namespace ratgdo {
|
||||||
this->pref_.save(&this->rollingCodeCounter);
|
this->pref_.save(&this->rollingCodeCounter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RATGDOComponent::register_child(RATGDOComponent* obj)
|
||||||
|
{
|
||||||
|
this->children_.push_back(obj);
|
||||||
|
obj->set_parent(this);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ratgdo
|
} // namespace ratgdo
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
|
|
@ -160,9 +160,12 @@ namespace ratgdo {
|
||||||
void statusUpdateLoop();
|
void statusUpdateLoop();
|
||||||
void readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction);
|
void readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction);
|
||||||
void sendCommand(Commands command);
|
void sendCommand(Commands command);
|
||||||
|
/** Register a child component. */
|
||||||
|
void register_child(RATGDOComponent* obj);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ESPPreferenceObject pref_;
|
ESPPreferenceObject pref_;
|
||||||
|
std::vector<RATGDOComponent*> children_;
|
||||||
RATGDOStore store_ {};
|
RATGDOStore store_ {};
|
||||||
|
|
||||||
InternalGPIOPin* output_gdo_pin_;
|
InternalGPIOPin* output_gdo_pin_;
|
||||||
|
|
Loading…
Reference in New Issue