a gateway for the Internet of Thing environment