This is a Visual Studio 2015 solution with the VBA debug application, a sketch for the Arduino Mega and a second sketch for the esp8266 on a ESP-07 board. The ESP-07 communicates with the internet. Click here for the description of this solution. It is a working copy with a simple FSM implemented. The communication between the VisualStudio app and the board is made by a Wifi connection.