I used pi to control IoT things at home. I have 3 raspberry Pi to control various things. I have a router.
so if I want an APP from outside to control things at home, it sends a http request with my home router IP address.
1)router gets the http request from outside and I want the router to broadcast a message to all if the condition is met. For example the http request has a parameter string of token=IoT. I want the router to broadcast the message from the http request. For example, location=pi 3.
So, this way only raspberry pi 3 will respond.
How do I set up the router to perform above function. If router cannot do that, do I need to implement a dedicated pi to serve as IoT server to implement the above logic. The outer just pass everything to my dedicated pi IoT server, which will do the broadcast to the network at home.
2)if my router doesn't have a fixed IP address, then I need to periodically send the IP address to cloud so phone APP from outside can send http request. How often I need to do that? updating the IP address to cloud? Can my router able to send the IP address or I need the dedicated IoT Pi Server to do that?