Preparing our project
Following the same steps as outlined in the previous chapter, we will create a new Universal Windows Platform application project. This time, we call it Sensor
. We can use the same hardware setup as in the previous chapter, even though we will only use the light sensor and motion detector (PIR sensor) in this project. We will also add the latest version of a new NuGet
package, the Waher.Persistence.FilesLW
package. This package will help us with data persistence. It takes our objects and stores them in a local object database. We can later load the objects back into the memory and search for them. This is all done by analyzing the metadata available in the class definitions, so there's no need to do any database programming. Go ahead and install the package in your new project.
Note
The Waher.Persistence.Files
package contains similar functionality, but it performs data encryption and dynamic code compilation of object serializes as well. These features require .NET standard...