Thermionic emission involves heat energy to excite the electron and remove it. In the photoelectric effect, a beam of light is involved.
As per my understanding heat and photons, both are energy. Heat is transferred through electromagnetic waves and light is also an electromagnetic wave which means both types of emission are of the same type.
Where I'm wrong in understanding the concepts? How both emissions are different?