devicePublish used as callback function