meteorolog.ino 575 Bytes
Newer Older
Nelso Jost's avatar
Nelso Jost committed
1
2
/*------------------------------------------------------------------------------
 * Author: Nelso G. Jost (nelsojost@gmail.com)
Nelso Jost's avatar
Nelso Jost committed
3
4
 * License: GPLv2
 * Purpose: Root file for Arduino IDE projects.
Nelso Jost's avatar
Nelso Jost committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 *----------------------------------------------------------------------------*/
#include <Wire.h>
#include "mysensors.h"
#include "utils.h"

String stream_line;

void setup()
{
    Serial.begin(9600);
    mysensors_setup();
}

void loop()
{
    if (Serial.available())
    {
        stream_line = Serial.readString();
Nelso Jost's avatar
Nelso Jost committed
23
        Serial.println(execute_command(stream_line));
Nelso Jost's avatar
Nelso Jost committed
24
25
    }
}