Replies: 2 comments 1 reply
-
@phoddie, I was just wondering if I could somehow (e.g. via the xsbug-log logging see the MAC or IP address of my MCU). That would be useful because on my router's DHCP service, I always map IP address to the MAC addresses: Since my DHCP server passes always the same IP address to a device (based on its MAC address), I can use these (fixed) IP addresses in Node-RED to communicate to my devices (without specifying a fixed IP addres in each of my devices individually). But it is not easy to see in my current router's user interface to see new devices popping up, so it would be useful I could see the MCU's IP or MAC address somewhere in the xsbug-log logging. Perhaps I just overlooked it somewhere... Bart |
Beta Was this translation helpful? Give feedback.
-
Also, with the ESP8266, when I run mcconfig and it downloads the code to the device I see
|
Beta Was this translation helpful? Give feedback.
-
I'm a big fan of mDNS. It solves a bunch of problems for connecting devices together on a local network. The protocol design is both elegant and efficient. The Moddable SDK has an implementation of mDNS that supports claiming local network names, service discovery, and service announcements.
The OTA Update work and a recent question from @bartbutenaers made me think about mDNS. For example, to Push an OTA Update you need the IP address of the device. With mDNS, you would just use the name, like
mysensor.local
. You could get fancier and announce an OTA Update service with mDNS. That would allow tools (like the MCU plugin) to discover devices on the network that accept OTA Updates, display them in a list, and send updates directly.It seems like this would be pretty useful for Node-RED, but I don't see that much use of mDNS in the Node-RED universe. The definitive mDNS Node seems to be the node-red-node-discovery node included in the venerable "node-red-nodes" repository. That supports service announcements and discovery.
But, the node-red-node-discovery node doesn't support claiming a name. I suppose that's because it runs on a Raspberry Pi and there are mechanisms used in Linux to claim mDNS names, so it isn't part of Node-RED?
Anyway... before taking time on implementation, I'd appreciate any feedback on this direction. For example, maybe there's a good reason I'm overlooking that mDNS isn't used much with Node-RED. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions