The Internet of Things (IoT) is a market that has grown very fast in the last few years,creating an industry of its own. The core of IoT is the Internet connectivity and many times, the best solution for an IoT device is to use some form of mobile connection to solve this. The problem is that there is no obvious choice of mobile communication standard for use in an IoT device. The mobile communications industry has reacted to this newly emerged need of a mobile communications standard designed for the IoT domain and in 2016 the 3rd Generation Partnership Project (3GPP) released a Low-Power Wide-Area Network (LPWAN) type of standard named Narrowband IoT (NB-IoT). Several companies are working on implementing this standard, and there is a need to investigate how applications can utilize the standard effectively. This thesis presents a comparison between two applications using different Application Layer Protocol (ALP)s, Hyper-Text Transfer Protocol (HTTP) and Constrained Application Protocol (CoAP), in an LPWAN context. The results of this comparison shows that there is a lot to gain by choosing CoAP over HTTP, especially in an IoT environment such as the applications presented in this thesis. The thesis also presents a collection of properties that applications should have to use an LPWAN effectively.