Is there a way to use something like a text sensor to post IP address and MAC address of nodes? I tried various forms of the code below but compiling gives an error.
src/main.cpp: In lambda function:
src/main.cpp:40:38: error: could not convert 'IPAddress::toString() const()' from 'String' to 'esphomelib::optional<std::basic_string<char> >'
return WiFi.localIP().toString();
^
It was even in Bold. Apologies for missing that. Thanks!
PS. I’m currently working to get setup to contribute to documentation but I’m new to pretty much everything on that side of things (doxygen, sphinx, doing anything with Git other than pull, etc.) Love the project. Keep up the great work and I look forward to helping any way that I can.
I know that this is late to this post, but I came here to get a MAC address sensor. When I did not find one in the forum, I had to make one. This works for the esp8266 devices. Here it is:
@GarSys - this was great and very helpful !
Do you know (or know where to look for) how to get MAC address of the AP to which module is connected ?
In the log it comes as: BSSID in the esplog