Computer program for creating service scenario of internet of things, portable terminal, and gateway device

The present embodiments provide a computer program and a gateway device, wherein the computer program creates scenarios by combining the conditions for an Internet of Things device with operations to be executed by the Internet of Things device, such that it is possible to dynamically create scenarios and simplify a complex process for creating the scenarios.