WIFI in coffee shops, libraries and other places should be free, and its access method should be through a wireless router as a signal source. There is no charging function, and there is a password at most. Just ask the management.
WIFI in public places is the signal source of operators through AP or base station, and there is a billing system behind it.