public void stopPublishingGeolocation ( ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException , NotALeafNodeException { GeoLocation emptyGeolocation = new GeoLocation . Builder ( ) . build ( ) ; getNode ( ) . publish ( new PayloadItem < GeoLocation > ( emptyGeolocation ) ) ; }
Send empty geolocation through the PubSub node .