This paper discusses and implements a REST + MQTT structure of the device of Internet of Things (IoT) control interface. Through the REST API to represent the IoT device and use the MQTT protocol to replace HTTP as a message transmission, making the IoT device control interface can have uniform interface and provide a hierarchical system architecture that facilitates interoperability and standardization of future IoT devices.