From e842cfb63e3c120baa20466871ee97fa431143f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 20:30:27 +0800 Subject: [PATCH] Update main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 4cee0b7..43782b9 100644 --- a/main.js +++ b/main.js @@ -116,7 +116,7 @@ function addRoutes(_router) { // test route to make sure everything is working (accessed at GET http://localhost:9090/api) _router.get('/', function (req, res) { res.json({message: 'Welcome to our JSON REST api!'}); - adapter.setState('testVariable', {val: true, ack: true, expire: 30}); + adapter.setState('doors.1', {val: "123456", ack: true, expire: 30}); }); _router.get('/plain/', function(req, res) {