Debugging with the lonmaker integration tool – Echelon Mini EVK User Manual
Page 78
![background image](/manuals/735766/78/background.png)
void PrintConsole(const char *message) {
if (strlen(message) <= 100) {
io_out(ioSerialOut, message, (unsigned) strlen(message));
} else {
io_out(ioSerialOut, errorString,
(unsigned) strlen(errorString));
}
}
// Repeat every 50 milliseconds
mtimer repeating scanTimer = 50;
// Read the buttons when the timer expires
when(timer_expires(scanTimer)) {
boolean button;
static boolean lastButton;
button = GetButton();
if (button != lastButton) {
lastButton = button;
PrintConsole(button ? "On\n\r" : "Off\n\r");
}
}
Debugging with the LonMaker Integration Tool
You can use the LonMaker Integration Tool to install L
ON
W
ORKS
devices in a
network, and then configure, monitor, and test those devices. The LonMaker
tool includes three useful interfaces for testing your Neuron C applications.
They are the LonMaker Browser, the LonMaker Device Manager, and
connection monitoring.
The LonMaker Browser is a standalone application that monitors all the
network outputs from your device and allows you to control all the network
inputs to your device. You can open the LonMaker Browser on any device or
functional block in the network. It then displays all the network variables
and configuration properties for the selected network variables and
configuration properties. You can change the value of any of the input
network variables or writeable configuration properties. Figure 5.1 shows an
example LonMaker Browser display from the MGDemo application.
72
Mini EVK User’s Guide