How to configure the controller to accept information from mininet host

Hi, I am currently working on such simplified scenario. Suppose we have a controller to install some entries on switch s1 and s2 at the beginning, but also we need to accept information from h2 to perform entry adding or deletion. My question is since h2 is defined in mininet as a host, how can we configure the controller to accept information from h2?
2
Any response would be helpful to me, thanks.