Blog

Custom attributes with constructor

Yes, you read that correctly! nanoFramework just got support for these. You can now have custom attributes with a constructor and access the value on the constructor. Let's see some code to illustrate this. Consider these two classes defining attributes. public class AuthorAttribute : Attribute { private readonly string _author; public string Author => _author; … Continue reading Custom attributes with constructor

Stable releases published

Today is a great day: we’ve just published stable releases for all nanoFramework class libraries and firmware images. A lot has changed since the last stable release! Along with many new features, this release brings along a proven history of stability that many of our community have been providing feedback through our preview releases, so … Continue reading Stable releases published

Posting native events in nanoFramework

José Simões

To deal with situations that require native coding or when one faces the situation of needing to add native code that has no place on the core library, there is Interop. It’s a rather powerful feature that opens immense possibilities.

Sending data from the native code to the C# managed application can be done easily by using either parameters passed by reference or sending the data on the return value. But… what if you need to signal your application of random events that occurs on the native code? Well now you can!

Support for CustomEvent has just been added to nanoFramework.Runtime.Events.

Let me explain how easy it is to use this cool feature. 😉

On your native code, all you have to do it’s just adding a simple line of code. Really! Like this:

PostManagedEvent( EVENT_CUSTOM, 0, 1111, 2222 );

The payload that’s available consists of the last…

View original post 176 more words

New preview feeds for nanoFramework!

Until now nanoFramework has been using MyGet as its NuGet feed provider to host preview and test packages. MyGet is a decent provider but only offers 100MB storage on their free trier. Actually they offer 2GB to OSS projects (which is great) and for which we’ve applied, but it turns out that setting up the … Continue reading New preview feeds for nanoFramework!

Oil tank telemetry with nanoFramework

The first commercial products with the “nanoFramework inside” label (a shameless copy of the old Intel® logo) are out in the wild! Literally.They were built to perform in a demanding industry and deployment scenarios: oil fields! These devices have been developed and built by OrgPal, a leading remote-monitoring manufacturer and solution provider for the oil … Continue reading Oil tank telemetry with nanoFramework