It depends on how you want to represent a gateway and connected sensors on the platform. If they constitute one logical entity - it is one endpoint, otherwise - multiple.