ParallelBlinker

ParallelBlinker is a complete example with one actor called blinker that periodically blinks the onboard LED, and another called webServer that handles HTTP requests. Once running, both actors, shown in Figure 13-2, communicate only through the buffer variable. It is the boundary between the two actors.

Architecture of ParallelBlinker

Figure 13-2. Architecture of ParallelBlinker

The complete program is given in Example 13-5.

Example 13-5. ParallelBlinker

using System.Threading; using Gsiot.Server; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; public class ParallelBlinker { public static void Main() { var buffer = new Buffer { }; var blinker ...

Get Getting Started with the Internet of Things now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.