9#define LOG_ONE_WIRE_DEVICE(this) \
11 char address_buf[format_hex_prefixed_size(sizeof(uint64_t))]; \
12 ESP_LOGCONFIG(TAG, " Address: %s (%s)", format_hex_prefixed_to(address_buf, (this)->address_), \
13 LOG_STR_ARG((this)->bus_->get_model_str((this)->address_ & 0xff))); \
static constexpr uint8_t INDEX_NOT_SET
OneWireBus * bus_
pointer to OneWireBus instance
void set_index(uint8_t index)
void set_address(uint64_t address)
store the address of the device
bool send_command_(uint8_t cmd)
send command on the bus
void set_one_wire_bus(OneWireBus *bus)
store the pointer to the OneWireBus to use
bool check_address_or_index_()
find an address if necessary should be called from setup