Web pages use HTTP protocol to exchange data. HTTP is a character-based protocol. It operates at the application layer and conforms to RESTful principles. You are intimately familiar with it but may not realize that it can be used with IoT devices even when there is no web page present.