Fix debug message, add test sketch (#682)
This commit is contained in:
@@ -145,9 +145,11 @@ void _begin(void) {
|
|||||||
CORE_DEBUG(PSTR("MCO:BGN:STP\n")); // setup callback
|
CORE_DEBUG(PSTR("MCO:BGN:STP\n")); // setup callback
|
||||||
setup();
|
setup();
|
||||||
}
|
}
|
||||||
|
#if defined(MY_SENSOR_NETWORK)
|
||||||
CORE_DEBUG(PSTR("MCO:BGN:INIT OK,TSP=%d\n"), isTransportReady());
|
CORE_DEBUG(PSTR("MCO:BGN:INIT OK,TSP=%d\n"), isTransportReady());
|
||||||
|
#else
|
||||||
|
CORE_DEBUG(PSTR("MCO:BGN:INIT OK,TSP=NA\n"));
|
||||||
|
#endif
|
||||||
// reset wdt before handing over to loop
|
// reset wdt before handing over to loop
|
||||||
hwWatchdogReset();
|
hwWatchdogReset();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
* | | MCO | BGN | BFR | Callback before()
|
* | | MCO | BGN | BFR | Callback before()
|
||||||
* | | MCO | BGN | MTR | MY_TRANSPORT_RELAXED enabled
|
* | | MCO | BGN | MTR | MY_TRANSPORT_RELAXED enabled
|
||||||
* | | MCO | BGN | STP | Callback setup()
|
* | | MCO | BGN | STP | Callback setup()
|
||||||
* | | MCO | BGN | INIT OK,TSP=%%d | Core initialised, transport status (TSP), 1=initialised, 0=not initialised
|
* | | MCO | BGN | INIT OK,TSP=%%d | Core initialised, transport status (TSP), 1=initialised, 0=not initialised, NA=not available
|
||||||
* | | MCO | BGN | NODE UNLOCKED | Node successfully unlocked (see signing chapter)
|
* | | MCO | BGN | NODE UNLOCKED | Node successfully unlocked (see signing chapter)
|
||||||
* |!| MCO | BGN | TSP FAIL | Transport initialization failed
|
* |!| MCO | BGN | TSP FAIL | Transport initialization failed
|
||||||
* | | MCO | REG | REQ | Registration request
|
* | | MCO | REG | REQ | Registration request
|
||||||
|
|||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* The MySensors Arduino library handles the wireless radio link and protocol
|
||||||
|
* between your home built sensors/actuators and HA controller of choice.
|
||||||
|
* The sensors forms a self healing radio network with optional repeaters. Each
|
||||||
|
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
|
||||||
|
* network topology allowing messages to be routed to nodes.
|
||||||
|
*
|
||||||
|
* Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
|
||||||
|
* Copyright (C) 2013-2016 Sensnology AB
|
||||||
|
* Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
|
||||||
|
*
|
||||||
|
* Documentation: http://www.mysensors.org
|
||||||
|
* Support Forum: http://forum.mysensors.org
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
*******************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MY_DEBUG
|
||||||
|
#define MY_GATEWAY_SERIAL
|
||||||
|
#include <MySensors.h>
|
||||||
Reference in New Issue
Block a user