How do iOS apps interface with an IOT device?

#1

I’m a beginner and i’m trying to figure out how commercial iot products actually work.

How exactly do mobile apps connect and interface with a device? Does the web server provide JSON?

I understand this may be out of the scope of mongoose os, but any help understanding how it works would be appreciated.