6static const char *
const TAG = 
"one_wire";
 
   25  if (devices.empty()) {
 
   26    ESP_LOGE(TAG, 
"No devices, can't auto-select address");
 
   29  if (devices.size() > 1) {
 
   30    ESP_LOGE(TAG, 
"More than one device, can't auto-select address");
 
 
 
const std::vector< uint64_t > & get_devices()
Return the list of found devices.
bool select(uint64_t address)
Select a specific address on the bus for the following command.
virtual void write8(uint8_t val)=0
Write a word to the bus. LSB first.
std::string address_name_
bool check_address_()
find an address if necessary should be called from setup
OneWireBus * bus_
pointer to OneWireBus instance
bool send_command_(uint8_t cmd)
send command on the bus
const std::string & get_address_name()
Helper to create (and cache) the name for this sensor. For example "0xfe0000031f1eaf29".
Providing packet encoding functions for exchanging data with a remote host.
std::string format_hex(const uint8_t *data, size_t length)
Format the byte array data of length len in lowercased hex.