meteorolog.ino 596 Bytes
Newer Older
1 2 3 4 5 6
/*-----------------------------------------------------------------------------
 *  Author: Nelso G. Jost (nelsojost@gmail.com)
 *  License: GPLv2
 *  Purpose: Entry point for the Arduino Toolchain.
 *---------------------------------------------------------------------------*/

7 8
#include <Wire.h>
#include "mysensors.h"
9
#include "boardcommands.h"
10 11 12

String stream_line;

13

14 15 16 17 18 19
void setup()
{
    Serial.begin(9600);
    mysensors_setup();
}

20

21 22 23 24 25
void loop()
{
    if (Serial.available())
    {
        stream_line = Serial.readString();
26
        Serial.println(execute_board_command(stream_line));
27 28
    }
}