Can someone help guide me on how best to implement the following.
I have 5x CC32xx devices connected as stations to a home router. They communicate with each other (a pair at a time using UDP) via the router. This all currently works via hard coded IP addresses. I’m now at the point where I need to make a real world implementation where each device will be provisioned and an IP address assigned.
My current understanding is:
- When I provision the device I would enter a unique name in the ‘Name your device’ field on the mobile phone. For example ‘STA_1’ (ending up with STA_5 for all 5 devices)
- Upon successful provisioning the new device can advertise and discover other devices/services using mDNS API functions (Query, other?)
Is there a way to only store the ‘STA_x’ devices in the list with just IPV4 address and port number?
I see the documentation in the NWP User’s Guide and just checking whether the above is the way to do it (or is there another?) and if there’s any more specific/concise example code available.
Grateful for any inputs.
regards,
Stuart