We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7edf458 commit ca78dd4Copy full SHA for ca78dd4
1 file changed
esphome/components/api/api_frame_helper.cpp
@@ -311,6 +311,10 @@ APIError APINoiseFrameHelper::state_action_() {
311
const std::string &name = App.get_name();
312
const uint8_t *name_ptr = reinterpret_cast<const uint8_t *>(name.c_str());
313
msg.insert(msg.end(), name_ptr, name_ptr + name.size() + 1);
314
+ // node mac, terminated by null byte
315
+ const std::string &mac = get_mac_address();
316
+ const uint8_t *mac_ptr = reinterpret_cast<const uint8_t *>(mac.c_str());
317
+ msg.insert(msg.end(), mac_ptr, mac_ptr + mac.size() + 1);
318
319
aerr = write_frame_(msg.data(), msg.size());
320
if (aerr != APIError::OK)
0 commit comments