From 39da31eaaa5917aa3d5c5c3e0b3d4b9ba0982cfb Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Fri, 22 Nov 2013 10:24:08 +0000 Subject: [PATCH] Added proper database reconnects... and more error handling, that should help address Issue #87 in main node-red Issue list. --- storage/mysql/68-mysql.html | 4 +++- storage/mysql/68-mysql.js | 38 +++++++++++++++++++++++++++---------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/storage/mysql/68-mysql.html b/storage/mysql/68-mysql.html index 11c6fd80..29187b1b 100644 --- a/storage/mysql/68-mysql.html +++ b/storage/mysql/68-mysql.html @@ -29,7 +29,7 @@
- +
@@ -72,6 +72,8 @@

msg.topic must hold the query for the database, and the result is returned in msg.payload.

Typically the returned payload will be an array of the result rows.

If nothing is found for the key then null is returned,

+

The reconnect timeout in milliseconds can be changed by adding a line to settings.js +

mysqlReconnectTime: 30000,