Towards the Development of IoT Protocols