As in the previous chapter, we will create a new project based on our
Sensor project. Let's call it
SensorHttp. We use the same hardware and software setup as in previous chapters. But this time, we add the
Waher.Networking.HTTP.UWP NuGet package instead. It will allow us to host a web server on Raspberry Pi and publish web resources, both static and dynamic ones.
For .NET standard, .NET Core, or traditional .NET Framework projects, you can use the
Waher.Networking.HTTP NuGet instead. Universal Windows Platform apps use different libraries and runtime binaries when it comes to communication and encryption. For this reason, it requires a somewhat modified version of the original library.
Since we will accept incoming connections to our app, we also need to provide sufficient capabilities to do so. If we don't, the framework will throw an exception if we try. We add the
internetClientServer capability to our set of capabilities in the