Gateways can connect legacy devices to the internet by translating between the device's protocols and IoT protocols. A gateway identifies the connected device and receives its datapoint definitions from the cloud. A semantic data model maps different devices' raw datapoints to standardized values to simplify access by applications.