In this part, we will see how devices can be programmed as HTTP clients, accessing services on the Internet. The main focus will be on Pachube, a service created specifically for Internet of Things applications. Your device(s) can send measurements to Pachube for storage and for later access via web browsers or other programs.
The .NET Micro Framework provides mainly two application programming interfaces (APIs) for implementing HTTP clients: the high-level
HttpWebRequest API (in namespace
System.Net) and the low-level
Socket API (in namespace
System). You will learn how to work with either one, depending on your application needs and available hardware resources.