A master's thesis titled "Enabling Ubiquitous Publish-Subscribe Communication in Cyber-Physical Systems"