10 #define LOG_ONE_WIRE_DEVICE(this) \ 11 ESP_LOGCONFIG(TAG, " Address: %s (%s)", this->get_address_name().c_str(), \ 12 LOG_STR_ARG(this->bus_->get_model_str(this->address_ & 0xff)));
void set_address(uint64_t address)
store the address of the device
void set_one_wire_bus(OneWireBus *bus)
store the pointer to the OneWireBus to use
std::string address_name_
bool check_address_()
find an address if necessary should be called from setup
const std::string & get_address_name()
Helper to create (and cache) the name for this sensor. For example "0xfe0000031f1eaf29".
Implementation of SPI Controller mode.
OneWireBus * bus_
pointer to OneWireBus instance
bool send_command_(uint8_t cmd)
send command on the bus