O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HelloWorld

The HelloWorld program (Example 1-1) contains a class HelloWorld with a parameterless static method Main.

The keywords public static void specify the type of the method; in this case, it’s public (is visible to other classes), static (doesn’t need an instance of the HelloWorld class to execute the method), and void (doesn’t return a value). Also, because the parentheses are empty, Main() doesn’t expect you to pass it any arguments (objects or variables that would be referred to within the method).

In fact, you won’t call Main() on your own; NETMF does it for you. When the Netduino Plus reboots or is powered on, it looks for the Main() method and runs it as the entry point of your program. This program writes the string Hello World to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required