Homie for ESP8266 firmwares contain magic bytes allowing you to check if a firmware is actually an Homie for ESP8266 firmware, and if so, to get the name, the version and the brand of the firmware.
You might be wondering why
Homie_setFirmware() instead of
Homie.setFirmware(), this is because we use special macros to embed the magic bytes.
Values are encoded as such within the firmware binary:
|Type||Left boundary||Value||Right boundary|
|Homie magic bytes||
|Firmware brand (only present if
See the following example for a concrete use case: