Really it is very strange, because after forcing a powercycle in ESP running Mysensors protocol, domoticz does not detect immediately the failure and dont try to reconnect. The reconnection happens about 15 minutes later. why can domoticz takes long time to reconnect.
Note1: ESP is running with compiled software in the arduino IDE.
Note2: If in domoticz i disable and enable again the reconnection with ESP it is immediate
Noet3: The software in ESP is running Mysensor protocol in server mode ( see at the end)
Many thanks.
Domoticz Version V3.4985
domoticz log:
2016-03-20 18:47:58.303 (ESP Mysensors relays) Lighting 2 (Light 0)
2016-03-20 18:47:59.230 User: admin initiated a switch command
2016-03-20 18:48:00.333 (ESP Mysensors relays) Lighting 2 (Light 0)
2016-03-20 18:49:19.975 User: admin initiated a switch command
2016-03-20 19:04:39.895 MySensors: Can not connect to: 192.168.1.121:5003
2016-03-20 19:04:39.895 TCP: Reconnecting in 30 seconds...
2016-03-20 19:05:09.899 TCP: Reconnecting...
2016-03-20 19:05:10.900 MySensors: connected to: 192.168.1.121:5003
2016-03-20 19:05:10.901 MySensors: Gateway Ready...
2016-03-20 19:05:10.901 MySensors: Node: 0, Sketch Name: MultiRelayButton
2016-03-20 19:05:10.913 MySensors: Node: 0, Sketch Version: 0.9b
2016-03-20 19:05:11.930 MySensors: Gateway Version: 2.0.0-beta
2016-03-20 19:05:11.932 MySensors: Gateway Version: 2.0.0-beta
Code: Select all
#include <EEPROM.h>
#include <SPI.h>
// Enable debug prints to serial monitor
#define MY_DEBUG
//#define MY_REPEATER_FEATURE
//#define MY_DEBUG_VERBOSE
// Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
#define MY_BAUD_RATE 9600
// Enables and select radio type (if attached)
// #define MY_RADIO_NRF24
// #define MY_RADIO_RFM69
// Gateway mode always enabled for ESP8266. But we add this anyway ;)
#define MY_GATEWAY_ESP8266
#define MY_ESP8266_SSID "FCSSID"
#define MY_ESP8266_PASSWORD "jfsc20100930*"
// Enable UDP communication
//#define MY_USE_UDP
// Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
#define MY_IP_ADDRESS 192,168,1,121
// If using static ip you need to define Gateway and Subnet address as well
#define MY_IP_GATEWAY_ADDRESS 192,168,1,1
#define MY_IP_SUBNET_ADDRESS 255,255,255,0
// The port to keep open on node server mode
#define MY_PORT 5003
// How many clients should be able to connect to this gateway (default 1)
#define MY_GATEWAY_MAX_CLIENTS 2
// Controller ip address. Enables client mode (default is "server" mode).
// Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
//#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68