IoT Code Recipes: RPL, mDNS and REST