I am trying to send temperature readings from three DS18B20 sensors to MQTT using your tutorials. In order to distinguish individual sensors, I wanted the data to be sent in separate topics, which would be the addresses of individual sensors. For example, “esp/ds18b20/temperature/28DE58B0A021015E”. Unfortunately, I have a problem with using the sensor address that I generate using the printAddress(tempDeviceAddress) function to create the appropriate topic. How should I generate a string containing the address of the sensor so that I can use it to create the appropriate topic?
Many Thanks, Slawek